[issue41668] Expose eventfd for high-performance event notifier in Linux

Pablo Galindo Salgado report at bugs.python.org
Sun Aug 30 16:15:17 EDT 2020


New submission from Pablo Galindo Salgado <pablogsal at gmail.com>:

The eventfd system calls can allow us to implement some Linux-specific high performance version of some event notifier abstractions in the standard library. 

eventfd() creates an "eventfd object" that can be used as an event wait/notify mechanism by user-space applications. The object contains an
unsigned 64-bit integer counter that is maintained by the kernel. This acts as a file descriptor that can be used by the usual suspects (read/write/poll/close...).

The advantage here is that the kernel maintains the counter and if used in conjunction with poll/epoll, it allows for a high-performance and
scallabe event notification system.

----------
components: IO, Library (Lib)
messages: 376130
nosy: pablogsal
priority: normal
severity: normal
status: open
title: Expose eventfd for high-performance event notifier in Linux
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41668>
_______________________________________


More information about the Python-bugs-list mailing list