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

    PC Engines apu2 experiences

    Scheduled Pinned Locked Moved Hardware
    711 Posts 73 Posters 783.6k 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.
    • K
      kevindd992002 @dugeem
      last edited by

      @dugeem said in PC Engines apu2 experiences:

      @kevindd992002 said in PC Engines apu2 experiences:

      Do you happen to know the what the recommendations are for the APU2C4 v4.11.0.6 BIOS settings to achieve max performance?

      Defaults are fine. Only two that matter are:

      1. Core Performance Boost (CPB) enabled (default)
      2. PCIe Power Management disabled (now default)

      Cheers

      Got it. I know CPB enabled is the default but was disabled in the older BIOS'es where it was initially introduced. Just for the heck of it, is there a way to know if CPB is enabled aside from checking it during runtime? I currently don't have physical access to the pfsense boxes.

      QinnQ 1 Reply Last reply Reply Quote 0
      • QinnQ
        Qinn @kevindd992002
        last edited by

        @kevindd992002 I only know

        dmidecode
        

        on the command line, but sadly it doesn't show the CPB

        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
        Firmware: Latest-stable-pfSense CE (amd64)
        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

        1 Reply Last reply Reply Quote 0
        • K
          kevindd992002
          last edited by

          @Qinn said in PC Engines apu2 experiences:

          /boot/loader.conf.local

          @cysiacom and others

          Not sure why but my OpenVPN remote access server only 55-60Mbps speed when I'm trying to saturate the link. I'm not sure if my test is right but I connect my local laptop (same network as the OpenVPN remote access server) to the OpenVPN server and download a game in steam. My Internet connection is 300Mbps symmetrical speed, so I'm expecting much higher speed. As soon as I disconnect the VPN connection of the laptop, the download speed soars up to saturate the 300Mbps link.

          Here are my OpenVPN settings:

          7365ab28-4712-4b8a-bdc4-2256df7e1322-image.png
          1597bdc9-fb5e-4aa5-a717-0a1fb9108206-image.png
          901867ed-e370-4e3b-8772-ce7faa7b62c6-image.png
          922fac72-2235-4b67-9607-3625416a4258-image.png
          013095fd-bba4-4d66-bfeb-de74c951a75a-image.png
          d40459f8-a21e-40ef-ace1-d8d1cdf9a6b9-image.png
          160adaa9-7e41-4c27-906f-79f5685c8152-image.png

          When my laptop is NOT connected to the VPN server, here are the traffic graphs:

          51d2bf52-9f75-4ffe-89b2-75c539edd0cf-image.png
          4041d534-7f60-4af9-80b9-d7b1d5a42311-image.png

          As soon as I connect it to the VPN server:

          e57878e2-3758-44f7-9984-80d969a76331-image.png
          170bcf94-ee0d-4700-8fca-c5b85697e0bf-image.png

          See the sudden drop in speed? When I disconnect from the VPN server, the speed goes back up to the saturation point. Any ideas?

          1 Reply Last reply Reply Quote 0
          • DaddyGoD
            DaddyGo
            last edited by

            We use more than 20 APU4 boards in our system with OpenVPN.
            The value will not be higher! (cca. 55 Mbps)
            This is what the APU board can screw out of of itself, since OpenVPN uses only 1 CPU core and in this case is1 .0 GHz or 1.4 GHz (1.4 if you do the tuning, but that only applies to one core).
            We've been experimenting for a long time to achieve higher speeds, but low CPU clock can do just that with OpenVPN.

            Under the same conditions, a Supermicro M11SDV-4C-LN4F-based pfSense 310 to 340 Mbps can be accessed in the same location with the same installation.
            This is proof of the above.

            BTW, your setting is completely correct!
            Regarding OpenVPN, the CPU clock is your best friend.

            Cats bury it so they can't see it!
            (You know what I mean if you have a cat)

            1 Reply Last reply Reply Quote 0
            • K
              kevindd992002
              last edited by

              That's what I thought. Does that mean that the CPU usage in the pfsense dashboard means overall CPU usage and not just single core? I just don't see it peaking at 100% while running the test. I tried it again with speedtest and got it to be higher:

              0a4ee760-c610-40b5-b0ed-24c1e6688a77-image.png
              https://www.speedtest.net/result/9415734802

              I don't understand how it got higher though. The battle.net game download I had earlier was saturating the link without the VPN connection so I was expecting it to be more or less the same as the speedtest result.

              Does that mean that it's better to do IPsec road warrior server then?

              1 Reply Last reply Reply Quote 0
              • DaddyGoD
                DaddyGo
                last edited by

                @kevindd992002 said in PC Engines apu2 experiences:

                https://www.speedtest.net

                Exactly! if you want better values then IPsec. (multithreading)
                Since we use ExpressVPN and our own OpenVPN tunnels, we can't switch to IPsec, we just accepted the fact that, these motherboards can do just that.
                The measurements depend on a lot of things, the current load and what else is running on the APU under pfSense, such as Squid, pfBlocketNG, Snort / Suricata.

                The graphs show aggregate values and can be suggestive.
                Measurements can also be performed in several ways, such as https://fast.com/ and https://speedof.me/ and https://www.meter.net/ping-test/.
                I personally don't like the https://www.speedtest.net

                Cats bury it so they can't see it!
                (You know what I mean if you have a cat)

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

                  Run top -aSH at the command line while testing to see how the CPU cores are loaded.

                  You have NCP enabled and you have AES-CBC and AES-GCM set as NCP ciphers. Which is it actually connecting with?

                  I would disable NCP there to force it to use AES-128-GCM which you have selected. I would expect that to be fastest.

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • DaddyGoD
                    DaddyGo
                    last edited by

                    NCP is a good idea Steve, but it won’t help much.
                    Compare these two settings with one NCP and the other W/O NCP.
                    (We work with each provider and have experience with these settings.)

                    c61b84b0-b2b2-42af-a47e-7e8a9e4fdf4e-image.png

                    or

                    51310b05-f41c-418f-9d7d-0e67785aabae-image.png

                    There is no significant difference between the obtained velocities.
                    We have been using APU boards for 5 years and these are long-term experiences.

                    Cats bury it so they can't see it!
                    (You know what I mean if you have a cat)

                    K 1 Reply Last reply Reply Quote 0
                    • K
                      kevindd992002 @DaddyGo
                      last edited by

                      @DaddyGo said in PC Engines apu2 experiences:

                      @kevindd992002 said in PC Engines apu2 experiences:

                      https://www.speedtest.net

                      Exactly! if you want better values then IPsec. (multithreading)
                      Since we use ExpressVPN and our own OpenVPN tunnels, we can't switch to IPsec, we just accepted the fact that, these motherboards can do just that.
                      The measurements depend on a lot of things, the current load and what else is running on the APU under pfSense, such as Squid, pfBlocketNG, Snort / Suricata.

                      The graphs show aggregate values and can be suggestive.
                      Measurements can also be performed in several ways, such as https://fast.com/ and https://speedof.me/ and https://www.meter.net/ping-test/.
                      I personally don't like the https://www.speedtest.net

                      I see. I have to get my head around using IPsec then. I tried establishing an Ipsec connection as described here but failed.

                      Yes, I understand that they show aggregate values but I only have one test client connected to the OpenVPN server when I tested that. Here's what I see with the other test sites:

                      fast.com = 82 Mbps
                      speedof.me = 60 Mbps
                      meter.net = 68 Mbps

                      For me, usually fast.com and speedtest.net almost always saturates my link.

                      @stephenw10 said in PC Engines apu2 experiences:

                      Run top -aSH at the command line while testing to see how the CPU cores are loaded.

                      You have NCP enabled and you have AES-CBC and AES-GCM set as NCP ciphers. Which is it actually connecting with?

                      I would disable NCP there to force it to use AES-128-GCM which you have selected. I would expect that to be fastest.

                      Steve

                      Ok, yeah I see that the process is only using one CPU while running the test.

                      The connection is using the AES-128-GCM as expected but disabling NCP to force AES-128-GCM makes sense.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kevindd992002 @DaddyGo
                        last edited by

                        @DaddyGo said in PC Engines apu2 experiences:

                        NCP is a good idea Steve, but it won’t help much.
                        Compare these two settings with one NCP and the other W/O NCP.
                        (We work with each provider and have experience with these settings.)

                        c61b84b0-b2b2-42af-a47e-7e8a9e4fdf4e-image.png

                        or

                        51310b05-f41c-418f-9d7d-0e67785aabae-image.png

                        There is no significant difference between the obtained velocities.
                        We have been using APU boards for 5 years and these are long-term experiences.

                        I don't think he's saying that NCP helps. If anything, he's suggesting to disable NCP on my settings to force the AES-128-GCM cipher.

                        1 Reply Last reply Reply Quote 0
                        • DaddyGoD
                          DaddyGo
                          last edited by

                          Of the above two providers, it uses one CBC and the other GCM, due to the finite performance of the APU board, no significant difference is seen.

                          I know he doesn't say it helps ;-) (NCP)

                          IPsec requires a little more care to set up, there are several good descriptions as I have seen in the forum in the past.

                          What I can tell you for sure is that I know APU boards very well, and we love them very much.
                          Only as long as the Chihuahua is a good lap dog, he is a very bad Caucasian bear killer. :-)

                          Cats bury it so they can't see it!
                          (You know what I mean if you have a cat)

                          K 1 Reply Last reply Reply Quote 0
                          • K
                            kevindd992002 @DaddyGo
                            last edited by

                            @DaddyGo said in PC Engines apu2 experiences:

                            Of the above two providers, it uses one CBC and the other GCM, due to the finite performance of the APU board, no significant difference is seen.

                            I know he doesn't say it helps ;-) (NCP)

                            IPsec requires a little more care to set up, there are several good descriptions as I have seen in the forum in the past.

                            What I can tell you for sure is that I know APU boards very well, and we love them very much.
                            Only as long as the Chihuahua is a good lap dog, he is a very bad Caucasian bear killer. :-)

                            My bad then :)

                            Yeah, there's too many variables with IPsec and I hate that FreeBSD doesn't support reply-to's but hey if it's faster then I'm all for making it work. This is just for home user between two sites anyway.

                            1 Reply Last reply Reply Quote 0
                            • DaddyGoD
                              DaddyGo
                              last edited by

                              Yeeeppp, then they will....do
                              The guys at Netgate love IPsec (let’s say I understand), but they also support OpenVPN very well.
                              We’ll see what the future holds, just thinking about TNSR and IPsec, hmmmm

                              Cats bury it so they can't see it!
                              (You know what I mean if you have a cat)

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

                                Indeed. Enabling NCP merely allows the two ends to negotiate a cipher and even then they both have to have ciphers set that match.
                                I don't have an APU2 to test with but IIRC the updated CPU is aes-ni capable. That should be measurably faster using AES-GCM over AES-CBC+SHA1/256.

                                Alternatively if the restriction is at the server end it should use less CPU to pass the same bandwidth.

                                Steve

                                DaddyGoD 1 Reply Last reply Reply Quote 0
                                • DaddyGoD
                                  DaddyGo @stephenw10
                                  last edited by

                                  @stephenw10

                                  Yes, you remember correctly MOBO has aes-ni ability, based on AMD Embedded G series GX-412TC CPU,
                                  low power consumption (12W) like SOHO router category, 4 CPU core (1400 Core Performance Boost (CPB) /1000/1000/1000), 4GB DDR3-1333 with ECC and 4x Intel i211 characterizes the device (APU4).
                                  In light of the above, the MOBO can't do more with OpenVPN either, unfortunately. (cca. 50 - 60 Mbps)

                                  We tried it with a completely clean pfSense installation, only an OpenVPN connection was installed and we used an ISP 1000/1000 with a business subscription with a fixed IP without filters on FTTB.

                                  Absolutely true:
                                  Alternatively if the restriction is at the server end it should use less CPU to pass the same bandwidth.

                                  In the tests mentioned, our own OpenVPN server was in a data center rented in BIX (4x10Gig) and the APU was at the end of the FTTB (1Gig).

                                  This should not scare anyone from using APU boards, which is a great good little tool for external colleagues, smaller sites endpoints.

                                  Cats bury it so they can't see it!
                                  (You know what I mean if you have a cat)

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    saltandpepper @dugeem
                                    last edited by saltandpepper

                                    Hi

                                    Currently im running in APU2. Till 2 weeks ago I was able to get 1gibt trough my Box. 1Gbit is on the edge but it worked. Around 2 weeks ago I startet to play with traffic shapping. Unfortunatly since then I was not able to revert back to a setup that gets nearly close to my previous performance.

                                    To check if the issue us on my side or my ISP i changed the router, which gave me my Gbit back.

                                    Since im quite sertain that the issue is in my network i startet to test with iperf. No matter how much connection i open i only get around 400mbit trough. If only one connection is, 20 or 100. Around 400 - 420mbit is the limit. Previous i got 940mbit as expected with iperf. I already startet to test my switches, but I get 940mbit to the last switch.
                                    After i tested all my equitment, I reinstalled Pfsense and did my confing manualy. Still 400mbit, in up and download. The settings that i use are the same as mentioned by dugeem.

                                    @dugeem said in PC Engines apu2 experiences:

                                    My current APU2 performance tweak summary:

                                    1. Upgrade BIOS to enable CPB (mainline v4.9.0.2 or later, legacy v4.0.25 or later)
                                    2. Disable ICMP Redirects to enable tryforward routing path (under System / Advanced / System Tunables set net.inet.ip.redirect & net.inet6.ip6.redirect to 0)
                                    3. Add hw.igb.rx_process_limit=-1 to /boot/loader.conf.local

                                    There may well be other tweaks but for our power efficient APU2 routers these tweaks should serve most well. And when my home internet evolves to 500Mb/s I'll worry some more ☺

                                    The only thing that i have not done yet is a bios rollback to 4.11.04
                                    Still 400mbit

                                    Maybe someone has an idea whats currently is wrong with my setup.

                                    Cheers

                                    1 Reply Last reply Reply Quote 0
                                    • fireodoF
                                      fireodo
                                      last edited by

                                      Update APU2 Bios from v4.11.0.6 to v4.12.0.1 on 2 boxes - until now without issues.

                                      Regards,
                                      fireodo

                                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                      pfsense 2.8.0 CE
                                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                                      QinnQ 1 Reply Last reply Reply Quote 1
                                      • QinnQ
                                        Qinn @fireodo
                                        last edited by

                                        @fireodo Will try tomorrow, thanks for reporting!

                                        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                        Firmware: Latest-stable-pfSense CE (amd64)
                                        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          FLOK
                                          last edited by

                                          Hi folks,

                                          since yesterday i have fiber at home with 300MBits Up and down.
                                          But i cant get a real good performance....okay....its really poor.
                                          So i made an Bios upgrade on my APU2D4 from 4.07 to 4.12.01.
                                          pfsense.png

                                          Then created the /boot/loader.conf.local file an inserted (with nano):
                                          hw.igb.rx_process_limit="-1 ".

                                          TSO and LRO are disabled.
                                          Reboot...

                                          But still a poor performance: Iperf3 to an public Server ~30MBits/s.
                                          Here a my tunables (are they all necessary ??)
                                          Tunables.jpg

                                          Any hints ?

                                          QinnQ 1 Reply Last reply Reply Quote 0
                                          • QinnQ
                                            Qinn @FLOK
                                            last edited by

                                            @FLOK I hope this might helps...

                                            A reboot after an bios update is not enough, it is recommended to shutdown the APU2 and make it powerless, this can be done gracefully using the GUI and go to Diagnostics -> Halt system and wait for the lights on the APU2 to go down, than remove the powerplug and wait for 30 sec and put it back in, hope it helps.

                                            Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                            Firmware: Latest-stable-pfSense CE (amd64)
                                            Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

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