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

PC Engines apu2 experiences

Hardware
73
711
750.6k
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.
  • S
    stephenw10 Netgate Administrator
    last edited by May 28, 2018, 5:51 PM

    It's not expected to show in 2.4.3p1.

    The input validation on that field was improved since it was first introduced. It should only appear now on devices that expose a real serial number via ACPI in the correct field.

    I think the new forum code may have cut-off your kenv output.

    Looking on an APU here it does seem to be present so perhaps the validation there could be tweaked.

    It's not an issue with your board though, that's the expected behaviour currently.

    Steve

    1 Reply Last reply Reply Quote 1
    • K
      kevindd992002
      last edited by Jun 29, 2018, 7:45 AM

      I have a site-to-site VPN using an OpenVPN tunnel between two APU2C4's with pfSense on them (2.4.3-RELEASE-p1 (amd64)). I've been reading a few hours now on how to really have OpenVPN utilize hardware AES-NI as the CPU supports it. There are several threads about this but not one is clear enough to really explain how pfSense uses this.

      So, if I want to use hardware AES-NI, do I need to choose AES-NI CPU-based Acceleration under System > Advanced > Miscellaneous > Cryptographic Hardware? Or should I set it to None (no module loaded) and OpenVPN will use the AES-NI natively from the hardware without any module conflicts from the pfSense BSD OS?

      If I choose the former, under the OpenVPN Server/Client settings the only selection I have for Hardware Crypto is No Hardware Crypto Acceleration. The only time I have an extra option in the Client settings is when I choose BSD Crypto Device (cryptodev) under Miscellaneous. So which is which? I'm starting to have a headache because of the confusing pfSense GUI :)

      1 Reply Last reply Reply Quote 0
      • V
        Veldkornet
        last edited by Jun 29, 2018, 8:16 AM

        I'm also curious as to what the "correct" settings are... I can say that I did a couple of tests wrt speed, and I eventually settled on (apart from a bunch of other tweaks) enabling AES-NI CPU-based Acceleration under System > Advanced > Miscellaneous > Cryptographic Hardware, and then in the OpenVPN Server/Client settings the only selection I have No Hardware Crypto Acceleration.

        I know a while back, in the OpenVPN settings you could choose between AES-NI and cryptodev, but after some update the cryptodev disappeard.

        Additionally, I think that the best speeds were achieved when both AES-NI CPU-based Acceleration and cryptodev were enabled, which is now the default if you have AES-NI CPU-based Acceleration enabled on the system.
        So, I've just assumed that it doesn't matter anymore about the setting in OpenVPN since the system is already using all it can.

        K 1 Reply Last reply Jun 29, 2018, 8:22 AM Reply Quote 0
        • K
          kevindd992002 @Veldkornet
          last edited by Jun 29, 2018, 8:22 AM

          @veldkornet said in PC Engines apu2 experiences:
          Additionally, I think that the best speeds were achieved when both AES-NI CPU-based Acceleration and cryptodev were enabled, which is now the default if you have AES-NI CPU-based Acceleration enabled on the system.
          So, I've just assumed that it doesn't matter anymore about the setting in OpenVPN since the system is already using all it can.

          Enabling both where? Let's call both places Miscellaneous settings and Client settings to avoid confusion. Like I said, I don't have any options for a cryptodev Client setting IF I keep the Miscellaneous settings to AES-NI. All I have is the No Hardware Crypto Acceleration option.

          1 Reply Last reply Reply Quote 0
          • V
            Veldkornet
            last edited by Jun 29, 2018, 8:28 AM

            My mistake, I actually have the Miscellaneous set to AES-NI and BSD Crypto Device (aesni, cryptodev).
            This is the update that I referred to in my previous post where both are enabled.

            login-to-view

            OpenVPN Client & Server:
            login-to-view

            And these are the options available to me within OpenVPN:
            login-to-view

            K 1 Reply Last reply Jun 29, 2018, 8:30 AM Reply Quote 0
            • K
              kevindd992002 @Veldkornet
              last edited by Jun 29, 2018, 8:30 AM

              @veldkornet said in PC Engines apu2 experiences:

              My mistake, I actually have the Miscellaneous set to AES-NI and BSD Crypto Device (aesni, cryptodev).
              This is the update that I referred to in my previous post where both are enabled.

              login-to-view

              OpenVPN Client & Server:
              login-to-view

              And these are the options available to me within OpenVPN:
              login-to-view

              Ok, that makes more sense and we have the same set of available options in both places. Although I'm reading a lot that it generally is not a good thing to have both modules loaded (which is what you have set in Misc.) so I was wondering how you got better speeds with that?

              1 Reply Last reply Reply Quote 0
              • V
                Veldkornet
                last edited by Jun 29, 2018, 8:56 AM

                @kevindd992002 said in PC Engines apu2 experiences:

                Ok, that makes more sense and we have the same set of available options in both places. Although I'm reading a lot that it generally is not a good thing to have both modules loaded (which is what you have set in Misc.) so I was wondering how you got better speeds with that?

                With regards to having both loaded, see resolved bug 7810.

                In the OpenVPN settings, selecting BSD cryptodev engine made it slower indeed and shouldn't be selected.

                Not related to the crypto, but what also made a big difference is setting the following:
                login-to-view

                Anyway, this is just my opinion of how it should be since this works the best in my situation.

                K 1 Reply Last reply Jun 29, 2018, 9:11 AM Reply Quote 0
                • K
                  kevindd992002 @Veldkornet
                  last edited by Jun 29, 2018, 9:11 AM

                  @veldkornet said in PC Engines apu2 experiences:

                  @kevindd992002 said in PC Engines apu2 experiences:

                  Ok, that makes more sense and we have the same set of available options in both places. Although I'm reading a lot that it generally is not a good thing to have both modules loaded (which is what you have set in Misc.) so I was wondering how you got better speeds with that?

                  With regards to having both loaded, see resolved bug 7810.

                  In the OpenVPN settings, selecting BSD cryptodev engine made it slower indeed and shouldn't be selected.

                  Not related to the crypto, but what also made a big difference is setting the following:
                  login-to-view

                  Anyway, this is just my opinion of how it should be since this works the best in my situation.

                  Ahh, I see what you mean. Thanks for the heads up. I'm setting it that way then.

                  Yeah, I have both UDP Fast I/O and send/receiver buffer set to those values also as I read they can speed up things.

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Jun 29, 2018, 3:38 PM

                    Setting those tweaks will definitely show an improvement. Usually a significant one though I've never tested it on the APU2 myself.

                    OpenSSL should use the AES-NI instructions on your CPU directly if it supports them. The danger here is that instead of using them directly it tries to use the BSD crypto framework where the AES-NI kernel module has registered itself for the algorithms it supports. That means a load of additional cycles to do the same calculation.

                    As long as you don't have AES-NI+BSD crypto set in Adv. > MIsc. and BSD crypto set in openvpn you should avoid that.

                    When I last tested it Fast I/O and send/receiver buffer made a greater difference to throughput.

                    Steve

                    K 1 Reply Last reply Jun 29, 2018, 4:28 PM Reply Quote 0
                    • K
                      kevindd992002 @stephenw10
                      last edited by Jun 29, 2018, 4:28 PM

                      @stephenw10 said in PC Engines apu2 experiences:

                      Setting those tweaks will definitely show an improvement. Usually a significant one though I've never tested it on the APU2 myself.

                      OpenSSL should use the AES-NI instructions on your CPU directly if it supports them. The danger here is that instead of using them directly it tries to use the BSD crypto framework where the AES-NI kernel module has registered itself for the algorithms it supports. That means a load of additional cycles to do the same calculation.

                      As long as you don't have AES-NI+BSD crypto set in Adv. > MIsc. and BSD crypto set in openvpn you should avoid that.

                      When I last tested it Fast I/O and send/receiver buffer made a greater difference to throughput.

                      Steve

                      I see. So are you saying that setting AES-NI+BSD in Misc. and just no hardware crypto in the OpenVPN client settings would be fine?

                      D S 2 Replies Last reply Jun 30, 2018, 10:58 AM Reply Quote 0
                      • D
                        daemonix @kevindd992002
                        last edited by Jun 30, 2018, 10:58 AM

                        @kevindd992002 said in PC Engines apu2 experiences:

                        I see. So are you saying that setting AES-NI+BSD in Misc. and just no hardware crypto in the OpenVPN client settings would be fine?

                        Im interested in this too! And Im a bit confused after reading 20 posts about it in this thread.
                        cheers

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator @kevindd992002
                          last edited by Jul 1, 2018, 6:44 PM

                          @kevindd992002 said in PC Engines apu2 experiences:

                          I see. So are you saying that setting AES-NI+BSD in Misc. and just no hardware crypto in the OpenVPN client settings would be fine?

                          That's what I would expect. In 2.4 at least.

                          The last time I tested this though I achieved greatest throughput with both fields set to none or BSD with AES-NI disabled. Use AES-GCM and enable fastio and larger send/rec buffers.
                          That was a while back, 2.3.4 vs 2.4.0.

                          More testing is always good.

                          Steve

                          D 1 Reply Last reply Jul 2, 2018, 10:38 AM Reply Quote 0
                          • D
                            daemonix @stephenw10
                            last edited by Jul 2, 2018, 10:38 AM

                            @stephenw10 said in PC Engines apu2 experiences:

                            I achieved greatest throughput with both fields set to none or BSD with AES-NI disabled

                            What is a good throughput for APU2c4? My initial tests with openvpn server running on the apu2 (128-cbc) is around 20Mbit only... (150Mbit line max).
                            But I havent done your test with all OFF.

                            V 1 Reply Last reply Jul 2, 2018, 10:42 AM Reply Quote 0
                            • V
                              Veldkornet @daemonix
                              last edited by Jul 2, 2018, 10:42 AM

                              @daemonix said in PC Engines apu2 experiences:

                              @stephenw10 said in PC Engines apu2 experiences:

                              I achieved greatest throughput with both fields set to none or BSD with AES-NI disabled

                              What is a good throughput for APU2c4? My initial tests with openvpn server running on the apu2 (128-cbc) is around 20Mbit only... (150Mbit line max).
                              But I havent done your test with all OFF.

                              I currently get around 20Mbit as well, up and down, sometimes a bit more.

                              I have a 400/40 Mbit line.

                              I’ll need to double check my settings, but I think I have 256bit encryption.

                              D 1 Reply Last reply Jul 2, 2018, 11:16 AM Reply Quote 0
                              • D
                                daemonix @Veldkornet
                                last edited by daemonix Jul 2, 2018, 11:17 AM Jul 2, 2018, 11:16 AM

                                @veldkornet said in PC Engines apu2 experiences:

                                @daemonix said in PC Engines apu2 experiences:

                                @stephenw10 said in PC Engines apu2 experiences:

                                I achieved greatest throughput with both fields set to none or BSD with AES-NI disabled

                                What is a good throughput for APU2c4? My initial tests with openvpn server running on the apu2 (128-cbc) is around 20Mbit only... (150Mbit line max).
                                But I havent done your test with all OFF.

                                I currently get around 20Mbit as well, up and down, sometimes a bit more.

                                I have a 400/40 Mbit line.

                                I’ll need to double check my settings, but I think I have 256bit encryption.

                                pif Im getting 40Mbit max here. 128-GCM too.

                                I found this page: https://github.com/ocochard/netbenches/blob/master/AMD_GX-412TC_4Cores_Intel_i210AT/openvpn/results/fbsd11.0/README.md

                                But I cant see any luck. my test config below with APU2 running the openvpn server.

                                login-to-view

                                login-to-view

                                login-to-view

                                EDIT: this page too: https://teklager.se/en/knowledge-base/apu2-vpn-performance/

                                1 Reply Last reply Reply Quote 0
                                • V
                                  Veldkornet
                                  last edited by Veldkornet Oct 6, 2018, 4:00 PM Oct 6, 2018, 2:34 PM

                                  Just wanted to find out how everyone is getting on with 2.4.4?

                                  I had Firmware 4.8.0.4 on my APU2 with 2.4.3 and everything was fine, but after upgrading to 2.4.4 I had lots of “stalls”, both via the web interface and via SSH. I often had to restart the SAH session (or refresh the web page).

                                  I downgraded the firmware all the way back down to 4.0.7, and the stalls seem to be gone, although I can’t exactly say that everything is as snappy as I’d expect it to be, changing screens on the GUI still take quite a bit of time.

                                  If I restart unbound, it seems to take a good 5 minutes before it actually starts resolving.
                                  I seem to have to restart PHP-FPM pretty often to get the interface in a working state (never had to do this before).

                                  Anyone else seeing this? Or whats your experience been so far with 2.4.4?

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Oct 7, 2018, 12:44 PM

                                    I'd be surprised if that was anything to do with the Coreboot version really. About the only thing I could imagine doing that would be some component that is initiallised differently and only supported in FreeBSD 11.2. But I'm not aware of that.
                                    I would first backup the config and do a clean 2.4.4 install. If you still see the same issues you did in the upgraded 2.4.4 then did deeper. I would expect to see errors logged though.

                                    Steve

                                    D 1 Reply Last reply Oct 18, 2018, 6:45 PM Reply Quote 0
                                    • S
                                      Stewart
                                      last edited by Oct 11, 2018, 7:49 PM

                                      I need a recommendation on a console cable for the APU1/APU2 units. My laptop will be retired soon and so I'll no longer have a serial port to use. I'm sure there are USB cables that will connect in. Does anyone have a link to one that they use that we know will work? Thanks for the help!

                                      V 1 Reply Last reply Oct 11, 2018, 7:53 PM Reply Quote 0
                                      • V
                                        Veldkornet @Stewart
                                        last edited by Oct 11, 2018, 7:53 PM

                                        @stewart said in PC Engines apu2 experiences:

                                        I need a recommendation on a console cable for the APU1/APU2 units. My laptop will be retired soon and so I'll no longer have a serial port to use. I'm sure there are USB cables that will connect in. Does anyone have a link to one that they use that we know will work? Thanks for the help!

                                        I have this one, works well for me: https://www.startech.com/eu/m/Cards-Adapters/Serial-Cards-Adapters/USB-to-Null-Modem-RS232-DB9-Serial-Adapter-Cable-DCE-FTDI~ICUSB232FTN

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Stewart
                                          last edited by Stewart Oct 11, 2018, 8:22 PM Oct 11, 2018, 8:20 PM

                                          @ Veldkornet
                                          Think this is the same thing?
                                          https://www.amazon.com/USB-Serial-Adapter-Modem-9-pin/dp/B008634VJY/ref=sr_1_3?ie=UTF8&qid=1539289152&sr=8-3&keywords=startech+usb+null+modem

                                          EDIT: Found the model on the box in the image. It is indeed. Thanks for the rec!

                                          V 1 Reply Last reply Oct 11, 2018, 9:11 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.