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

    Low throughput on 2.x

    Scheduled Pinned Locked Moved General pfSense Questions
    19 Posts 5 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.
    • H
      Harvy66
      last edited by

      When doing your speed tests, what processes show up consuming your CPU? Diagnostics->"System Activity"

      Copying the data and posting here could be helpful.

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

        1.2.3 was not vulnerable to Heartbleed, too old.  ;) Many other vulnerabilities though.

        Check the CPU usage at the console with 'top -SH'.
        This is a full install running from a harddisk I assume?

        You have probably setup Snort differently, maybe it's running on all interfaces now and previously wasn't?

        11MBps between internal interfaces doesn't seem that great to me.

        Steve

        1 Reply Last reply Reply Quote 0
        • R
          rds_correia
          last edited by

          Hi Steve. Thank you so much for your reply :)
          @stephenw10:

          1.2.3 was not vulnerable to Heartbleed, too old.  ;) Many other vulnerabilities though.

          I didn't know that otherwise I would had given it a second thought.
          OTOH I'm sure heartbleed was not the only serious vulnerability to have emerged between 1.2.3 and 2.x.

          @stephenw10:

          Check the CPU usage at the console with 'top -SH'.
          This is a full install running from a harddisk I assume?

          Yes, this is a full install on a 15k SAS hdd.
          I honestly haven't run a top on the CLI but dashboard shows cpu usage 0 or very near 0 and load average is around 0.20 for a dualcore cpu.
          Will run a top and report here a bit later today.

          @stephenw10:

          You have probably setup Snort differently, maybe it's running on all interfaces now and previously wasn't?

          Could be some snort difference but I have already stopped snort service for some time and the problem is still visible. And in fact I just checked that Snort is only running on WAN. As it is supposed, right?

          @stephenw10:

          11MBps between internal interfaces doesn't seem that great to me.

          No, it isn't. But I'm afraid 11MB/s is the max they can get on that network.
          You see, they have two old managed switches. One for the server room and another for the office open-space. Both are Cisco 26 port - 24x 10/100 and 2x 10/100/1000.
          Since both switches only have 2 gigE ports, what the other guy did was connect opt2 to a VMware ESXi server which runs all (3) servers in the company and connect the pfS lan port to one of the server room switch gigE ports. Then, the other gigE port on that switch is connected to the office switch on a gigE port.
          This way they have gigE between servers and the router (aka pfSense) and gigE between the router and both switches.
          But then all (5) desktops and 1 laptop connect to the office switch on 10/100 ports. And since 100mbps is roughly 12MB/s I guess 11MB/s is a quite okay figure. Problem is, they're stuck to 2-3MB/s

          pfSense 2.2.4 running on a HP DL385 G5
          WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

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

            If you did a in-place upgrade, try backing up the config and re-install/re-apply config.
            Is there anything setup to limit bandwidth?

            1 Reply Last reply Reply Quote 0
            • R
              rds_correia
              last edited by

              @podilarius:

              If you did a in-place upgrade, try backing up the config and re-install/re-apply config.

              I will most probably do that. In fact I had already thought about that during today.
              BTW, this server doesn't have any cd-rom reader. Should I download the memstick image and when it finishes booting up, hit 'I' to start the installer?

              @podilarius:

              Is there anything setup to limit bandwidth?

              No, not really. At first I still considered running the traffic shaping wizard because this is only a 7mbps/800kbps link. But something else came up and then I forgot to do that.
              So, if anything is setup to limit bandwidth it must have been in the config when it was still running 1.2.3.
              And thanks for your reply :)

              pfSense 2.2.4 running on a HP DL385 G5
              WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

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

                I had this issue with the traffic shaper enabled. I had to switch to limiter. I have 100Mbs connection and the limiter forced it to only 50. limiter doesn't have a problem. I have not tried it again since 2.1release. I didn't notice a change in the shaper code. You could also run through the config and see if a bug enabled a feature or something.

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

                  Great to know what I was doing something unexpected.

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

                    Check the config file is a good call. It's hard to see what might be causing that sort of restriction.
                    Bad switch? Bad cable? Check the error/collision count on the Status: Interfaces: page.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • R
                      rds_correia
                      last edited by

                      @stephenw10:

                      Check the config file is a good call. It's hard to see what might be causing that sort of restriction.

                      Yeah, I know. I've checked the config file but I don't know what I am looking for.
                      For all I know, everything seems plausible in the xml file.

                      @stephenw10:

                      Bad switch?

                      Checked. It's not the switch, they have a third switch on site (similar to the other 2 I've mentioned) and they configured the trunk port for the vlans and all the other ports in access for the required vlans and the problem is still there.

                      @stephenw10:

                      Bad cable?

                      Checked. We had done that already. Sorry for not mentioning it.

                      @stephenw10:

                      Check the error/collision count on the Status: Interfaces: page.

                      Checked. Status Interfaces does not have any error/collision on any of the NICs. It's been like that ever since we last rebooted the box yesterday in the morning.

                      Since all the above failed, I took a good look at https://doc.pfsense.org/index.php/Tuning_and_Troubleshooting_Network_Cards.
                      This wiki entry mentions bce and em NICs.
                      So I copied the wiki fixes for both NICs, added them to /boot/loader.conf.local, rebooted and apparently the issue is fixed.
                      I say apparently because the ADSL modem is synchronized at 7mbps/800kbps and yet all my speedtests are giving me 5mbps/500kbps without any other user connected to the router.
                      Still looks like very low figures but it is definitely an improvement.

                      Besides that, they were also suffering a high number of unavailable websites due to a problem in squid :o or shall I say in squid configuration?
                      Whatever, I removed squid, squidGuard and snort and now everything seems to be working fine.

                      Also, I am preparing a 2nd box that I will be temporarily put in place while I format and reinstall pfSense 2.1.3 from ground up on the original server.
                      I will also start with a fresh and new config file. Just in case ;)
                      Will let you know how it goes after finishing my tests.

                      pfSense 2.2.4 running on a HP DL385 G5
                      WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

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

                        Which opteron CPU is in that DL365?

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

                          Ah, nice. You mentioned having looked at that page in your first post so I assumed you'd added the recommended tweaks already. Never assume anything!  ::)

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • R
                            rds_correia
                            last edited by

                            @podilarius:

                            Which opteron CPU is in that DL365?

                            pfSense says it's an Opteron 2216 (Dualcore)

                            pfSense 2.2.4 running on a HP DL385 G5
                            WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

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

                              That should be enough horsepower for a 7Mbps connection.  Are you still seeing only 5Mbps when all the extra service are disabled?

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

                                Easily enough power even with all the packages.
                                It's rare that you can actually get near the sync speed, there is some overhead in DSL.

                                Steve

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

                                  True, but I think it would be closer to 7, like 6.5 to 6.9. What is the CPU load when you are testing? Are you doing iperf testing with multiple streams?

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    rds_correia
                                    last edited by

                                    @podilarius:

                                    Are you doing iperf testing with multiple streams?

                                    ^ Sorry, don't know what that is :(
                                    CPU load is usually within 0.5 and 0.8.

                                    I've since installed 2.1.3 from ground up with a new config file from scratch.
                                    Internet speed remains the same but inside the LAN (and the several vlans) it now seems pretty much ok with 11-12MB/s.
                                    I have tested the adsl circuit with my pc connected to the adsl modem and it only gives me 5mbps/500kbps.
                                    Thanks for everybody contributing to this topic :)
                                    Cheers

                                    pfSense 2.2.4 running on a HP DL385 G5
                                    WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

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

                                      If there is something throttling your bandwidth it may be doing it on a 'per connection' basis. Many traffic shaping tools work like that. Thus if you open up multiple simultaneous connections you often see an improvement in total throughput. The Speetest.net web site for example loads a local javascript client that opens up to 4 connections to get the best bandwidth reading it can.

                                      Anyway you seem to be sorted though it's always disappointing to fix something without knowing what the problem was.  ;)

                                      Steve

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        rds_correia
                                        last edited by

                                        @stephenw10:

                                        …though it's always disappointing to fix something without knowing what the problem was.  ;)

                                        Exactly. I hate fixing something without knowing what the problem was.
                                        It's like installing Windows again when all it was needed was to change a registry entry.
                                        But I guess it's better than nothing.
                                        Now I'm sure I'll have to open up a new thread for squid/squidGuard and then another one for snort.
                                        Thanks for the support, guys.  ;)
                                        Cheers

                                        pfSense 2.2.4 running on a HP DL385 G5
                                        WAN bce(4) + LAN em(4) + OPTn em(4) with 10 VLANs + Snort + PPTP VPN soon to be trashed by OVPN

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