KEA Multi-Threading - reduce number of threads
-
It seems multi-threading is enabled by default, as i can't find a specific setting for it. In my case it is default to a thread pool size of 4 which is overkill for my network. what is the correct way to insert
"multi-threading": {
"enable-multi-threading": true,
"thread-pool-size": 2,
"packet-queue-size": 64
}, -
@4o4rh For my own knowledge, why would you want to reduce the threads?
-
@AndyRH I have a low-end CPU Intel i3-8130U, 2 cores / 4 threads
If defaults to using 4 threads, two per core, which saturates the CPU for little to no gain. My home network can probably more than suffice with a single thread, so I want to reduce in two steps. -
@4o4rh It shouldn't really be using notable CPU.
A guess, are you seeing kea2unbound usage? Set pfBlocker to python mode.
-
@SteveITS Hi Steve, the log is showing below.
It seems that it is using that by default.
Oct 14 19:40:17 kea-dhcp4 25524 WARN [kea-dhcp4.dhcp4.0x2fcfd0e12000] DHCP4_MULTI_THREADING_INFO enabled: yes, number of threads: 4, queue size: 64
I can modify it, per the below
sed -i '/"Dhcp4": {/a\ "multi-threading": { "enable-multi-threading": true, "thread-pool-size": 2, "packet-queue-size": 64 },' /usr/local/etc/kea/kea-dhcp4.conf
But I want to do it in a way that is persistent through upgrades