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

    Trouble increasing kern.ipc.somaxconn

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 4.7k 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.
    • S
      stvboyle
      last edited by

      With the default install of pfSense kern.ipc.somaxconn=128.

      This is shown by sysctl -a | grep kern.ipc.somaxconn :
      kern.ipc.somaxconn: 128

      One can increase this value from the command line by sysctl -w kern.ipc.somaxconn="4096" :
      kern.ipc.somaxconn: 128 -> 4096

      I should be able to add kern.ipc.somaxconn="4096" or kern.ipc.somaxconn=4096 to /boot/loader.conf or to /boot/loader.conf.local or to /etc/sysctl.conf.  Unfortunately, when I make those changes and reboot, I still see kern.ipc.somaxconn: 128.  The boot time changes do not seem to be taking effect.  How can I change somaxconn at boot time or why are the settings not taking effect?

      Thanks!!

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        Your change needs to go into sysctl.conf. On pfSense 2.0 snapshot builds sysctl setting can be changed through web GUI: System -> Advanced, click on  System Tunables tab.

        I suspect sysctl.conf gets overwritten on reboot.

        1 Reply Last reply Reply Quote 0
        • S
          stvboyle
          last edited by

          Using System Tunables made all the difference.  Thank you.

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