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

    Massive performance drop after upgrade from 23.05 to 23.09

    Scheduled Pinned Locked Moved General pfSense Questions
    opensslhaproxyperformance
    22 Posts 6 Posters 3.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.
    • micneuM
      micneu @micneu
      last edited by micneu

      I have now tested 23.09.1. the values are slightly better. But I would have thought it would be more (I have no comparison with the netgate 6100) I now have 60MByte/s in the download.

      [23.09.1-RELEASE][admin@fw1.in.xxx.de]/root: openssl speed -elapsed -evp aes-256-gcm
      You have chosen to measure elapsed time instead of user CPU time.
      Doing AES-256-GCM for 3s on 16 size blocks: 25549143 AES-256-GCM's in 3.02s
      Doing AES-256-GCM for 3s on 64 size blocks: 18785835 AES-256-GCM's in 3.02s
      Doing AES-256-GCM for 3s on 256 size blocks: 7343485 AES-256-GCM's in 3.04s
      Doing AES-256-GCM for 3s on 1024 size blocks: 2143908 AES-256-GCM's in 3.01s
      Doing AES-256-GCM for 3s on 8192 size blocks: 281723 AES-256-GCM's in 3.03s
      Doing AES-256-GCM for 3s on 16384 size blocks: 141599 AES-256-GCM's in 3.03s
      version: 3.0.12
      built on: reproducible build, date unspecified
      options: bn(64,64)
      compiler: clang
      CPUINFO: OPENSSL_ia32cap=0x4ff8e3bfefebffff:0x2294e283
      The 'numbers' are in 1000s of bytes per second processed.
      type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
      AES-256-GCM     135556.07k   398687.98k   618589.50k   729886.52k   761360.76k   765346.97k
      

      SCR-20231208-oypq.png
      SCR-20231208-pbxs.png

      Internet: Willy.tel Down: 1Gbit/s, UP: 250Mbit/s Glasfaser |
      Hardware: Netgate 6100
      ALT Intel NUC BNUC11TNHV50L00 (32GB Ram, 512GB M.2 NVME SSD)

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

        You should openssl speed back at essentially the 23.05.1 speeds.

        Had you never tested that in 23.05.1?

        micneuM 1 Reply Last reply Reply Quote 0
        • micneuM
          micneu @stephenw10
          last edited by

          @stephenw10 I can't say, I always only had 23.09 on the netgate 6100

          Internet: Willy.tel Down: 1Gbit/s, UP: 250Mbit/s Glasfaser |
          Hardware: Netgate 6100
          ALT Intel NUC BNUC11TNHV50L00 (32GB Ram, 512GB M.2 NVME SSD)

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

            Do you still see HAProxy using close to 100% of one CPU core?

            Is that speedtest actually using multiple streams?

            micneuM 1 Reply Last reply Reply Quote 0
            • micneuM
              micneu @stephenw10
              last edited by

              @stephenw10 As you can see in the screenshot, the cpu is very busy https://forum.netgate.com/assets/uploads/files/1702051796330-scr-20231208-oypq.png. I can't say anything about the second question, I didn't develop it. I just use it.

              Internet: Willy.tel Down: 1Gbit/s, UP: 250Mbit/s Glasfaser |
              Hardware: Netgate 6100
              ALT Intel NUC BNUC11TNHV50L00 (32GB Ram, 512GB M.2 NVME SSD)

              S 1 Reply Last reply Reply Quote 0
              • S
                sig1980 @micneu
                last edited by

                Hi,

                i can confirm that with 23.09.1 AES-NI Acceleration is back. For me this was a massive Performance drop in OpenVPN with 23.09 which is now fixed with 23.09.1.

                23.05.1

                root: openssl speed -elapsed -evp aes-256-gcm
                You have chosen to measure elapsed time instead of user CPU time.
                Doing aes-256-gcm for 3s on 16 size blocks: 15066311 aes-256-gcm's in 3.00s
                Doing aes-256-gcm for 3s on 64 size blocks: 7855959 aes-256-gcm's in 3.01s
                Doing aes-256-gcm for 3s on 256 size blocks: 2719459 aes-256-gcm's in 3.00s
                Doing aes-256-gcm for 3s on 1024 size blocks: 756518 aes-256-gcm's in 3.00s
                Doing aes-256-gcm for 3s on 8192 size blocks: 97459 aes-256-gcm's in 3.00s
                Doing aes-256-gcm for 3s on 16384 size blocks: 48892 aes-256-gcm's in 3.01s
                OpenSSL 1.1.1t-freebsd  7 Feb 2023
                built on: reproducible build, date unspecified
                options:bn(64,64) rc4(16x,int) des(int) aes(partial) idea(int) blowfish(ptr)
                compiler: clang
                The 'numbers' are in 1000s of bytes per second processed.
                type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
                aes-256-gcm      80353.66k   167158.48k   232060.50k   258224.81k   266128.04k  266321.96k
                

                23.09

                You have chosen to measure elapsed time instead of user CPU time.
                Doing AES-256-GCM for 3s on 16 size blocks: 5880314 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 64 size blocks: 1862428 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 256 size blocks: 493665 AES-256-GCM's in 3.01s
                Doing AES-256-GCM for 3s on 1024 size blocks: 125115 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 8192 size blocks: 15699 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 16384 size blocks: 7843 AES-256-GCM's in 3.00s
                version: 3.0.12
                built on: reproducible build, date unspecified
                options: bn(64,64)
                compiler: clang
                CPUINFO: OPENSSL_ia32cap=0x43d8e3bfefebffff:0x2282
                The 'numbers' are in 1000s of bytes per second processed.
                type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
                AES-256-GCM      31361.67k    39731.80k    42016.66k    42705.92k    42868.74k    42833.24k
                

                23.09.1

                You have chosen to measure elapsed time instead of user CPU time.
                Doing AES-256-GCM for 3s on 16 size blocks: 15367274 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 64 size blocks: 7672483 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 256 size blocks: 2691809 AES-256-GCM's in 3.01s
                Doing AES-256-GCM for 3s on 1024 size blocks: 754613 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 8192 size blocks: 97312 AES-256-GCM's in 3.00s
                Doing AES-256-GCM for 3s on 16384 size blocks: 48977 AES-256-GCM's in 3.01s
                version: 3.0.12
                built on: reproducible build, date unspecified
                options: bn(64,64)
                compiler: clang
                CPUINFO: OPENSSL_ia32cap=0x43d8e3bfefebffff:0x2282
                The 'numbers' are in 1000s of bytes per second processed.
                type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes  16384 bytes
                AES-256-GCM      81958.79k   163679.64k   229104.41k   257574.57k   265726.63k   266784.97k
                

                This is with enabled AES-NI CPU Acceleration

                26b36ab0-5169-46ac-8607-502b6fb9403b-image.png

                1 Reply Last reply Reply Quote 1
                • S
                  sunny1081 @stephenw10
                  last edited by

                  @stephenw10

                  Issue is resovled for me on 23.09.1, thx to whom ever fixed it.

                  b5497476-ae77-49b4-8ff3-64695a51a018-image.png
                  a45ee1e0-48e5-4dea-9883-1028d2145888-image.png

                  You have chosen to measure elapsed time instead of user CPU time.
                  Doing AES-256-GCM for 3s on 16 size blocks: 126245097 AES-256-GCM's in 3.00s
                  Doing AES-256-GCM for 3s on 64 size blocks: 75396240 AES-256-GCM's in 3.00s
                  Doing AES-256-GCM for 3s on 256 size blocks: 41552001 AES-256-GCM's in 3.01s
                  Doing AES-256-GCM for 3s on 1024 size blocks: 15179553 AES-256-GCM's in 3.00s
                  Doing AES-256-GCM for 3s on 8192 size blocks: 2251028 AES-256-GCM's in 3.02s
                  Doing AES-256-GCM for 3s on 16384 size blocks: 1139204 AES-256-GCM's in 3.09s
                  version: 3.0.12
                  built on: reproducible build, date unspecified
                  options: bn(64,64)
                  compiler: clang
                  CPUINFO: OPENSSL_ia32cap=0xfffab2234f8bffff:0x18405f5ef1bf07ab
                  The 'numbers' are in 1000s of bytes per second processed.
                  type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes
                  AES-256-GCM 673307.18k 1608453.12k 3536560.96k 5181287.42k 6099157.46k 6033040.27k

                  Still not line speed, but back to the level it was on 23.05.01

                  Sergei_ShablovskyS 1 Reply Last reply Reply Quote 1
                  • Sergei_ShablovskyS
                    Sergei_Shablovsky @micneu
                    last edited by Sergei_Shablovsky

                    @micneu said in Massive performance drop after upgrade from 23.05 to 23.09:

                    I have now tested 23.09.1. the values are slightly better. But I would have thought it would be more (I have no comparison with the netgate 6100) I now have 60MByte/s in the download.

                    SCR-20231208-pbxs.png

                    Please, what the software You use for this testing (the picture looks like Speedtest from Fast.com”)?

                    —
                    CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                    Help Ukraine to resist, save civilians people’s lives !
                    (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                    1 Reply Last reply Reply Quote 0
                    • Sergei_ShablovskyS
                      Sergei_Shablovsky @sunny1081
                      last edited by

                      @sunny1081 said in Massive performance drop after upgrade from 23.05 to 23.09:

                      @stephenw10

                      Issue is resovled for me on 23.09.1, thx to whom ever fixed it.

                      b5497476-ae77-49b4-8ff3-64695a51a018-image.png
                      a45ee1e0-48e5-4dea-9883-1028d2145888-image.png

                      You have chosen to measure elapsed time instead of user CPU time.

                      Still not line speed, but back to the level it was on 23.05.01

                      Please, what exactly software You are using for this test? (on picture)

                      —
                      CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                      Help Ukraine to resist, save civilians people’s lives !
                      (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                      1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee
                        last edited by JonathanLee

                        Do you restrict the number of states allowed on some connections? I noticed once I said for example 1 state allowed at a time for GUI it start to speed up a lot. Some I added expire timers on like my VPNs etc.

                        ACL for the HA proxy system should only have how many states??? Maybe just one as it is linked to the other proxy.

                        Screenshot 2024-03-15 at 13.15.33.png

                        I don't know if that helps, but some cookies kept creating multiple states for some weird reason and slowing everything down. But that was just me this fixed it for me with KEA use also.

                        Make sure to upvote

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