osIROSE-new icon indicating copy to clipboard operation
osIROSE-new copied to clipboard

Create IO threads dynamically

Open RavenX8 opened this issue 8 years ago • 0 comments

In network_thread_pool.h we create a fixed number of threads to handle I/O operations. It would be better to spawn threads until the CPU usage hits a threshold. This would ensure that we are running at the maximum performance for the server.

Ref on how to get cpu usage: http://stackoverflow.com/questions/63166/how-to-determine-cpu-and-memory-consumption-from-inside-a-process

RavenX8 avatar Mar 02 '16 18:03 RavenX8