I’m trying to find out how many requests per second to allow to our old Winsock 2.2 server. Currently, it’s on a dev server with an i5 4 core CPU. I have it set up to run 2 threads per processor so 8 threads. The server “listen” socket is on the main thread and 8 spawned threads to handle TCP requests.
Our payload is small at roughly 64 bytes (not including any TCP wrapper). We send that 64 bytes every 250 milliseconds and the server seems to handle it just fine. If we have 8 clients (say 1 per thread) is this frequency ok, or can it handle a lot more, or is this frequency too much? I’m looking for an answer that could hopefully show how it would scale if we ran the Winsock server on a 4 core, 8 core, 16 core, to 32 core CPU.
64 x 4 x 60 = 15360 bytes per minute per client or roughly 0.9 Mb per hour if my math is correct. So bandwidth is not really an issue. Average processing time on the client is under 50 milliseconds so I’m hoping we could raise the frequency to every 50 milliseconds without affecting server performance. I could just set it to every 50 milliseconds and see what happens but I don’t know if that’s the best approach.
TIA
4