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

SG-1000 High CPU Usage with Netstat Command?

Scheduled Pinned Locked Moved General pfSense Questions
9 Posts 7 Posters 2.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.
  • T
    TitanArchon
    last edited by Nov 2, 2017, 1:07 AM

    Very new to Pfsense so please dont flame me. Been searching for this and cant find anything i understand about it online anywhere. My CPU usage is 100 percent most of the time and the command doing it is /usr/bin/netstat -m and the /usr/bin/netstat -mb. Both of those start and stop off and on over and over, sometimes at the same time. They both consume whatever CPU is not being used and just keep dong it over and over. Anyone have any ideas as to why this is happening? I only have a NAS and some VMware hosts going through it with barely any traffic. Thanks for any help you all can provide.

    1 Reply Last reply Reply Quote 0
    • T
      TitanArchon
      last edited by Nov 2, 2017, 2:11 PM

      Anyone have anything on this? I'll seriously take any advice/help i can. Thank you very much!

      1 Reply Last reply Reply Quote 0
      • K
        KOM
        last edited by Nov 2, 2017, 3:29 PM

        I don't have one of these and have no idea about the problem.  Which version of pfSense are you running?  Any packages installed?

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Nov 2, 2017, 7:55 PM

          We've had a couple reports of that and it's not clear why netstat is consuming so much on ARM, specifically on the SG-1000.

          If you look in top, however, it will show bogus CPU percentages in some cases on ARM, and that's a known bug in FreeBSD.

          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
          • C
            CryptoGnome
            last edited by Nov 8, 2017, 2:18 PM

            I've had a difficult time with the SG-1000's CPU usage as well. After a factory reset and update to latest version, it will run around 60%. If I try to install packages, it jumps to 100%. Would I be better off working with different hardware?

            1 Reply Last reply Reply Quote 0
            • H
              hhash
              last edited by Dec 23, 2017, 5:32 PM

              On my sg-1000 netstat was taking 3-5 seconds, I tracked the issue down to the kldsym calls. Upstream already dealt with this here: https://reviews.freebsd.org/D12151

              It has been MFC'd to 11-stable, but didn't make it in in time for 11.1-Release. Though it will be in a rebased or patched future version of pfsense.

              With the above patch my netstat now takes .03 seconds. While the CPU usage reporting on ARM has other issues (I've seen top report 1600%+ use and I'm unclear how that makes sense for the sg-1000), the system is calling netstat -m all the time for statistics gathering purposes and without the above patch it negatively impacts performance when netstat is maxing out on kldsym calls for 3-5 seconds each time.

              To use the above patch you'll probably have to cross compile for armv6 from another FreeBSD machine and copy the binary over. If you don't have such a setup and you trust me you can use mine here: http://files.realzer.net/~haven/pfsense/netstat-arm

              Or better yet, now that the problem is understood and the resolution is straightforward, jimp could maybe build a more official netstat arm binary for interim use if it's getting you down.

              1 Reply Last reply Reply Quote 0
              • J
                jimp Rebel Alliance Developer Netgate
                last edited by Dec 27, 2017, 1:42 PM

                https://redmine.pfsense.org/issues/8237

                That patch is in 2.4.3 snapshots and it looks good to me, netstat is behaving much better.

                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
                • R
                  revengineer
                  last edited by Dec 30, 2017, 11:45 PM

                  @jimp:

                  https://redmine.pfsense.org/issues/8237

                  That patch is in 2.4.3 snapshots and it looks good to me, netstat is behaving much better.

                  Any idea when this will be released? My Gold membership expires in 3 weeks and I wasted 80% of my membership in beta status. I realize I can always update from the dashboard, but I would like a well functioning image.

                  1 Reply Last reply Reply Quote 0
                  • I
                    ivor
                    last edited by Dec 31, 2017, 11:01 AM

                    You will be able to download the image once it's ready.

                    Need help fast? Our support is available 24/7 https://www.netgate.com/support/

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received