News for hackers. Stuff that matters.
Re:Goroutines, Nonblocking I/O, and Memory Usage by tedunangst on Thursday January 05, 2017 @05:53PM (#13332222)
Those DMA buffers are shared. You don't have a different DMA buffer for each of a million sockets.
Re:Goroutines, Nonblocking I/O, and Memory Usage by kbwt on Thursday January 05, 2017 @05:57PM (#13332250)
You're right. But there will realistically still be some protocol-level buffering in user-mode for every socket. Although that might be a good use-case for a hash table of buffers, as most of the sockets will not have outstanding partial packets most of the time in typical (frequent small message) applications.