Re:Linux: IO without entering the kernel
by joatmon-snoo on Sunday December 16, 2018 @06:16AM
(#18692630)
Someone more familiar with kernel workings than me should clarify, but my understanding is that IO generally happens via a syscall which requires the thread/process in question to context switch between userspace and kernel space, which can be very expensive. By enabling IO polling in userspace, you get to avoid that context switching.
[ Parent
| on HN ]
Re:Linux: IO without entering the kernel
by int0x80 on Sunday December 16, 2018 @06:26AM
(#18692659)
Yes. Instead of using a syscall to get/issue events you use a mapped ring buffer. See https://lwn.net/Articles/743714/