From b707d032cecb0cd97f548b755e4ec2bda190e83c Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sun, 2 Apr 2017 11:45:52 +0200 Subject: ipcpd: Add dynamic threadpooling for IPCPs --- include/ouroboros/config.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in index 30bab68f..b19bb17f 100644 --- a/include/ouroboros/config.h.in +++ b/include/ouroboros/config.h.in @@ -52,13 +52,17 @@ #define IRMD_MIN_AV_THREADS 16 #define IRMD_MAX_AV_THREADS 64 #define IRMD_MAX_THREADS 256 +/* IPCP dynamic threadpooling */ +#define IPCP_MIN_AV_THREADS 4 +#define IPCP_MAX_AV_THREADS 32 +#define IPCP_MAX_THREADS 64 -#define IPCPD_THREADPOOL_SIZE 16 #define IPCPD_MAX_CONNS IRMD_MAX_FLOWS #define PTHREAD_COND_CLOCK CLOCK_MONOTONIC #define PFT_SIZE 1 << 12 /* Timeout values */ #define IRMD_TPM_TIMEOUT 1000 +#define IPCP_TPM_TIMEOUT 1000 #define IRMD_ACCEPT_TIMEOUT 100 #define IRMD_REQ_ARR_TIMEOUT 500 #define IRMD_FLOW_TIMEOUT 5000 -- cgit v1.2.3