News for hackers. Stuff that matters.
Re:Implement mechanism to wait on any of several futexes by Taniwha on Wednesday July 31, 2019 @05:14PM (#20578622)
They point out that they already have an implementation that does just this .... and it fails on some programs due to running out of file descriptors (they have one program that needs ~1 million of them ...)
Re:Implement mechanism to wait on any of several futexes by badamp on Wednesday July 31, 2019 @07:51PM (#20579876)
If you read the full thread that is a bit of a red herring and beside the point (thats why I said the conveyance of the performance implication was poor)... indeed window WFMO only supports 64 objects per call. They mention that the fd issue is due to leaking objects in many windows programs..which was an odd mention and a little off the main subject. The main motivator is performance. If eventfds performed better it would likely be better to fix the fd leak issue with a cache.

Again.. eventfd and epoll covers the same use case as WFMO and EVENTs.

Re:Implement mechanism to wait on any of several futexes by solipsism on Thursday August 01, 2019 @01:00AM (#20581175)
Curious, how would a cache fix the fd leak issue?
Re:Implement mechanism to wait on any of several futexes by badamp on Thursday August 01, 2019 @12:27PM (#20585400)
Perhaps a better term would be “pool”. Anyway, what’s being leaked is “handles” or events not actually fds. You only actually need as many fds as the maximum possible number passed to a syscall. The mapping of handles/event objects in user space does not have to be 1:1 with the kernel resource.
Re:Implement mechanism to wait on any of several futexes by mjevans on Wednesday July 31, 2019 @06:02PM (#20579004)
I recall higher performance browsers also use up large numbers of FDs; I suspect it might be for this very reason.