3 ms·
I guess you would have some kind of in memory fd that you would write to and then use with sendfile calls? I'm not sure if you'd run into similar contention on
by foota 3y ago
I guess you would have some kind of in memory fd that you would write to and then use with sendfile calls? I'm not sure if you'd run into similar contention on the data structures involved there. I guess it would depend on specifically what mechanism you're using to store the data (something like tmpfs?), but probably doesn't have to involve contention? (as there wouldn't have to be any refcounting if you control the lifetime of the data).
I was thinking of a situation where you want to also limit the system call overhead per send. (think maybe there's some number of 64k-ish chunks that you want to send to different clients, so each connection would involve multiple write per frame etc.,)