diff options
author | dimitri staessens <[email protected]> | 2017-04-02 11:45:52 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-04-02 11:45:52 +0200 |
commit | b707d032cecb0cd97f548b755e4ec2bda190e83c (patch) | |
tree | 0adff5f0a4016e2c0384b5cd06e3783a4eb9c995 /include | |
parent | 1e62996112a2a43bd0f572676bc8d87761ad6386 (diff) | |
download | ouroboros-b707d032cecb0cd97f548b755e4ec2bda190e83c.tar.gz ouroboros-b707d032cecb0cd97f548b755e4ec2bda190e83c.zip |
ipcpd: Add dynamic threadpooling for IPCPs
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/config.h.in | 6 |
1 files changed, 5 insertions, 1 deletions
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 |