3 ms·
I am not sure it's possible to solve this problem generally. Doing so would require the kernel be able to predict the future. Also, IIRC this is a proxy. If
by otterley 9y ago
I am not sure it's possible to solve this problem generally. Doing so would require the kernel be able to predict the future.
Also, IIRC this is a proxy. If you run out of CPU copying data between file descriptors before you run out of bandwidth, I'd be very surprised. I think sendfile(2) makes it especially cheap.
- brianwawok 9y agoSure there is. Pass around the connection socket as needed, or have a layer in front of the processing layer to only hand out the work when it is good to go.
- otterley 9y agoCan you point to a working example of this that actually solves the problem? i.e., that is demonstrably more efficient for any given request than the FIFO wakeup method?
- brianwawok 9y agoNo, you would need to test it for your workload. I am saying it is possible, not that it is better. Very different things.
- otterley 9y agoThat's why I said "it's not possible to solve this problem generally." That is, there's no general solution to the problem, one that is optimal for all workloads.