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

    kernel: [zone: mbuf_jumbo_9k] kern.ipc.nmbjumbo9 limit reached

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 3 Posters 8.0k 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.
    • jimpJ Offline
      jimp Rebel Alliance Developer Netgate
      last edited by

      Since the error message specifically said kern.ipc.nmbjumbo9 limit reached, I'll go out on a limb and say you need to increase kern.ipc.nmbjumbo9 :-)

      Or at least kern.ipc.nmbjumbop (See https://doc.pfsense.org/index.php/Tuning_and_Troubleshooting_Network_Cards#Intel_ix.284.29_Cards for an example)

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      • w0wW Offline
        w0w
        last edited by

        Recently I've tuned kern.ipc.nmbclusters="1000000"

        $ netstat -m
        2048/3772/5820 mbufs in use (current/cache/total)
        1024/1512/2536/1000000 mbuf clusters in use (current/cache/total/max)
        1024/1506 mbuf+clusters out of packet secondary zone in use (current/cache)
        0/8/8/13291 4k (page size) jumbo clusters in use (current/cache/total/max)
        1023/1940/2963/3938 9k jumbo clusters in use (current/cache/total/max)
        0/0/0/2215 16k jumbo clusters in use (current/cache/total/max)
        11767K/21459K/33226K bytes allocated to network (current/cache/total)
        0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
        0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters)
        0/0/0 requests for jumbo clusters delayed (4k/9k/16k)
        0/0/0 requests for jumbo clusters denied (4k/9k/16k)
        0/9/6656 sfbufs in use (current/peak/max)
        0 requests for sfbufs denied
        0 requests for sfbufs delayed
        0 requests for I/O initiated by sendfile

        1 Reply Last reply Reply Quote 0
        • w0wW Offline
          w0w
          last edited by

          #sysctl kern.ipc.nmbjumbo9=11815
          kern.ipc.nmbjumbo9: 11814
          sysctl: kern.ipc.nmbjumbo9=11815: Invalid argument

          Any number that differs from 11814 causes "Invalid argument", so I am not sure what is going on.

          EDIT: Applied just for test

          kern.ipc.nmbjumbop="524288"
          kern.ipc.nmbjumbo9="524288"

          2047/2003/4050 mbufs in use (current/cache/total)
          1023/1513/2536/1000000 mbuf clusters in use (current/cache/total/max)
          1023/1507 mbuf+clusters out of packet secondary zone in use (current/cache)
          0/3/3/524288 4k (page size) jumbo clusters in use (current/cache/total/max)
          1023/8/1031/524288 9k jumbo clusters in use (current/cache/total/max)
          0/0/0/2215 16k jumbo clusters in use (current/cache/total/max)
          11764K/3610K/15375K bytes allocated to network (current/cache/total)
          0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
          0/0/0 requests for mbufs delayed (mbufs/clusters/mbuf+clusters)
          0/0/0 requests for jumbo clusters delayed (4k/9k/16k)
          0/0/0 requests for jumbo clusters denied (4k/9k/16k)
          0/6/6656 sfbufs in use (current/peak/max)
          0 requests for sfbufs denied
          0 requests for sfbufs delayed
          0 requests for I/O initiated by sendfile

          How can I define appropriate numbers for stable work?  I have only 2GB of RAM installed.

          1 Reply Last reply Reply Quote 0
          • jimpJ Offline
            jimp Rebel Alliance Developer Netgate
            last edited by

            It's a loader tunable, so it must be set in /boot/loader.conf.local and only activates during a reboot.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • w0wW Offline
              w0w
              last edited by

              Which values are best for me? Near the maximum detected or twice or any mathematics based on stat else?
              kern.ipc.nmbjumbop="?"
              kern.ipc.nmbjumbo9="?"

              1 Reply Last reply Reply Quote 0
              • jimpJ Offline
                jimp Rebel Alliance Developer Netgate
                last edited by

                The link I posted above has a suggested value.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • w0wW Offline
                  w0w
                  last edited by

                  Yes, it is, but only for nmbjumbop and Intel "ix" cards and mine is "em".
                  Thank you for your patience, jimp. I know that I am asking dumb questions.
                  Unfortunately I can not find any good guide for freebsd 10 about tuning those values and old guides are too old for 10.x version, I think. The only one good thing I've found is https://pleiades.ucsc.edu/hyades/FreeBSD_Network_Tuning but there is no any explanation… and it is mostly for 10 gigabit throughput, mine is 1 gigabit and hardware is not such powerful as described in article.

                  1 Reply Last reply Reply Quote 0
                  • jimpJ Offline
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    When in doubt, try 2x what you have now for a max.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Harvy66
                      last edited by

                      fyi, 524288 9k jumbo frames is over 4GB and you only have 2GB. you're a bit over-subscribed. It won't be an issue unless your box actually attempts to use all of them, then bad things may happen when your kernel runs out of memory.

                      I think, anyway.

                      1 Reply Last reply Reply Quote 0
                      • w0wW Offline
                        w0w
                        last edited by

                        Ok, thanks.
                        Tuned a little bit differently
                        kern.ipc.nmbclusters="131072"
                        kern.ipc.nmbjumbo9="20000"

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