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

    Performance regression 2.7.2 to 2.8

    Scheduled Pinned Locked Moved General pfSense Questions
    57 Posts 5 Posters 5.8k 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.
    • firstofnineF
      firstofnine @stephenw10
      last edited by

      I was having this issue as well and can confirm the diff has solved my 6rd issues in 2.8.0

      If you'd like I have a pcap from when I was having issues I can provide.

      1 Reply Last reply Reply Quote 1
      • fatheadF
        fathead @stephenw10
        last edited by

        @stephenw10 Unable to reproduce with v4 and the link local, fe80::1:1 is always reachable.
        It also affects Virtual IPs.
        Is it expected behavior that the cpu usage is high with an VIPs 10.0.0.1/32 is on wan?
        10.0.0.1/32 has been reassigned to lan and cpu can idle.
        For supplementary information if a ping6 64:ff9b::a00:3 is started it will fail, restarting pfSense while the ping6 remains undisturbed; when pfSense boots up ping6 is successful for about 10 minutes.
        Restarted pfSense 3 times testing VIPs, ping6 64:ff9b::7f00:1 can work if it is just one ping, if two or more lan IPs ping6 at the same time it does not work; this all may or may not be correct behavior if pfSense is seeing all pings from the same ip.

        ping6: Warning: time of day goes back (-16520us), taking countermeasures
        64 bytes from 64:ff9b::7f00:1: icmp_seq=269 ttl=64 time=0.000 ms (DUP!)
        ping6: Warning: time of day goes back (-16536us), taking countermeasures
        64 bytes from 64:ff9b::7f00:1: icmp_seq=270 ttl=64 time=0.000 ms (DUP!)
        ping6: Warning: time of day goes back (-16529us), taking countermeasures
        64 bytes from 64:ff9b::7f00:1: icmp_seq=271 ttl=64 time=0.000 ms (DUP!)
        64 bytes from 64:ff9b::7f00:1: icmp_seq=770 ttl=64 time=0.207 ms
        ping6: Warning: time of day goes back (-16541us), taking countermeasures
        64 bytes from 64:ff9b::7f00:1: icmp_seq=272 ttl=64 time=0.000 ms (DUP!)
        ping6: Warning: time of day goes back (-16471us), taking countermeasures
        64 bytes from 64:ff9b::7f00:1: icmp_seq=273 ttl=64 time=0.000 ms (DUP!)
        ping6: Warning: time of day goes back (-16543us), taking countermeasures
        64 bytes from 64:ff9b::7f00:1: icmp_seq=274 ttl=64 time=0.000 ms (DUP!)
        ping6: Warning: time of day goes back (-16523us), taking countermeasures
        
        stephenw10S 1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator @fathead
          last edited by

          @fathead said in Performance regression 2.7.2 to 2.8:

          Is it expected behavior that the cpu usage is high with an VIPs 10.0.0.1/32 is on wan?

          No, not just that. It might if it's having to deal with a lot of traffic to that VIP that otherwise gets blocked.

          Can I assume that applying that patch has not changed this new problem? Just that it too is new in 2.8?

          fatheadF 1 Reply Last reply Reply Quote 0
          • fatheadF
            fathead @stephenw10
            last edited by

            @stephenw10
            With or without patch mr1226.diff
            No traffic on any VIPs and cpu is high.
            kea-dhcp6 php-fpm.
            kea-dhcp6 is using almost about 3% when 10.0.0.1/32 IP Alias is set on the wan, set it to lan kea-dhcp6 uses 0.00%

            1 Reply Last reply Reply Quote 0
            • fatheadF
              fathead
              last edited by

              Block private networks and loopback addresses
              Is enabled on wan, turning that off is all the same high cpu.

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

                Oh this is on the PPPoE WAN?

                That's a known issue: https://redmine.pfsense.org/issues/16235

                Try the patch refferenced there.

                fatheadF 1 Reply Last reply Reply Quote 0
                • fatheadF
                  fathead @stephenw10
                  last edited by fathead

                  @stephenw10 Yes the PPPoE WAN.
                  Is this the patch?
                  This patch does fix high cpu, however when a VIP is set on wan, it breaks the whole nat 64:ff9b::/96 address space, or is a reload/restart needed?

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

                    Yup without that when you add a VIP on a PPPoE WAN and have if_pppoe enabled then the connection loops continually. The logs will have shown it reconnecting every few seconds which obviously load the CPU significantly.

                    So how exactly does NAT64 fail?

                    What are you using that VIP for?

                    fatheadF 1 Reply Last reply Reply Quote 0
                    • fatheadF
                      fathead @stephenw10
                      last edited by

                      @stephenw10

                      So how exactly does NAT64 fail?

                      Native v6 traffic is normal.
                      Outside NAT64 so far is not working with a VIP set on wan.
                      The VIPs them selves are reachable example 64:ff9b::10.0.0.3

                      WAN	ipv6-icmp	10.0.0.4:1 (fdbb::8[1]) -> 77.47.127.138:8 (64:ff9b::100:1[1])	NO_TRAFFIC:NO_TRAFFIC	2 / 2	160 B / 120 B
                      

                      What are you using that VIP for?

                      v4 VIPs for ping, v6 VIPs for DNS.

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

                        @fathead said in Performance regression 2.7.2 to 2.8:

                        Outside NAT64 so far is not working with a VIP set on wan.

                        OK so you are setting that VIP just as something to ping from a V6 only client device?

                        Can I assume it still responds to ping from an internal IPv4 client?

                        fatheadF 1 Reply Last reply Reply Quote 0
                        • fatheadF
                          fathead @stephenw10
                          last edited by

                          @stephenw10

                          OK so you are setting that VIP just as something to ping from a V6 only client device?

                          Can I assume it still responds to ping from an internal IPv4 client?

                          Yes and yes.

                          1 Reply Last reply Reply Quote 0
                          • fatheadF
                            fathead
                            last edited by

                            Furthermore 64:ff9b::c0a8:100/120 is passed on the lan, at some point in the past two days this stopped working.

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

                              Oh so dhcpv6 stopped working you mean by passed?

                              fatheadF 1 Reply Last reply Reply Quote 0
                              • fatheadF
                                fathead @stephenw10
                                last edited by

                                @stephenw10
                                Firewall rule set to pass LAN subnets to 64:ff9b::c0a8:100/120
                                64:ff9b::c0a8:101(pfSense it self) was the only address replying.

                                tcpdump on pfSense show the wrong ip(the VIP) and not the interface IP(192.168.1.1).
                                Removing all v4 VIPs from lan restores reachabilit. v4 VIPs on localhost are different some how.
                                Before:

                                16:52:35.520044 IP 10.0.0.1 > 192.168.1.100: ICMP echo request, id 179, seq 1, length 64
                                

                                After v4 VIPs removed:

                                17:08:30.209222 IP 192.168.1.1 > 192.168.1.100: ICMP echo request, id 182, seq 10740, length 64
                                17:08:30.209351 IP 192.168.1.100 > 192.168.1.1: ICMP echo reply, id 182, seq 10740, length 64
                                

                                The 64:ff9b::c0a8:100/120 rule is above the 64:ff9b::/96 rule.
                                NAT64 and v4 VIPs alias on wan and/or lan are not playing nicely.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  marcosm Netgate
                                  last edited by marcosm

                                  The issue is that the "Automatic" NAT64 source option in the rule leaves things up to the OS itself. Hence the source tends to be the first address on the interface (e.g. 10.0.0.1). To address that issue a GUI option exists to override the source. For example:
                                  5bb6039e-5ddf-4b3d-85a7-4fde4e0b4b14-image.png

                                  fatheadF 1 Reply Last reply Reply Quote 0
                                  • fatheadF
                                    fathead @marcosm
                                    last edited by

                                    @marcosm The source has always been set to "LAN subnets".

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

                                      It's the 'Address Family Translation' source that must be set to 'LAN address' rather than the default 'Automatic' where it's choosing the VIP.

                                      fatheadF 1 Reply Last reply Reply Quote 0
                                      • fatheadF
                                        fathead @stephenw10
                                        last edited by

                                        @stephenw10
                                        'Address Family Translation' is also set to 'LAN address'.

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

                                          Hmm, then maybe it's not matching the test traffic somehow?

                                          fatheadF 1 Reply Last reply Reply Quote 0
                                          • fatheadF
                                            fathead @stephenw10
                                            last edited by

                                            @stephenw10

                                            Hmm, then maybe it's not matching the test traffic somehow?

                                            How to see what it is matching with?

                                            For testing, made a do nothing OPT1, setting v4 VIPs on loopback and OPT1 does not seem break lan to lan or lan to wan.

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