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

    Squid kern.ipc.nmbclusters=32768 - seemed to be large improvement here

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 4 Posters 24.8k Views
    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.
    • A
      adrianhensler
      last edited by

      Just wanted to mention that this in the /boot/loader.conf:

      kern.ipc.nmbclusters=32768

      ….as suggested by other threads in this forum seemed to be a night and day difference for me.

      Just curious if others are using this as well - it's a quick thing to try.

      Not sure how to quantify it, but it certainly seems a lot faster.

      1 Reply Last reply Reply Quote 0
      • M
        mhab12
        last edited by

        My experience has been that commenting the whole line out gives the best performance…
        #kern.ipc.nmbclusters="0"

        1 Reply Last reply Reply Quote 0
        • N
          n1ko
          last edited by

          @mhab12:

          My experience has been that commenting the whole line out gives the best performance…
          #kern.ipc.nmbclusters="0"

          Wonder what value will be used if its commented out. Anyone have any clue what this configuration affects?

          I am using the config that was given awhile ago for improving squid performance. In /boot/loader.conf:

          autoboot_delay="1"
          vm.kmem_size="435544320"
          vm.kmem_size_max="535544320"
          #kern.ipc.nmbclusters="0"
          kern.hz=100
          #for squid
          kern.ipc.nmbclusters="32768"
          kern.maxfiles="65536"
          kern.maxfilesperproc="32768"
          net.inet.ip.portrange.last="65535"

          1 Reply Last reply Reply Quote 0
          • C
            chudy
            last edited by

            freebsd default is 8192, but pfsense default is 0
            if you comment that and reboot.

            sysctl kern.ipc.nmbclusters
            

            That will show your current value which is default unless its being specified in /etc/sysctl.conf

            performance also increase if set in /etc/sysctl.conf according to http://fasterdata.es.net/TCP-tuning/FreeBSD.html

            
            net.inet.tcp.inflight.enable=0
            net.inet.tcp.hostcache.expire=1
            
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.