Announcement

Collapse
No announcement yet.

Running The AMD "ABBA" Ryzen 3000 Boost Fix Under Linux With 140 Tests

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Thanks Michael just the type of testing I was looking at in terms of cpu frequency etc. Under Linux/CentOS/Ubuntu what is the best tool(s) to use to monitor cpu frequency (outside of PTS suite) for AMD Ryzen for idle and load right now ? I ask as I am about to do some comparative testing for Intel Xeon E-2276G vs AMD Ryzen 3600 vs AMD Ryzen 3800X and interested in tracking cpu frequency more accurately The Ryzens are using ASRockRack X470D4U with latest P3.20 bios

    example on CentOS 7 for

    E-2276G I get current, min max frequency of
    Code:
    cat /sys/devices/system/cpu/cpu0/cpufreq/{cpuinfo_cur_freq,cpuinfo_min_freq,cpuinfo_max_freq} | awk '{printf "%.2f\n", $1/1000}' | xargs
    802.49 800.00 4900.00
    Ryzen 3600
    Code:
    cat /sys/devices/system/cpu/cpu0/cpufreq/{cpuinfo_cur_freq,cpuinfo_min_freq,cpuinfo_max_freq} | awk '{printf "%.2f\n", $1/1000}' | xargs
    2200.00 2200.00 3600.00
    Ryzen 3800X
    Code:
    cat /sys/devices/system/cpu/cpu0/cpufreq/{cpuinfo_cur_freq,cpuinfo_min_freq,cpuinfo_max_freq} | awk '{printf "%.2f\n", $1/1000}' | xargs
    2200.00 2200.00 3900.00
    Ryzen 3800X
    Code:
    cpupower frequency-info
    analyzing CPU 0:
      driver: acpi-cpufreq
      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: 2.20 GHz - 3.90 GHz
      available frequency steps:  3.90 GHz, 2.80 GHz, 2.20 GHz
      available cpufreq governors: conservative userspace powersave ondemand performance
      current policy: frequency should be within 2.20 GHz and 3.90 GHz.
                      The governor "conservative" may decide which speed to use
                      within this range.
      current CPU frequency: 2.20 GHz (asserted by call to hardware)
      boost state support:
        Supported: yes
        Active: yes
        Boost States: 0
        Total States: 3
        Pstate-P0:  3900MHz
        Pstate-P1:  2800MHz
        Pstate-P2:  2200MHz
    Last edited by eva2000; 09-20-2019, 07:07 PM.

    Comment


    • #22
      Originally posted by eva2000 View Post
      Code:
      cpupower frequency-info
      current CPU frequency: 2.20 GHz (asserted by call to hardware)
      2.2, 2.8 or 3.9 isn't the actual frequency of the Ryzen CPU, it is just the current Pstate of the CPU (when cpupower runs with root priviledges).

      Comment


      • #23
        Originally posted by caligula View Post
        Well, for many this was the first time in years that they even considered AMD and immediately got burned. It was only like 50% cheaper and 200% more powerful. Pretty disappointing.
        Also somewhere around 30 and 60% less hot

        Comment


        • #24
          Originally posted by starshipeleven View Post
          Also somewhere around 30 and 60% less hot
          That too. The winter is coming. It's hard to beat the night king with all those low power CPUs.

          Comment


          • #25
            Originally posted by atomsymbol View Post

            2.2, 2.8 or 3.9 isn't the actual frequency of the Ryzen CPU, it is just the current Pstate of the CPU (when cpupower runs with root priviledges).
            cheers I see what you mean now

            Code:
            lscpu
            Architecture:          x86_64
            CPU op-mode(s):        32-bit, 64-bit
            Byte Order:            Little Endian
            CPU(s):                16
            On-line CPU(s) list:   0-15
            Thread(s) per core:    2
            Core(s) per socket:    8
            Socket(s):             1
            NUMA node(s):          1
            Vendor ID:             AuthenticAMD
            CPU family:            23
            Model:                 113
            Model name:            AMD Ryzen 7 3800X 8-Core Processor
            Stepping:              0
            CPU MHz:               3900.000
            CPU max MHz:           3900.0000
            CPU min MHz:           2200.0000
            BogoMIPS:              7785.63
            Virtualization:        AMD-V
            L1d cache:             32K
            L1i cache:             32K
            L2 cache:              512K
            L3 cache:              16384K
            NUMA node0 CPU(s):     0-15
            Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc art rep_good nopl xtopology nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_l2 cpb cat_l3 cdp_l3 hw_pstate sme retpoline_amd ssbd ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif umip overflow_recov succor smca
            
            cpupower monitor
                |Mperf               || Idle_Stats         
            CPU | C0   | Cx   | Freq || POLL | C1   | C2   
               0|  0.03| 99.97|  4041||  0.00| 99.97|  0.00
               8|  0.00|100.00|  4109||  0.00|100.00|  0.00
               1|  0.00|100.00|  3825||  0.00| 99.99|  0.00
               9|  0.03| 99.97|  4134||  0.00| 99.97|  0.00
               2|  0.00|100.00|  3575||  0.00| 99.99|  0.00
              10|  0.00|100.00|  4040||  0.00|100.00|  0.00
               3|  0.00|100.00|  3712||  0.00|100.00|  0.00
              11|  0.00|100.00|  3751||  0.00|100.00|  0.00
               4|  0.01| 99.99|  4239||  0.00| 99.99|  0.00
              12|  0.01| 99.99|  3823||  0.00| 99.99|  0.00
               5|  0.50| 99.50|  4229||  0.00| 99.50|  0.00
              13|  9.31| 90.69|  4332||  9.30| 90.69|  0.00
               6|  0.00|100.00|  3818||  0.00|100.00|  0.00
              14|  0.00|100.00|  3785||  0.00|100.00|  0.00
               7|  0.02| 99.98|  4301||  0.00| 99.98|  0.00
              15|  0.00|100.00|  3857||  0.00|100.00|  0.00

            Comment


            • #26
              Originally posted by eva2000 View Post
              Code:
              lscpu
              CPU MHz: 3900.000
              
              cpupower monitor
              |Mperf || Idle_Stats
              CPU | C0 | Cx | Freq || POLL | C1 | C2
              0| 0.03| 99.97| 4041|| 0.00| 99.97| 0.00
              It is strange that your lscpu is showing 3900.000 MHz while cpupower is showing the current frequency. lscpu on my machine (util-linux-2.33.2, Ryzen 3700X) is showing the current frequency (min, max, average or first across cores (I don't know whether it is min, max, avg or 1st)). It may be the coincidence that the actual current frequency on your machine happens to be 3900.000 MHz, but that is unlikely (the probability of it is about 0.00005%).

              Comment


              • #27
                Originally posted by atomsymbol View Post

                It is strange that your lscpu is showing 3900.000 MHz while cpupower is showing the current frequency. lscpu on my machine (util-linux-2.33.2, Ryzen 3700X) is showing the current frequency (min, max, average or first across cores (I don't know whether it is min, max, avg or 1st)). It may be the coincidence that the actual current frequency on your machine happens to be 3900.000 MHz, but that is unlikely (the probability of it is about 0.00005%).
                that output was with me setting governor = performance if that makes a difference, not sure what is the norm as first time using AMD Ryzen of any kind heh

                Comment


                • #28
                  Also how accurate is cpupower for Ryzen cpus, on centos 7.7 with default 3.10 kernel my Ryzen 3800X cpupower monitor is reporting even at idle spikes to 5+ Ghz when 3800X turbo boost is 4.5Ghz ? I gathered cpupower monitor cpu frequency on a per cpu thread basis and charted it over time for idle cpu checks to make sure things are clocked right and this is what I got for cpu thread = 2

                  min idle = 3537mhz
                  avg idle = 4135mhz
                  max idle = 5022mhz

                  with performance governor set



                  edit: seems gathering turbostat turbo frequency stats instead of cpupower monitor is more inline with cpu frequency rated for Ryzen 3800X.
                  Last edited by eva2000; 09-21-2019, 07:42 PM.

                  Comment


                  • #29
                    Michael, you wouldn't happen to have CPU temperature data for these runs as well?

                    Background: I've just built a system with a 3900X and a VII on an Asus Pro WS X570-ACE and I'd like to be sure that everything's working at peak efficiency, and especially that the cooler (Noctua NH-D15) is mounted / the thermal paste has spread properly. Your benchmark marathon gives me performance and clock data that should be somewhat comparable, unfortunately I've nothing resembling reliable reference temperatures.

                    Also, is there a quick way to replicate any or all of your published tests on a local install, settings & everything?

                    Comment

                    Working...
                    X