summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-07-29 13:01:02 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-07-29 13:03:16 +0200
commit7407c7e21d2f50481bb81f36ee933094299aea1f (patch)
tree6bccbc9fa4133d623e6101e49f710fe54e9ba942 /include
parent331f39636bf6eef883980039ac8dadb285fb4342 (diff)
downloadouroboros-7407c7e21d2f50481bb81f36ee933094299aea1f.tar.gz
ouroboros-7407c7e21d2f50481bb81f36ee933094299aea1f.zip
ipcpd: Add multithreading to scheduler
The scheduler in the normal IPCP is now multithreaded. While useful in itself for scalability, it currently solves thread starvation in case of executing post_sdu operations that may require a response. This could be further revised in the future to split the SDU handling threads from the component tasks.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/config.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in
index 736ba5b3..e8341ee2 100644
--- a/include/ouroboros/config.h.in
+++ b/include/ouroboros/config.h.in
@@ -56,7 +56,7 @@
/* IPCP dynamic threadpooling */
#define IPCP_MIN_THREADS 4
#define IPCP_ADD_THREADS 16
-
+#define IPCP_SCHED_THREADS 8
#define IPCPD_MAX_CONNS IRMD_MAX_FLOWS
#define PTHREAD_COND_CLOCK CLOCK_MONOTONIC
#define PFT_SIZE 1 << 12