Is there a way to find out the current number of connection attempts waiting for accept () on a TCP socket on Linux?
I believe that I could count the number of accepts () that succeed before clicking EWOULDBLOCK on each event loop, but I use a high-level library (Python / Twisted) that hides this data. It also uses epoll (), not the old-fashioned select () / poll () loop.
I am trying to get a general idea of the load on a high-performance non-blocking network server, and I think this number will be a good feature. Average load / CPU statistics don't help much because I do a lot of disk I / O in parallel workflows. Most of these Linux timestamp statistics spent disk I / O latency as part of the load (which is not for my specific server architecture). The delay between accept () and the response is also not a good measure, since each request is usually processed very quickly as soon as the server bypasses it. I'm just trying to figure out how close I am to reaching the breakpoint when the server cannot send requests faster than they arrive.
python linux twisted sockets tcp
Dan Maas Jun 20 '12 at 19:00 2012-06-20 19:00
source share