[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? 


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. 


[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