SUSE Labs Conference 2019 - Pollable file descriptors from userspace or epoll can be faster
Channel: SUSE Labs
Date: 19/09/2019

None

Event loop is a very crucial part for an application, which keens to handle thousands of file descriptors in an efficient manner, like a web server or an event library. In order to poll file descriptors on readiness application needs to invoke a system call, which internally leads to locks in the kernel. To make event loop faster and to avoid transition from userspace to kernel and back all file descriptor events can be harvested from a memory ring, directly from userspace. In this talk I would like to share ideas how to store file descriptor events in completely lockless manner on the kernel side and to harvest them from the user side.  Kernel patches related to the epoll modification can be found here:  https://lkml.org/lkml/2019/6/11/714

Roman Penyaev

https://labsconf.suse.cz/labs2019/talk/FB89CK