Discover Centmin Mod today
Register Now

OVH How to properly Set and Permanently use CPU "Max Turbo Frequency"?

Discussion in 'Dedicated server hosting' started by rdan, Mar 28, 2022.

  1. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    9:05 AM
    Mainline
    10.2
    I do have this CPU from OVH server
    Product Specifications

    But it seems just using "Processor Base Frequency".
    Even after running this:
    Code:
    # cpupower frequency-info
    analyzing CPU 0:
      driver: intel_pstate
      CPUs which run at the same hardware frequency: 0
      CPUs which need to have their frequency coordinated by software: 0
      maximum transition latency:  Cannot determine or is not supported.
      hardware limits: 800 MHz - 3.40 GHz
      available cpufreq governors: performance powersave
      current policy: frequency should be within 800 MHz and 3.40 GHz.
                      The governor "performance" may decide which speed to use
                      within this range.
      current CPU frequency: 3.40 GHz (asserted by call to hardware)
      boost state support:
        Supported: no
        Active: no
    
    Code:
    # lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                12
    On-line CPU(s) list:   0-11
    Thread(s) per core:    2
    Core(s) per socket:    6
    Socket(s):             1
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 158
    Model name:            Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz
    Stepping:              10
    CPU MHz:               3400.000
    CPU max MHz:           3400.0000
    CPU min MHz:           800.0000
    BogoMIPS:              6816.00
    Virtualization:        VT-x
    L1d cache:             32K
    L1i cache:             32K
    L2 cache:              256K
    L3 cache:              12288K
    NUMA node0 CPU(s):     0-11
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb invpcid_single intel_pt ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear spec_ctrl intel_stibp flush_l1d
    


     
    Last edited: Mar 28, 2022
  2. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x
    tuned-adm might not be accurate or 100% working depending on CPU and linux kernel used from my previously quoted statement regarding using tuned-adm

    best to measure and test to with it set and not set and lscpu won't report the current used frequency as accurately.

    i.e. I wrote a script to measure, log and chart each individual cpu's frequency including min, average and max CPU frequency during benchmarks/load testing etc.

    Intel Xeon E-2288G

    [​IMG]

    Intel Xeon E-2276G

    [​IMG]
     
  3. deltahf

    deltahf Premium Member Premium Member

    534
    237
    43
    Jun 8, 2014
    Ratings:
    +431
    Local Time:
    9:05 PM
    Is there a reason you're using "latency-performance"?

    I used "throughput-performance" on my Intel E-2276G (documented here). I think the difference between the two is fairly minimal (specifics are discussed here, but they are a bit over my head). Do you see any changes between speeds when you play around with the other performance profiles, as a sort of sanity check?
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x
    When tuned-adm does work, I prefer latency-performance over throughput-performance. But you have to really test to see if it works with your CPU and Linux kernel.
     
  5. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    9:05 AM
    Mainline
    10.2
  6. buik

    buik “The best traveler is one without a camera.”

    1,733
    473
    83
    Apr 29, 2016
    Flanders
    Ratings:
    +1,483
    Local Time:
    3:05 AM
    With the high energy prices due to Covid and the war in Ukraine logical for i.e. a home samba server that you tuned (powertop2tuned) from 4w consumption to 1.9w but a rental server including power. What is the purpose?

    I have never gotten a system substantially faster with tuned.
    More economical or efficient though.
     
  7. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    9:05 AM
    Mainline
    10.2
    More faster website, much faster mysql backup process, much faster TTFB for cached or non cached request.
     
  8. buik

    buik “The best traveler is one without a camera.”

    1,733
    473
    83
    Apr 29, 2016
    Flanders
    Ratings:
    +1,483
    Local Time:
    3:05 AM
    Use AMD EPYC “Milan” based servers.
    Intel based servers are using the same crappy technology since 2014.
    You're not going to get a whole lot more out of that software-wise.
     
  9. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    9:05 AM
    Mainline
    10.2
    OVH Singapore has limited offerings.
    This is the best server I can have with my budget.
     
  10. buik

    buik “The best traveler is one without a camera.”

    1,733
    473
    83
    Apr 29, 2016
    Flanders
    Ratings:
    +1,483
    Local Time:
    3:05 AM
    Much faster huh, Are there practice situation with similar, much faster and better results? With facts and all. I have and I'm honest with you, never encountered a server that has much better performance with tuned.
     
  11. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    9:05 AM
    Mainline
    10.2
    Or maybe I just remove tuned and just use:
     
  12. buik

    buik “The best traveler is one without a camera.”

    1,733
    473
    83
    Apr 29, 2016
    Flanders
    Ratings:
    +1,483
    Local Time:
    3:05 AM
    As written by @eva2000 always stress test CPU settings, so that you do not unexpectedly get vague problems later.
     
  13. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x
    That is more reliable from my experience but still you'd want to test and monitor your CPU frequencies at idle and load to see if they're working as expected as it can be dependent on CPU model and Linux Kernel used too.
     
  14. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x
    Can be faster depending on web application/software but using tuned-adm (not cpupower set frequency) can also make it slower too if you get unexpected results for set CPU frequency for some CPU models/Linux Kernels. The problem is even CentOS 7/8 3.10/4.18 Linux Kernels are starting to be old enough still to not be able to be fully compatible and take advantage of newer CPU models' CPU frequency/power management fully/correctly.
     
  15. rdan

    rdan Premium Member Premium Member

    5,330
    1,338
    113
    May 25, 2014
    Ratings:
    +2,068
    Local Time:
    9:05 AM
    Mainline
    10.2
    The problem with:
    As I tested today, doesn't work with most VPS.
    But working fine with Dedicated Servers.
     
  16. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x
    Yes dedicated servers only as you can't really control CPU frequency with virtualization/VPSes.
     
  17. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x
    Relevant I guess Linux 5.18 Power Management Brings Improvements For Both Intel & AMD - Phoronix
     
  18. deltahf

    deltahf Premium Member Premium Member

    534
    237
    43
    Jun 8, 2014
    Ratings:
    +431
    Local Time:
    9:05 PM
    Tuning my old server's AMD EPYC 7001 series CPU reduced TTFB by ~26% on XenForo pages and ~43% on WordPress pages. Details here.
     
  19. buik

    buik “The best traveler is one without a camera.”

    1,733
    473
    83
    Apr 29, 2016
    Flanders
    Ratings:
    +1,483
    Local Time:
    3:05 AM
    cpupower is something entirely different than tuned.
    That's like installing a turbo in an engine.
    I meant the aplication tuned not tuning a processor.
     
  20. eva2000

    eva2000 Administrator Staff Member

    49,299
    11,296
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,575
    Local Time:
    11:05 AM
    Nginx 1.21.x
    MariaDB 10.x