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

    SG-1000 100% CPU Usage

    Scheduled Pinned Locked Moved Hardware
    34 Posts 9 Posters 6.4k 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.
    • W
      W4RH34D
      last edited by

      they had it fine, the last 2 updates - so bad i had to use other hardware.

      Did you really check your cables?

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

        I bought an SG-1000 to setup and install at my parents house but the performance that I'm seeing while I have it connected to my home network has me worried. I'm only seeing may throughput of around 100Mbps which is fine; their connection is less than that. Tried to run pfBlockerNG and unbound with DNSBL but the CPU utilization keeps spiking to 100%. Other than pfBlockerNG I have it setup with a remote access VPN and a VPN tunnel between their network and mine. OpenVPN can hit a CPU pretty hard but there is no traffic going over the VPNs.

        Is the ARM CPU in this so weak that it can't handle the VPN, unbound, and pfBlockerNG?

        Is the 2.4 Beta software not fully optimized for this platform?

        Worst part is I had my retired father spend $150 so that I could get his network purring like a kitten using pfSense and now I am seriously worried about sending this to him. I had it crash on me several times when I was setting it up; think I was overloading it due to impatience. Now that I have accepted that it takes a while to make changes I am seeing very high utilization.

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

          I think theyre still fiddling with it.  Like I said, 2 updates ago it was great - barely any cpu unless downloading something huge off of steam.  2 netflix going with smartphones and several computers with 0 issues….2 updates ago.

          Im brute forcing with a 6 core xeon until they get it stable again.  2.5w compared to 150w is nothing to sneeze at.

          Did you really check your cables?

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

            @W4RH34D:

            I think theyre still fiddling with it.  Like I said, 2 updates ago it was great - barely any cpu unless downloading something huge off of steam.  2 netflix going with smartphones and several computers with 0 issues….2 updates ago.

            Im brute forcing with a 6 core xeon until they get it stable again.  2.5w compared to 150w is nothing to sneeze at.

            This is where I'm at; I want to wait until they have it stable before I send it to my father because he doesn't have the technical knowledge to correct possible issues and I don't want to send him a buggy product.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I'm not seeing CPU usage any different in todays snap than a few days ago.

              pfBlocker with DNSBL could be an issue for the 512MB or RAM it has if you're using a large list.

              At the console run

              top -aSH
              

              Let it run for a few seconds to get the interrupt usage at the top and hit q to quit. Grab a screenshot or copy/paste it. What process is using all the CPU cycles?

              Steve

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

                I'll plug it in and get that soon.

                Did you really check your cables?

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

                  @stephenw10:

                  I'm not seeing CPU usage any different in todays snap than a few days ago.

                  pfBlocker with DNSBL could be an issue for the 512MB or RAM it has if you're using a large list.

                  At the console run

                  top -aSH
                  

                  Let it run for a few seconds to get the interrupt usage at the top and hit q to quit. Grab a screenshot or copy/paste it. What process is using all the CPU cycles?

                  Steve

                  Attached, this was after a boot. Direct console connection.

                  It cashed a few minutes after bootup. One connected via console no ethernet connections at the moment.

                  ![2017-02-05 (1).png_thumb](/public/imported_attachments/1/2017-02-05 (1).png_thumb)
                  ![2017-02-05 (1).png](/public/imported_attachments/1/2017-02-05 (1).png)
                  2017-02-05.png
                  2017-02-05.png_thumb

                  1 Reply Last reply Reply Quote 0
                  • D
                    deadmalc
                    last edited by

                    I've got it setup with openvpn (one outbound and an inbound server) and unbound.
                    It works fine - infact it works amazingly well, lower latency than my previous router.
                    I've not tried pfBlockerNG, I took a look but I've not used it before so I've removed it for the moment.
                    The outbound vpn connection works really well and saves me hastle.
                    The inbound connection is for when my wife is at work and needs files of the NAS.
                    Not had any complaints, in fact she commented that it was great and "just worked".

                    It is still in beta, so I'm expecting a few issues.
                    If you update every day, given it's in beta - I would expect some pain here and there.

                    I've not seen any load issues, or had any reboots. (touch wood)
                    But I tried a few other packages:
                    squid - way too sluggish, transformed from fibre to 9600 baud modem!
                    acme - not worth the effort, good idea though. [ CORRECTION - not worth the effort for a "home firewall" ]
                    pfBlockerNG - not got the time at the moment to understand and configure it properly.

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Hmm, Ok.
                      Not seeing high CPU usage there. Not sure what that panic might be. Did you get a crash report at reboot?

                      Steve

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

                        you can reduce the interrupt usage by fiddling in loader.conf.

                        you can reduce the timer to 100hz refresh rate instead of 1000hz, usually I only tune this on virtual machines but I would consider tuning it also on very low end hardware.

                        I will paste a link to the FreeBSD page as it has other tunables as well.

                        https://wiki.freebsd.org/TuningPowerConsumption

                        Also it might be a good idea to add a swap to that system as 512meg maximum addressable memory is quite low when you doing things like using pfblockerNG and especially if using with unbound.

                        pfSense CE 2.8.0

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

                          I can't get in to the GUI or the console - getting a resource busy.  I think i fried it.  I handed it to a friend who is going to take a crack at it.

                          Did you really check your cables?

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

                            @stephenw10:

                            Hmm, Ok.
                            Not seeing high CPU usage there. Not sure what that panic might be. Did you get a crash report at reboot?

                            Steve

                            I noticed that when before I sent it. The crash is what really worries me. My thought is the CPU usage and performance will come with finalized software.

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              I certainly hope so.

                              If you can catch it running at high CPU though and grab an output from top that will help us track down whatever that is.

                              It doesn't seem to be that widespread, not an issue effecting all users.

                              Steve

                              1 Reply Last reply Reply Quote 0
                              • P
                                pfbolt
                                last edited by

                                I'm seeing very high load on mine, and very low throughput. The CPU usage in top says it's mostly idle, but the load average hovers around 1.
                                Also, I'm getting very low throughput. Simply running curl on a large file and piping to /dev/null, I get <10mbit both on the SG-1000 itself and when I connect a computer to the LAN port.

                                I took the thing with me to work today, to try it in another network, but the results are the same.

                                Really disappointed :(

                                If there's any output I can give you that would help, please let me know. I really want to use this, but if it can't get close to my 100mbit connection I can't.
                                Currently it has the 20170207 image freshly flashed, and I've only run through the initial web config. No other changes.

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Same thing I suggested above should show it. Run at the console:

                                  top -aSH
                                  

                                  Let it run for a few seconds to get all the info then quit and copy paste it here.

                                  Steve

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    pfbolt
                                    last edited by

                                    It seems it depends very much on what I do. Testing with speedtest.net, I get the full 100mbit down, and almost the same up.
                                    However, downloading a single file from a site that normally maxes out my 100mbit, both on wireless and when stealing the WAN cable from the SG-1000, I get around 10mbit. Back to a smooth 100mbit as soon as I steal the WAN cable and plug it into my client machine.

                                    Attached is the output of top, as requested, after having ran top and the download for about a minute.

                                    top.txt

                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      pfbolt
                                      last edited by

                                      Any ideas? Anything else I can provide?

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        deadmalc
                                        last edited by

                                        The load on mine always hovers around 1, but it can handle my internet speed OK, it's the max speed I'm pegged at.

                                        So I don't think the load is the problem.
                                        If you want load less than 1, disable ssh, only use the console and don't use the web-interface.
                                        Obviously that's not never use the web interface!
                                        The 20% interrupt seems very high

                                        last pid:  7799;  load averages:  0.95,  1.26,  1.07    up 0+00:33:30  21:55:09
                                        117 processes: 2 running, 93 sleeping, 22 waiting
                                        CPU: 16.7% user,  0.0% nice, 44.9% system,  5.1% interrupt, 33.3% idle
                                        Mem: 59M Active, 227M Inact, 115M Wired, 56M Buf, 81M Free
                                        Swap:

                                        The only things I can think of immediately are:
                                        Is the traffic already saturated on the WAN port (install iftop and use from command line)
                                        Is there a duplex mismatch? Can you put a(nother) switch between the WAN cable and the SG-1000
                                        Are you logging any packets on the firewall? (that may help, try not logging anything)

                                        1 Reply Last reply Reply Quote 0
                                        • P
                                          pfbolt
                                          last edited by

                                          It's absolutely stock, so I doubt anything is being logged. However, speedtest also runs well on my SG-1000. I get the full 100mbit. However, when downloading a single file, the story is entirely different. Could you by any chance give downloading http://ipv4.download.thinkbroadband.com/1GB.zip a try? (it's a test file from http://www.thinkbroadband.com/download.html)

                                          1 Reply Last reply Reply Quote 0
                                          • D
                                            deadmalc
                                            last edited by

                                            If speedtest is working fine, then there is something weird going on.
                                            It doesn't make much sense, which means we are missing something (probably obvious!)

                                            I get(ish) around 4-5MB/sec (30-40Mbit) downloading the file.
                                            That seems around right for me, downloading from standard endpoints.

                                            If it's stock, then I'd definitely look at the settings.
                                            I'm still a newbie when it comes to PFSense (even though I've been using it for a long time) but
                                            If I was having these problems I would:

                                            • swear a lot ;-)

                                            • "Reset to factory defaults"

                                            • disable ssh

                                            • don't use the web-ui whilst you are doing any performance testing. (web browsers are the work of the devil anyway)

                                            • On the WAN, I would recommend a rule saying drop everything, don't log.

                                            Something like this:

                                            The SG-1000, from my understanding of gossip, blogs and forums is that it's currently rated to be around 100Mbit.
                                            I could be wrong there, that is purely my guess and bad memory at work!
                                            I know they are and have been working on improving this.
                                            virus scanning, proxy etc. IMHO is the last thing that should be on it at the moment if you are using it, or want to use it as your main firewall.

                                            So anything you can do to reduce the overhead is a good thing.
                                            It maybe painful to start again from factory, but if it's a niggling issue that can't be solved the only way is one step at a painful time.
                                            Make one change and re-test every time.

                                            Another question, are you plugging directly into the SG-1000 or via a switch - for a laugh if you can try both.
                                            Hardware is also the work of the devil - in fact anything to do with infrastructure is there to bend your mind!

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