[self-interest] Re: Use epoll instead of select on linux

Russell Allen mail at russell-allen.com
Fri Feb 21 01:44:09 UTC 2014


 

This is all very cool. 

Are there any Self-side changes needed or just the VM? 

Russell 

On 2014-02-21 12:17, ardeujho wrote: 

> ardeujho <ardeujho at cd.pn> writes:
> 
>> Epoll has better performance than select when there is a large number of
>> open files and does not have the 1,024 file descriptor limit.
> 
> I've made a change to the pull request to account for the fact that
> epoll doesn't work on regular files. Attempting to do an epoll_ctl on
> these results in an EPERM error.
> 
> I've worked around this by keeping a set of file descriptors that
> produce this error and automatically adding these to the result of a
> select call from Self as being readable and writable.
> 
> Longer term it might be worthwhile investigating how to get asynchronous
> i/o working with regular files on Linux to improve performance in i/o
> bound apps.
> 
> In the meantime the workaround means that there is a limit of 1024 open
> regular files but no limit to the number of sockets and other similar
> file types. 
> 

 

Links:
------
[1]
http://groups.yahoo.com/group/self-interest/post;_ylc=X3oDMTJwdWFpbGVpBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BG1zZ0lkAzMwMjMEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMzkyOTQ1NDQ1?act=reply&messageNum=3023
[2]
http://groups.yahoo.com/group/self-interest/post;_ylc=X3oDMTJldnU5ZWRoBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTM5Mjk0NTQ0NQ--
[3]
http://groups.yahoo.com/group/self-interest/message/3018;_ylc=X3oDMTM0NXMxMjZmBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BG1zZ0lkAzMwMjMEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMzkyOTQ1NDQ1BHRwY0lkAzMwMTg-
[4]
http://groups.yahoo.com/group/self-interest;_ylc=X3oDMTJlcjhsZTkyBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM5Mjk0NTQ0NQ--
[5]
http://groups.yahoo.com/group/self-interest/members;_ylc=X3oDMTJmMWh0cm5rBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEzOTI5NDU0NDU-?o=6
[6]
http://groups.yahoo.com/;_ylc=X3oDMTJkYmg4amoxBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzkyOTQ1NDQ1
[7] http://info.yahoo.com/privacy/us/yahoo/groups/details.html
[8] http://info.yahoo.com/legal/us/yahoo/utos/terms/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20140221/04b5adc2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-ygp-stripped
Size: 204 bytes
Desc: not available
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20140221/04b5adc2/attachment.bin>


More information about the Self-interest mailing list