|
|
Log in / Subscribe / Register

Rethinking the futex API

Rethinking the futex API

Posted Jun 19, 2020 0:58 UTC (Fri) by krisman (subscriber, #102057)
In reply to: Rethinking the futex API by ras
Parent article: Rethinking the futex API

> Waiting on multiple values can be done in user space.

Yes, it can be done in userspace, as mentioned in my original submission of Futex Wait Multiple last year. Still, we experimented with all that, and the performance of a userspace solution or even of a solution based on eventfd (which would be the most obvious way to implement these semantics in userspace with the existing kernel support), is a bottleneck on our real-world scenarios of emulation of windows applications over Wine.


to post comments

Rethinking the futex API

Posted Jun 19, 2020 19:48 UTC (Fri) by itsmycpu (guest, #139639) [Link]

I believe your idea to use futexes is far better than using eventfd for dealing with a large number of calls or events.

However I think the existing Futex API allows implementing wait-for-multiple-events with great performance. I have good experience implementing such functionality with existing APIs, and know of no conceptual restrictions there. See also my slightly more detailed comment above.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds