Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    KEA Multi-Threading - reduce number of threads

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 42 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 4 Offline
      4o4rh
      last edited by

      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
      },

      AndyRHA 1 Reply Last reply Reply Quote 0
      • AndyRHA Offline
        AndyRH @4o4rh
        last edited by

        @4o4rh For my own knowledge, why would you want to reduce the threads?

        o||||o
        7100-1u

        4 1 Reply Last reply Reply Quote 0
        • 4 Offline
          4o4rh @AndyRH
          last edited by

          @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.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            SteveITS Rebel Alliance @4o4rh
            last edited by

            @4o4rh It shouldn't really be using notable CPU.

            A guess, are you seeing kea2unbound usage? Set pfBlocker to python mode.

            Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to reboot, or more depending on packages, and device or disk speed.
            Upvote 👍 helpful posts!

            4 1 Reply Last reply Reply Quote 0
            • 4 Offline
              4o4rh @SteveITS
              last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.