Justify epoll_instances config existing

This commit is contained in:
2025-08-22 16:47:08 -04:00
parent 12d4289568
commit f51f257df6
4 changed files with 34 additions and 7 deletions

View File

@@ -21,8 +21,8 @@ struct ServerConfig {
/// Number of I/O threads for handling connections and network events
int io_threads = 1;
/// Number of epoll instances to reduce epoll_ctl contention (default:
/// io_threads/2, max: io_threads)
int epoll_instances = 2;
/// io_threads, max: io_threads)
int epoll_instances = 1;
/// Event batch size for epoll processing
int event_batch_size = 32;
/// Maximum number of concurrent connections (0 = unlimited)