The Backend Engineering Show with Hussein Nasser
The Backend Engineering Show with Hussein Nasser
Hussein Nasser
This new Linux patch can speed up Reading Requests
18 minutes Posted Oct 25, 2024 at 12:52 pm.
Intro
patch summary
Normal Connection Read (Kernel Copy)
Zero copy Read
Performance
0:00
18:12
Download MP3
Show notes
Fundamentals of Operating Systems Course
https://oscourse.win
Very clever! We often call read/rcv system call to read requests from a connection, this copies data from kernel receive buffer to user space which has a cost.
This new patch changes this to allow zero copy with notification.
“Reading' data out of a socket instead becomes a “notification” mechanism, where the kernel tells userspace where the data is.”
This kernel patch enables zero copy from the receive queue.
https://lore.kernel.org/io-uring/ZwW7_cRr_UpbEC-X@LQ3V64L9R2/T/