Zero-copy network transmission with io_uring
Zero-copy network transmission with io_uring
Posted Jan 5, 2022 9:46 UTC (Wed) by NYKevin (subscriber, #129325)In reply to: Zero-copy network transmission with io_uring by farnz
Parent article: Zero-copy network transmission with io_uring
Each thread has a stack, whose default size seems to be measured in megabytes (by cursory Googling, anyway). If you spawn way too many threads, you are going to use way too much memory just allocating all of those stacks.
> nor in terms of small servers handling a few tens of clients at peak
I find it difficult to believe that blocking send(2) is too slow yet you only have tens of clients. You are well off the beaten path if that's really the shape of your problem. So I guess you get to build your own solution.
