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

Enhanced Intel SpeedStep / Speed Shift - Are they fully supported?

Hardware
8
74
10.8k
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.
  • Q
    q54e3w @RobbieTT
    last edited by q54e3w Nov 12, 2023, 7:22 PM Nov 12, 2023, 7:17 PM

    @RobbieTT Yup, it looks like it although how the operating system and pfSense has changed will also impact. Its not an apples to apples comparison exactly because its not on the same operating system and use of IPSec-MB etc. I also upgraded the BIOS at the same time given the box was out of service anyway.
    I'm currently trying '60' to see if it makes a noticeable difference to temps, power consumption or performance.

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Nov 12, 2023, 7:28 PM

      Speedshift reacts much faster so you will the CPU at higher frequencies more often. Quite how that translates into apparent loading though.... unclear!

      R 1 Reply Last reply Nov 12, 2023, 7:45 PM Reply Quote 0
      • R
        RobbieTT @stephenw10
        last edited by RobbieTT Nov 12, 2023, 7:50 PM Nov 12, 2023, 7:45 PM

        @stephenw10
        I think we may miss stuff with the reporting rate vs actual rate of change. With different frequencies on different cores the values we see may not be truly representative.

        With my previous 'adaptive' profile I didn't observe any turbo frequencies (does not mean it wasn't happening I guess) but with Speed Shift on 80 it sticks at 799 MHz under varying demand and then rapidly turbos when things get busy:

        [23.09-RELEASE][admin@Router-7.redacted.me]/root: powerd -v
        powerd: unable to determine AC line status
        CPU frequency is below user-defined minimum; changing frequency to 2700 MHz
        load   0%, current freq  799 MHz ( 0), wanted freq 4754 MHz
        load   4%, current freq  799 MHz ( 0), wanted freq 4605 MHz
        load  94%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 163%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 156%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 144%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 190%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 110%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 136%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 265%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 194%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 143%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 162%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 138%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 125%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 113%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 150%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 135%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  98%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 179%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 169%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 113%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 108%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 125%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 149%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 165%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 234%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 159%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 156%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  99%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  80%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 143%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 176%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 116%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 113%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 107%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 141%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 177%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 101%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 146%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 166%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 105%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  78%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 116%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 184%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 138%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 162%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 129%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 200%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 163%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load 175%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  31%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load   3%, current freq 3199 MHz ( 0), wanted freq 5231 MHz
        load   0%, current freq 3199 MHz ( 0), wanted freq 5067 MHz
        load   0%, current freq 3199 MHz ( 0), wanted freq 4908 MHz
        load  54%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  41%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  39%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  37%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  89%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  37%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  31%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  47%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  31%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  30%, current freq 3199 MHz ( 0), wanted freq 5400 MHz
        load  39%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  65%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  75%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  22%, current freq  799 MHz ( 0), wanted freq 5231 MHz
        load  25%, current freq  799 MHz ( 0), wanted freq 5231 MHz
        load  44%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 110%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 127%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 176%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 138%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  36%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  11%, current freq  799 MHz ( 0), wanted freq 5231 MHz
        load  81%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 185%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 210%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 197%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  38%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  44%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  19%, current freq  799 MHz ( 0), wanted freq 5231 MHz
        load  22%, current freq  799 MHz ( 0), wanted freq 5067 MHz
        load  21%, current freq  799 MHz ( 0), wanted freq 4908 MHz
        load  58%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 138%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  34%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  25%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  52%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load 119%, current freq  799 MHz ( 0), wanted freq 5400 MHz
        load  17%, current freq  799 MHz ( 0), wanted freq 5231 MHz
        

        I presume the above is just the fastest core though.

        ☕️

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Nov 13, 2023, 1:24 AM

          I agree. When I was first testing Speedshift I had a very hard time determining if my changes were actually doing anything. I came to the conclusion it's because simply running sysctl to read the cpu state causes it to bump the frequency. For example running sysctl dev.cpu.0.freq dev.cpu.1.freq dev.cpu.2.freq dev.cpu.3.freq gives the same result as running sysctl dev.cpu.3.freq dev.cpu.2.freq dev.cpu.1.freq dev.cpu.0.freq. I.e. whichever core you query first gives the lowest result and each subsequent core is running faster.

          R 1 Reply Last reply Nov 13, 2023, 8:24 AM Reply Quote 0
          • R
            RobbieTT @stephenw10
            last edited by RobbieTT Nov 13, 2023, 8:42 AM Nov 13, 2023, 8:24 AM

            @stephenw10 said in Enhanced Intel SpeedStep / Speed Shift - Are they fully supported?:

            I came to the conclusion it's because simply running sysctl to read the cpu state causes it to bump the frequency.

            Thankfully I don't see that, at least on this cpu:

            [23.09-RELEASE]/root: sysctl dev.cpu.0.freq dev.cpu.1.freq dev.cpu.2.freq dev.cpu.3.freq dev.cpu.4.freq dev.cpu.5.freq dev.cpu.6.freq dev.cpu.7.freq
            dev.cpu.0.freq: 799
            dev.cpu.1.freq: 799
            dev.cpu.2.freq: 799
            dev.cpu.3.freq: 799
            dev.cpu.4.freq: 799
            dev.cpu.5.freq: 799
            dev.cpu.6.freq: 799
            dev.cpu.7.freq: 799
            [23.09-RELEASE]/root: 
            

            Heisenberg defeated.

            Less luck with PPPoE handling though (920 Mbps download test):

            [23.09-RELEASE]/root: sysctl dev.cpu.0.freq dev.cpu.1.freq dev.cpu.2.freq dev.cpu.3.freq dev.cpu.4.freq dev.cpu.5.freq dev.cpu.6.freq dev.cpu.7.freq
            dev.cpu.0.freq: 3199
            dev.cpu.1.freq: 799
            dev.cpu.2.freq: 799
            dev.cpu.3.freq: 799
            dev.cpu.4.freq: 799
            dev.cpu.5.freq: 799
            dev.cpu.6.freq: 799
            dev.cpu.7.freq: 799
            [23.09-RELEASE]/root: 
            

            ☕️

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Nov 13, 2023, 12:26 PM

              Hmm, I guess as long as the load sysctl imposes doesn't push it over whatever the threshold is you wouldn't see that. You CPU is likely a lot more powerful than what I'm seeing that on.

              1 Reply Last reply Reply Quote 0
              • B
                bigjohns97
                last edited by Nov 13, 2023, 1:55 PM

                Per core working just fine here.

                🔒 Log in to view

                🔒 Log in to view

                1 Reply Last reply Reply Quote 0
                • B
                  bigjohns97
                  last edited by Nov 13, 2023, 2:06 PM

                  BTW here is a great article showing why this is so important.

                  https://pcper.com/2015/11/intel-speed-shift-tested-significant-user-experience-improvements/

                  For those who weren't utilizing powerd it's no big deal while those of us who were welcome this update with open arms.

                  In these examples you can see that it really only take a couple of milliseconds now to ramp clock speed.

                  Essentially meaning there is no reason to not run this on a modern CPU that supports it when concerned about the best possible performance. HUGE for those of us with power hungry x86 CPU's that are running 24/7.

                  R 1 Reply Last reply Nov 13, 2023, 3:08 PM Reply Quote 2
                  • R
                    RobbieTT @bigjohns97
                    last edited by RobbieTT Nov 13, 2023, 3:10 PM Nov 13, 2023, 3:08 PM

                    @bigjohns97

                    I appear to get higher (better) PPPoE throughput on my Xeon-D, which I didn't expect. I need to think a bit more as to why.

                    Anyway, just Intel Speed Select Technology to come... 🐥

                    ☕️

                    B 1 Reply Last reply Nov 13, 2023, 3:17 PM Reply Quote 0
                    • B
                      bigjohns97 @RobbieTT
                      last edited by bigjohns97 Nov 13, 2023, 3:20 PM Nov 13, 2023, 3:17 PM

                      @RobbieTT What is the model of your CPU?

                      Were you using PowerD before?

                      Also any virtualization involved?

                      R 1 Reply Last reply Nov 13, 2023, 3:21 PM Reply Quote 0
                      • R
                        RobbieTT @bigjohns97
                        last edited by Nov 13, 2023, 3:21 PM

                        @bigjohns97

                        It's an Intel Xeon D-1736NT and yes, I was using powerd previously.

                        ☕️

                        B 1 Reply Last reply Nov 13, 2023, 3:23 PM Reply Quote 0
                        • B
                          bigjohns97 @RobbieTT
                          last edited by Nov 13, 2023, 3:23 PM

                          @RobbieTT This is way better than PowerD, PowerD = SpeedStep

                          Check out my link above.

                          1 Reply Last reply Reply Quote 0
                          • Q
                            q54e3w
                            last edited by Nov 13, 2023, 7:47 PM

                            🔒 Log in to view

                            1 Reply Last reply Reply Quote 0
                            • T
                              tman222
                              last edited by Nov 19, 2023, 7:38 PM

                              After testing / monitoring for another week, I have concluded that a Speed Shift setting of "60" works provides a pretty good performance / efficiency trade off on the Intel Xeon D-1718T CPU in one of my systems. If I increase the value further to "80", I find that the low CPU frequencies become too sticky (i.e. it seems to take too long to ramp up), while not really resulting in incremental power savings. If I lower to "50" the CPU ramps up too quickly to top frequencies, resulting in a temperature increase. What's interesting - on another system with a Intel Core i3-10100 CPU, a setting of "60" appears not conservative enough and the CPU still ramps up very quickly to higher frequencies. Could there be some differences between how different Intel CPU architectures handle / implement Speed Shift?

                              I 1 Reply Last reply Dec 15, 2023, 7:47 PM Reply Quote 2
                              • I
                                InstanceExtension @tman222
                                last edited by Dec 15, 2023, 7:47 PM

                                @tman222

                                I just completed a number of WAN latency tests on my Xeon D-1718T system and had different results. I had to go down to a setting of 25 for Speed Shift to prevent the router from introducing latency on the WAN connection. 30 might have been ok, but 25 seemed to provide the best throughput and power results. A value of 60 increased the latency back to the same values I had when running on my Atom C3758 based router with PowerD set at Max values.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Dec 15, 2023, 8:13 PM

                                  How much latency was that?

                                  I 1 Reply Last reply Dec 15, 2023, 8:24 PM Reply Quote 0
                                  • I
                                    InstanceExtension @stephenw10
                                    last edited by Dec 15, 2023, 8:24 PM

                                    @stephenw10 Lowering the Speed Shift value from 60 to 30 dropped the loaded download latency by ~20ms on average based upon the Waveform Bufferbloat test: https://www.waveform.com/tools/bufferbloat

                                    This is with a Comcast 1.2Gb download speed (real value is 1.4Gb).

                                    R 1 Reply Last reply Dec 15, 2023, 8:57 PM Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Dec 15, 2023, 8:38 PM

                                      Hmm, significant then. 🤔

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        RobbieTT @InstanceExtension
                                        last edited by Dec 15, 2023, 8:57 PM

                                        @InstanceExtension

                                        I've not experienced anything like that, albeit I have more cores. I do have HyperThreading off though, so I wonder if that makes a difference?

                                        ☕️

                                        I 1 Reply Last reply Dec 15, 2023, 10:51 PM Reply Quote 0
                                        • I
                                          InstanceExtension @RobbieTT
                                          last edited by Dec 15, 2023, 10:51 PM

                                          @RobbieTT On the LAN side everything is 10Gb high powered devices, so maybe I'm just pushing the router a bit more.

                                          R 1 Reply Last reply Dec 16, 2023, 8:19 AM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.