[Plugin] CoreFreq


Recommended Posts

10 minutes ago, KaitsuN6 said:

What if all these flaws are because Qnap got hold on a batch of cheap B-Stock celerons, and I got you chasing ghosts with these anomalies?

Don't worry; I have to refactor this code anyway.

But it will be long to implement IMC through a series of UNRAID plugin packages.

I have to experiment registers and for this I need to work directly on hardware.

 

@ich777 Hello,

At your disposal, I have committed in `develop` branch a tiny change to the Goldmont Power formula.

May you please prepare a plugin for a @KaitsuN6 test.

  • Like 2
Link to comment

@KaitsuN6Power now appears more "realistic"

 

Using my Conic stress functions which are pushing on FPU, you should read the max wattage.

 

To stop my stress tools, press a few times the F10 key

 

Edit: as a bonus, you are getting the DRAM watt

Edited by CyrIng
Link to comment
  • 2 weeks later...

Trying to get the CPU-FREQ driver and CPU-IDLE driver to enable for my Ryzen 5 3600 to get C6 states working with corefreq-cli but when I try I get "File exists" and "Device or resource busy" respectively. CPPC shows as blue in the tech section. I have PM L1 SS = L1.1, Global C-state Control = Enabled, CPPC CTRL = Enabled and amd_pstate=passive in my Syslinux (no other options).

 

My lsmod is 

Module                  Size  Used by
ipvlan                 36864  0
veth                   32768  0
xt_CHECKSUM            16384  1
ipt_REJECT             16384  2
nf_reject_ipv4         16384  1 ipt_REJECT
ip6table_mangle        16384  1
ip6table_nat           16384  1
iptable_mangle         16384  1
vhost_net              28672  1
tun                    53248  3 vhost_net
vhost                  40960  1 vhost_net
vhost_iotlb            16384  1 vhost
tap                    24576  1 vhost_net
xt_nat                 16384  14
xt_tcpudp              16384  43
xt_conntrack           16384  5
nf_conntrack_netlink    49152  0
nfnetlink              16384  2 nf_conntrack_netlink
xfrm_user              45056  1
xt_addrtype            16384  2
br_netfilter           32768  0
corefreqk             421888  2
xfs                  1671168  11
nvidia_uvm           1523712  2
dm_crypt               45056  13
dm_mod                131072  27 dm_crypt
md_mod                 53248  11
zfs                  3530752  7
zunicode              327680  1 zfs
zzstd                 552960  1 zfs
zlua                  151552  1 zfs
zavl                   16384  1 zfs
icp                   286720  1 zfs
zcommon                98304  2 zfs,icp
znvpair                94208  2 zfs,zcommon
spl                   102400  6 zfs,icp,zzstd,znvpair,zcommon,zavl
tcp_diag               16384  0
inet_diag              20480  1 tcp_diag
nct6775                24576  0
nct6775_core           65536  1 nct6775
hwmon_vid              16384  1 nct6775
iptable_nat            16384  2
xt_MASQUERADE          16384  18
nf_nat                 49152  4 ip6table_nat,xt_nat,iptable_nat,xt_MASQUERADE
nf_conntrack          143360  5 xt_conntrack,nf_nat,xt_nat,nf_conntrack_netlink,xt_MASQUERADE
nf_defrag_ipv6         16384  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
wireguard              73728  0
curve25519_x86_64      32768  1 wireguard
libcurve25519_generic    49152  2 curve25519_x86_64,wireguard
libchacha20poly1305    16384  1 wireguard
chacha_x86_64          28672  1 libchacha20poly1305
poly1305_x86_64        28672  1 libchacha20poly1305
ip6_udp_tunnel         16384  1 wireguard
udp_tunnel             20480  1 wireguard
libchacha              16384  1 chacha_x86_64
ip6table_filter        16384  1
ip6_tables             28672  3 ip6table_filter,ip6table_nat,ip6table_mangle
iptable_filter         16384  1
ip_tables              28672  3 iptable_filter,iptable_nat,iptable_mangle
x_tables               45056  15 ip6table_filter,xt_conntrack,iptable_filter,ip6table_nat,xt_tcpudp,xt_addrtype,xt_CHECKSUM,xt_nat,ip6_tables,ipt_REJECT,ip_tables,iptable_nat,ip6table_mangle,xt_MASQUERADE,iptable_mangle
af_packet              49152  4
bridge                262144  1 br_netfilter
8021q                  32768  0
garp                   16384  1 8021q
mrp                    16384  1 8021q
stp                    16384  2 bridge,garp
llc                    16384  3 bridge,stp,garp
bonding               151552  0
tls                   122880  6 bonding
ixgbe                 286720  0
xfrm_algo              16384  2 xfrm_user,ixgbe
mdio                   16384  1 ixgbe
nvidia_drm             65536  1
nvidia_modeset       1306624  1 nvidia_drm
amd64_edac             32768  0
edac_mce_amd           36864  1 amd64_edac
edac_core              65536  2 amd64_edac
intel_rapl_msr         16384  0
intel_rapl_common      24576  1 intel_rapl_msr
iosf_mbi               20480  1 intel_rapl_common
kvm_amd               135168  2
nvidia              56676352  164 nvidia_uvm,nvidia_modeset
kvm                   983040  1 kvm_amd
ast                    57344  0
video                  61440  1 nvidia_modeset
drm_vram_helper        20480  1 ast
i2c_algo_bit           16384  1 ast
drm_ttm_helper         16384  2 drm_vram_helper,ast
ttm                    77824  2 drm_vram_helper,drm_ttm_helper
drm_kms_helper        167936  5 drm_vram_helper,ast,nvidia_drm
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
drm                   495616  9 drm_kms_helper,drm_vram_helper,ast,nvidia,drm_ttm_helper,nvidia_drm,ttm
crc32c_intel           24576  2
ghash_clmulni_intel    16384  0
sha512_ssse3           45056  0
sha256_ssse3           32768  0
sha1_ssse3             28672  0
ipmi_ssif              32768  0
aesni_intel           393216  26
agpgart                40960  1 ttm
wmi_bmof               16384  0
crypto_simd            16384  1 aesni_intel
mpt3sas               282624  13
cryptd                 24576  15 crypto_simd,ghash_clmulni_intel
backlight              20480  3 video,drm,nvidia_modeset
ahci                   45056  0
i2c_piix4              24576  0
syscopyarea            16384  1 drm_kms_helper
cdc_ether              20480  0
nvme                   49152  2
input_leds             16384  0
sr_mod                 28672  0
sysfillrect            16384  1 drm_kms_helper
raid_class             16384  1 mpt3sas
usbnet                 36864  1 cdc_ether
rapl                   16384  0
acpi_ipmi              16384  0
sysimgblt              16384  1 drm_kms_helper
i2c_core               86016  7 drm_kms_helper,i2c_algo_bit,ast,nvidia,i2c_piix4,ipmi_ssif,drm
k10temp                16384  0
nvme_core             118784  3 nvme
ccp                    32768  1 kvm_amd
scsi_transport_sas     40960  1 mpt3sas
joydev                 24576  0
cdrom                  40960  1 sr_mod
led_class              16384  1 input_leds
fb_sys_fops            16384  1 drm_kms_helper
libahci                45056  1 ahci
mii                    16384  1 usbnet
wmi                    28672  2 video,wmi_bmof
ipmi_si                57344  1
button                 20480  0
unix                   49152  647

 

and my current CoreFreq is 

Processor                                    [AMD Ryzen 5 3600 6-Core Processor]
|- Architecture                                                   [Zen2/Matisse]
|- Vendor ID                                                      [AuthenticAMD]
|- Firmware                                                         [ 46.67.0-2]
|- Microcode                                                        [0x08701021]
|- Signature                                                           [  8F_71]
|- Stepping                                                            [      0]
|- Online CPU                                                          [ 12/ 12]
|- Base Clock                                                          [ 99.998]
|- Frequency            (MHz)                      Ratio                        
                 Min   2199.97                    <  22 >                       
                 Max   3599.94                    <  36 >                       
|- Factory                                                             [100.000]
                       3600                       [  36 ]                       
|- Performance                                                                  
   |- P-State                                                                   
                 TGT   3599.94                    <  36 >                       
   |- CPPC                                                                      
                 Min    499.99                    <   5 >                       
                 Max   4199.93                    <  42 >                       
                 TGT    699.99                    <   7 >                       
|- Turbo Boost                                                         [ UNLOCK]
                 XFR   4199.93                    [  42 ]                       
                 CPB   4199.93                    [  42 ]                       
                  1C   2799.96                    <  28 >                       
                  2C   2199.97                    <  22 >                       
|- Uncore                                                              [   LOCK]
                 CLK   1299.98                    [  13 ]                       
                 MEM   3999.94                    [  40 ]                       
                                                                                
Instruction Set Extensions                                                      
|- 3DNow!/Ext [N/N]          ADX [Y]          AES [Y]  AVX/AVX2 [Y/Y] 
|- AVX512-F     [N]    AVX512-DQ [N]  AVX512-IFMA [N]   AVX512-PF [N] 
|- AVX512-ER    [N]    AVX512-CD [N]    AVX512-BW [N]   AVX512-VL [N] 
|- AVX512-VBMI  [N] AVX512-VBMI2 [N]  AVX512-VNNI [N]  AVX512-ALG [N] 
|- AVX512-VPOP  [N] AVX512-VNNIW [N] AVX512-FMAPS [N] AVX512-VP2I [N] 
|- AVX512-BF16  [N] AVX-VNNI-VEX [N]    AVX-FP128 [N]   AVX-FP256 [Y] 
|- BMI1/BMI2  [Y/Y]         CLWB [Y]      CLFLUSH [Y] CLFLUSH-OPT [Y] 
|- CLAC-STAC    [Y]         CMOV [Y]    CMPXCHG8B [Y]  CMPXCHG16B [Y] 
|- F16C         [Y]          FPU [Y]         FXSR [Y]   LAHF-SAHF [Y] 
|- MMX/Ext    [Y/Y] MON/MWAITX [Y/Y]        MOVBE [Y]   PCLMULQDQ [Y] 
|- POPCNT       [Y]       RDRAND [Y]       RDSEED [Y]      RDTSCP [Y] 
|- SEP          [Y]          SHA [Y]          SSE [Y]        SSE2 [Y] 
|- SSE3         [Y]        SSSE3 [Y]  SSE4.1/4A [Y/Y]      SSE4.2 [Y] 
|- SERIALIZE    [N]      SYSCALL [Y]        RDPID [Y]        UMIP [Y] 
|- VAES         [N]   VPCLMULQDQ [N]   PREFETCH/W [Y]       LZCNT [Y] 
                                                                                
Features                                                                        
|- 1 GB Pages Support                                      1GB-PAGES   [Capable]
|- 100 MHz multiplier Control                            100MHzSteps   [Missing]
|- Advanced Configuration & Power Interface                     ACPI   [Capable]
|- Advanced Programmable Interrupt Controller                   APIC   [Capable]
|- Advanced Virtual Interrupt Controller                        AVIC   [Capable]
|- APIC Timer Invariance                                        ARAT   [Capable]
|- LOCK prefix to read CR8                                    AltMov   [Capable]
|- Clear Zero Instruction                                     CLZERO   [Capable]
|- Core Multi-Processing                                  CMP Legacy   [Capable]
|- L1 Data Cache Context ID                                  CNXT-ID   [Missing]
|- Collaborative Processor Performance Control                  CPPC   [Capable]
|- Direct Cache Access                                           DCA   [Missing]
|- Debugging Extension                                            DE   [Capable]
|- Debug Store & Precise Event Based Sampling               DS, PEBS   [Missing]
|- CPL Qualified Debug Store                                  DS-CPL   [Missing]
|- 64-Bit Debug Store                                         DTES64   [Missing]
|- Fast Short REP MOVSB                                         FSRM   [Missing]
|- Fast-String Operation                                        ERMS   [Missing]
|- Fused Multiply Add                                           FMA4   [Missing]
|- Fused Multiply Add                                            FMA   [Capable]
|- Hardware Lock Elision                                         HLE   [Missing]
|- Hyper-Threading Technology                                    HTT   [Capable]
|- Hardware P-state control                                      HwP   [Capable]
|- Instruction Based Sampling                                    IBS   [Capable]
|- Instruction INVLPGB                                       INVLPGB   [Missing]
|- Instruction INVPCID                                       INVPCID   [Missing]
|- Long Mode 64 bits                                       IA64 | LM   [Capable]
|- LightWeight Profiling                                         LWP   [Missing]
|- Memory Bandwidth Enforcement                                  MBE   [Capable]
|- Machine-Check Architecture                                    MCA   [Capable]
|- Instruction MCOMMIT                                       MCOMMIT   [Missing]
|- Model Specific Registers                                      MSR   [Capable]
|- Memory Type Range Registers                                  MTRR   [Capable]
|- No-Execute Page Protection                                     NX   [Capable]
|- OS-Enabled Ext. State Management                          OSXSAVE   [Capable]
|- OS Visible Work-around                                       OSVW   [Capable]
|- Physical Address Extension                                    PAE   [Capable]
|- Page Attribute Table                                          PAT   [Capable]
|- Pending Break Enable                                          PBE   [Missing]
|- Process Context Identifiers                                  PCID   [Missing]
|- Perfmon and Debug Capability                                 PDCM   [Missing]
|- Page Global Enable                                            PGE   [Capable]
|- Page Size Extension                                           PSE   [Capable]
|- 36-bit Page Size Extension                                  PSE36   [Capable]
|- Processor Serial Number                                       PSN   [Missing]
|- Resource Director Technology/PQE                            RDT-A   [Capable]
|- Resource Director Technology/PQM                            RDT-M   [Capable]
|- Read Processor Register at User level                       RDPRU   [Capable]
|- Restricted Transactional Memory                               RTM   [Missing]
|- Safer Mode Extensions                                         SMX   [Missing]
|- Self-Snoop                                                     SS   [Missing]
|- Supervisor-Mode Access Prevention                            SMAP   [Capable]
|- Supervisor-Mode Execution Prevention                         SMEP   [Capable]
|- Trailing Bit Manipulation                                     TBM   [Missing]
|- Translation Cache Extension                                   TCE   [Capable]
|- Time Stamp Counter                                            TSC [Invariant]
|- Time Stamp Counter Deadline                          TSC-DEADLINE   [Missing]
|- TSX Force Abort MSR Register                            TSX-ABORT   [Missing]
|- TSX Suspend Load Address Tracking                       TSX-LDTRK   [Missing]
|- User-Mode Instruction Prevention                             UMIP   [Capable]
|- Virtual Mode Extension                                        VME   [Capable]
|- Virtual Machine Extensions                                    VMX   [Missing]
|- Write Back & Do Not Invalidate Cache                     WBNOINVD   [Capable]
|- Extended xAPIC Support                                     x2APIC   [  xAPIC]
|- AVIC controller for x2APIC                                 x2AVIC   [Missing]
|- XSAVE/XSTOR States                                          XSAVE   [Capable]
|- xTPR Update Control                                          xTPR   [Missing]
|- Extended Operation Support                                    XOP   [Missing]
Mitigation mechanisms                                                           
|- Indirect Branch Restricted Speculation                       IBRS   [ Unable]
   |- IBRS Always-On preferred by processor                            [ Unable]
   |- IBRS preferred over software solution                            [Capable]
   |- IBRS provides same speculation limits                            [Capable]
|- Indirect Branch Prediction Barrier                           IBPB   [Capable]
|- Single Thread Indirect Branch Predictor                     STIBP   [ Enable]
|- Speculative Store Bypass Disable                             SSBD   [Capable]
   |- SSBD use VIRT_SPEC_CTRL register                                 [ Unable]
   |- SSBD not needed on this processor                                [ Unable]
|- No Branch Type Confusion                                   BTC_NO   [ Unable]
|- BTC on Non-Branch instruction                            BTC-NOBR   [ Enable]
|- Limited Early Redirect Window                            AGENPICK   [Disable]
|- Arch - No Fast Predictive Store Forwarding                   PSFD   [ Unable]
|- Arch - Enhanced Predictive Store Forwarding                  EPSF   [Missing]
|- Arch - Cross Processor Information Leak                XPROC_LEAK   [ Enable]
Security Features                                                               
|- CET Shadow Stack features                                  CET-SS   [Missing]
|- Secure Init and Jump with Attestation                      SKINIT   [Capable]
|- Secure Encrypted Virtualization                               SEV   [Capable]
|- SEV - Encrypted State                                      SEV-ES   [Capable]
|- SEV - Secure Nested Paging                                SEV-SNP   [Missing]
|- Guest Mode Execute Trap                                      GMET   [Capable]
|- Supervisor Shadow Stack                                       SSS   [Missing]
|- VM Permission Levels                                         VMPL   [Missing]
|- VMPL Supervisor Shadow Stack                             VMPL-SSS   [Missing]
|- Secure Memory Encryption                                      SME   [Capable]
|- Transparent SME                                              TSME   [Disable]
|- Secure Multi-Key Memory Encryption                         SME-MK   [Missing]
|- DRAM Data Scrambling                                    Scrambler   [ Enable]
                                                                                
Technologies                                                                    
|- Instruction Cache Unit                                                       
   |- L1 IP Prefetcher                                          L1 HW IP   < ON>
|- Data Cache Unit                                                              
   |- L1 Prefetcher                                                L1 HW   < ON>
|- Cache Prefetchers                                                            
   |- L2 Prefetcher                                                L2 HW   < ON>
   |- L1 Stride Prefetcher                                     L1 Stride   <OFF>
   |- L1 Region Prefetcher                                     L1 Region   <OFF>
   |- L1 Burst Prefetch Mode                                    L1 Burst   <OFF>
   |- L2 Stream HW Prefetcher                                  L2 Stream   <OFF>
   |- L2 Up/Down Prefetcher                                   L2 Up/Down   <OFF>
|- System Management Mode                                       SMM-Lock   [ ON]
|- Simultaneous Multithreading                                       SMT   [ ON]
|- PowerNow!                                                         CnQ   [ ON]
|- Core C-States                                                     CCx   [ ON]
|- Core Performance Boost                                            CPB   < ON>
|- Watchdog Timer                                                    WDT   < ON>
|- Virtualization                                                    SVM   [ ON]
   |- I/O MMU                                                      AMD-V   [ ON]
   |- Version                                                     [         0.1]
   |- Hypervisor                                                           [OFF]
   |- Vendor ID                                                   [         N/A]
                                                                                
Performance Monitoring                                                          
|- Version                                                        PM       [  1]
|- Counters:          General                   Fixed                           
|           {  6,  6,  4 } x 48 bits            3 x 64 bits                     
|- Enhanced Halt State                                           C1E       <OFF>
|- C2 UnDemotion                                                 C2U       <OFF>
|- C3 UnDemotion                                                 C3U       < ON>
|- Core C6 State                                                 CC6       < ON>
|- Package C6 State                                              PC6       < ON>
|- Legacy Frequency ID control                                   FID       [OFF]
|- Legacy Voltage ID control                                     VID       [OFF]
|- P-State Hardware Coordination Feedback                MPERF/APERF       [ ON]
|- Core C-States                                                                
   |- C-States Base Address                                      BAR   [ 0x413 ]
|- ACPI Processor C-States                                      _CST   [      2]
|- MONITOR/MWAIT                                                                
   |- State index:    #0    #1    #2    #3    #4    #5    #6    #7              
   |- Sub C-State:     1     1     0     0     0     0     0     0              
   |- Monitor-Mwait Extensions                                   EMX   [Capable]
   |- Interrupt Break-Event                                      IBE   [Capable]
|- Core Cycles                                                         [Capable]
|- Instructions Retired                                                [Capable]
|- Reference Cycles                                                    [Capable]
|- Last Level Cache References                                         [Capable]
|- Global Time Stamp Counter                                           [Missing]
|- Data Fabric Performance Counter                                     [Capable]
|- Core Performance Counter                                            [Capable]
|- Processor Performance Control                                _PCT   [ Enable]
|- Performance Supported States                                 _PSS   [      3]
|- Performance Present Capabilities                             _PPC   [      0]
|- Continuous Performance Control                               _CPC   [ Enable]
                                                                                
Power, Current & Thermal                                                        
|- Temperature Offset:Junction                                 TjMax [ 49: 95 C]
|- CPPC Energy Preference                                        EPP   [Missing]
|- Digital Thermal Sensor                                        DTS   [Capable]
|- Power Limit Notification                                      PLN   [Missing]
|- Package Thermal Management                                    PTM   [Missing]
|- Thermal Monitor 1                                             TTP   [ Enable]
|- Thermal Monitor 2                                             HTC   [ Enable]
|- Thermal Design Power                                          TDP   [   65 W]
   |- Minimum Power                                              Min   [   65 W]
   |- Maximum Power                                              Max   [   65 W]
|- Thermal Design Power                                      Package   < Enable>
   |- Power Limit                                                PL1   <   88 W>
   |- Time Window                                                TW1   <   0 ns>
   |- Power Limit                                                PL2   < 1000 W>
   |- Time Window                                                TW2   <   0 ns>
|- Thermal Design Power                                         Core   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
|- Thermal Design Power                                       Uncore   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
|- Thermal Design Power                                         DRAM   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
|- Thermal Design Power                                     Platform   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
   |- Power Limit                                                PL2   [    0 W]
   |- Time Window                                                TW2   [   0 ns]
|- Package Power Tracking                                        PPT   [   88 W]
|- Electrical Design Current                                     EDC   [   88 A]
|- Thermal Design Current                                        TDC   [   60 A]
|- Core Thermal Point                                                           
|- Package Thermal Point                                                        
   |- Thermal Monitor Trip                                     Limit   [  115 C]
   |- HTC Temperature Limit                                    Limit   [  127 C]
   |- HTC Temperature Hysteresis                           Threshold   [    2 C]
|- Units                                                                        
   |- Power                                               watt   [  0.125000000]
   |- Energy                                             joule   [  0.000015259]
   |- Window                                            second   [  0.000976562]
CPU Pkg  Apic  Core/Thread  Caches      (w)rite-Back (i)nclusive              
 #   ID   ID CCD CCX ID/ID L1-Inst Way  L1-Data Way      L2  Way      L3  Way 
000:BSP    0   0  0   0  0      32  8        32  8       512  8 i   32768 16w 
001:  0    2   0  0   1  0      32  8        32  8       512  8 i   32768 16w 
002:  0    4   0  0   2  0      32  8        32  8       512  8 i   32768 16w 
003:  0    8   0  1   4  0      32  8        32  8       512  8 i   32768 16w 
004:  0   10   0  1   5  0      32  8        32  8       512  8 i   32768 16w 
005:  0   12   0  1   6  0      32  8        32  8       512  8 i   32768 16w 
006:  0    1   0  0   0  1      32  8        32  8       512  8 i   32768 16w 
007:  0    3   0  0   1  1      32  8        32  8       512  8 i   32768 16w 
008:  0    5   0  0   2  1      32  8        32  8       512  8 i   32768 16w 
009:  0    9   0  1   4  1      32  8        32  8       512  8 i   32768 16w 
010:  0   11   0  1   5  1      32  8        32  8       512  8 i   32768 16w 
011:  0   13   0  1   6  1      32  8        32  8       512  8 i   32768 16w 
                              Zen UMC  [1440]                              
Controller #0                                                Dual Channel  
 Bus Rate  1333 MHz       Bus Speed 1333 MHz           DDR4 Speed 2666 MT/s
                                                                           
 Cha   CL  RCDr RCDw  RP  RAS   RC  RRDs RRDl FAW  WTRs WTRl  WR  clRR clWW
  #0   20   19   19   19   43   62    5    7   28    4   10   20    4    4 
  #1   20   19   19   19   43   62    4    7   28    4   10   20    4    4 
      CWL  RTP RdWr WrRd scWW sdWW ddWW scRR sdRR ddRR drRR drWW drWR drRRD
  #0   16   10   11    1    1    7    7    1    5    5    0    0    0    0 
  #1   16   10   11    1    1    7    7    1    5    5    0    0    0    0 
      REFI RFC1 RFC2 RFC4 RCPB RPPB  BGS:Alt  Ban  Page  CKE  CMD  GDM  ECC
  #0 10400  467  347  214   0    0   OFF  ON  R1W1   0    7   1T    ON   1 
  #1 10400  467  347  214   0    0   OFF  ON  R1W1   0    7   1T    ON   1 
      MRD:PDA   MOD:PDA  WRMPR STAG PDM RDDATA WRD  WRL  RDL  XS   XP CPDED
  #0    8  16    24  24    24  156 0:F:0   15   2   11   24  480    8    4 
  #1    8  16    24  24    24  156 0:F:0   15   2   11   24  480    8    4 
                                                                           
 DIMM Geometry for channel #0                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0    16    2     65536      1024          16384 9965745-002.A00G   
       #1    16    2     65536      1024          16384 9965745-002.A00G   
 DIMM Geometry for channel #1                                              
      Slot Bank Rank     Rows   Columns    Memory Size (MB)                
       #0    16    2     65536      1024          16384 9965745-002.A00G   
       #1    16    2     65536      1024          16384 9965745-002.A00G   
Linux:                                                                          
|- Release                                                       [6.1.74-Unraid]
|- Version                 [#1 SMP PREEMPT_DYNAMIC Fri Feb  2 11:06:32 PST 2024]
|- Machine                                                              [x86_64]
Memory:                                                                         
|- Total RAM                                                         65753516 KB
|- Shared RAM                                                         1507960 KB
|- Free RAM                                                          30735352 KB
|- Buffer RAM                                                           12936 KB
|- Total High                                                               0 KB
|- Free High                                                                0 KB
Clock Source                                                  <             tsc>
CPU-Freq driver                                               [      amd-pstate]
Governor                                                      [    conservative]
CPU-Idle driver                                               [       acpi_idle]
|- Idle Limit                                                 [              C2]
   |- State        POLL      C1      C2                                         
   |-           CPUIDLE ACPI FF ACPI IO                                         
   |- Power          -1       0       0                                         
   |- Latency         0       1      18                                         
   |- Residency       0       2      36                                         
|- Collaborative Processor Performance Control                  CPPC       <FMW>
   |- Capabilities     Lowest      Efficient     Guaranteed        Highest      
   |- CPU #0     499.99 (  5)  3599.94 ( 36)  3199.95 ( 32)  4199.93 ( 42)      
   |- CPU #1     499.99 (  5)  3599.94 ( 36)  3199.95 ( 32)  4099.93 ( 41)      
   |- CPU #2     499.99 (  5)  3599.96 ( 36)  3199.96 ( 32)  4199.95 ( 42)      
   |- CPU #3     499.99 (  5)  3599.96 ( 36)  3199.96 ( 32)  3899.96 ( 39)      
   |- CPU #4     499.99 (  5)  3599.96 ( 36)  3199.97 ( 32)  3999.96 ( 40)      
   |- CPU #5     499.99 (  5)  3599.96 ( 36)  3199.97 ( 32)  3699.96 ( 37)      
   |- CPU #6     499.99 (  5)  3599.95 ( 36)  3199.96 ( 32)  4199.95 ( 42)      
   |- CPU #7     500.00 (  5)  3599.97 ( 36)  3199.97 ( 32)  4099.97 ( 41)      
   |- CPU #8     499.99 (  5)  3599.94 ( 36)  3199.94 ( 32)  4199.92 ( 42)      
   |- CPU #9     499.99 (  5)  3599.96 ( 36)  3199.97 ( 32)  3899.96 ( 39)      
   |- CPU #10    499.99 (  5)  3599.96 ( 36)  3199.96 ( 32)  3999.96 ( 40)      
   |- CPU #11    499.99 (  5)  3599.96 ( 36)  3199.97 ( 32)  3699.96 ( 37)      
CPU Freq(MHz) VID  Vcore  TMP(C)    Accumulator       Energy(J)     Power(W)
000  290.89    26  1.3875   61  000000000000113610    1.733551025   1.733551025
001  269.10    26  1.3875   61  000000000000106919    1.631454468   1.631454468
002  282.26    26  1.3875   61  000000000000108465    1.655044556   1.655044556
003  580.83    26  1.3875   61  000000000000170340    2.599182129   2.599182129
004  607.40    26  1.3875   61  000000000000166934    2.547210693   2.547210693
005 1466.65    26  1.3875   61  000000000000535736    8.174682617   8.174682617
006  330.75    26  1.3875   61  000000000000000000    0.000000000   0.000000000
007  291.73    26  1.3875   61  000000000000000000    0.000000000   0.000000000
008  299.79    26  1.3875   61  000000000000000000    0.000000000   0.000000000
009  586.54    26  1.3875   61  000000000000000000    0.000000000   0.000000000
010  593.17    26  1.3875   61  000000000000000000    0.000000000   0.000000000
011 3490.35    26  1.3875   61  000000000000000000    0.000000000   0.000000000

             Package[0]    Cores         Uncore        Memory        Platform
Energy(J):  39.734359741  18.341125488   9.294357300   0.000000000   0.000000000
Power(W) :  39.734359741  18.341125488   9.294357300   0.000000000   0.000000000

 

Any ideas on what I might have setup wrong, @CyrIng?

Link to comment

@Aubury

CPU-Freq driver                                               [      amd-pstate]
Governor                                                      [    conservative]
CPU-Idle driver                                               [       acpi_idle]

You can see here that mainline drivers are already occupying the position

You have first to unload `acpi_idle` and `amd-pstate`

With you Unraid setup, you can try:

modprobe -r acpi_idle
modprobe -r amd-pstate

But I doubt kernel will allow to unload once they have already been registered.

In that case you have to blacklist them when booting Linux by adding these parameters in the boot command line (See grub; syslinux; systemd-boot)

modprobe.blacklist=acpi_cpufreq amd_pstate.shared_mem=0 amd_pstate=disable idle=halt

When starting CoreFreq, you should then read `Missing` like my screenshot

Thus you are free to register CoreFreq in that order:

  1. Clock Source (optionally)
  2. Governor
  3. CPU-Idle driver
  4. CPU-Freq driver

If successful, you will get this second screenshot

 

2024-03-08-093403_559x293_scrot.png

2024-03-08-093834_570x505_scrot.png

Edited by CyrIng
English
Link to comment
5 hours ago, CyrIng said:

@Aubury

CPU-Freq driver                                               [      amd-pstate]
Governor                                                      [    conservative]
CPU-Idle driver                                               [       acpi_idle]

You can see here that mainline drivers are already occupying the position

You have first to unload `acpi_idle` and `amd-pstate`

With you Unraid setup, you can try:

modprobe -r acpi_idle
modprobe -r amd-pstate

But I doubt kernel will allow to unload once they have already been registered.

In that case you have to blacklist them when booting Linux by adding these parameters in the boot command line (See grub; syslinux; systemd-boot)

modprobe.blacklist=acpi_cpufreq amd_pstate.shared_mem=0 amd_pstate=disable idle=halt

When starting CoreFreq, you should then read `Missing` like my screenshot

Thus you are free to register CoreFreq in that order:

  1. Clock Source (optionally)
  2. Governor
  3. CPU-Idle driver
  4. CPU-Freq driver

If successful, you will get this second screenshot

 

2024-03-08-093403_559x293_scrot.png

2024-03-08-093834_570x505_scrot.png

 

Is this basically the only way to get lower C-states with Ryzen? I'm already using amd_pstate=passive, clocks already going down to 500mhz. By using this corefreq is essentially taking over control? I'd like to lower my idle usage as with HDDs turned off and amd-pstate I'm getting around 50-54w idle. Not sure if this could help bring it down a notch?

Link to comment
1 hour ago, Sptz87 said:

Is this basically the only way to get lower C-states with Ryzen?

 

Check BIOS if CC6 and PC6 are enabled

Next Kernel should idle with an assembly instruction like `I/O-Wait` or `halt`
(  `M-WAIT` being less efficient with Ryzen than Intel C-States )

This what you should get as a default, even using `amd_pstate`

 

Here's the 3950X power consumption

 

2024-03-08-165404_644x1012_scrot.png

Edited by CyrIng
English
Link to comment
7 hours ago, CyrIng said:

 

Check BIOS if CC6 and PC6 are enabled

Next Kernel should idle with an assembly instruction like `I/O-Wait` or `halt`
(  `M-WAIT` being less efficient with Ryzen than Intel C-States )

This what you should get as a default, even using `amd_pstate`

 

Here's the 3950X power consumption

 

2024-03-08-165404_644x1012_scrot.png

 

Thank you for the prompt response! I'm usually a tinkerer and finding out what I "could" instead of "should" be doing.

But since the server is rock solid at the moment, I think I'm gonna wait for the next unraid update as hopefully we get 6.3 kernel which allows amd pstate active as well as what you mentioned, 

Link to comment
20 hours ago, CyrIng said:

@Aubury

CPU-Freq driver                                               [      amd-pstate]
Governor                                                      [    conservative]
CPU-Idle driver                                               [       acpi_idle]

You can see here that mainline drivers are already occupying the position

You have first to unload `acpi_idle` and `amd-pstate`

With you Unraid setup, you can try:

modprobe -r acpi_idle
modprobe -r amd-pstate

But I doubt kernel will allow to unload once they have already been registered.

In that case you have to blacklist them when booting Linux by adding these parameters in the boot command line (See grub; syslinux; systemd-boot)

modprobe.blacklist=acpi_cpufreq amd_pstate.shared_mem=0 amd_pstate=disable idle=halt

When starting CoreFreq, you should then read `Missing` like my screenshot

Thus you are free to register CoreFreq in that order:

  1. Clock Source (optionally)
  2. Governor
  3. CPU-Idle driver
  4. CPU-Freq driver

If successful, you will get this second screenshot

 

2024-03-08-093403_559x293_scrot.png

2024-03-08-093834_570x505_scrot.png

 

Thanks! That seemed to work and let me unlock C2 idle states. Is there anything I need to do to make the settings persist across reboots? I had to reregister CoreFreq after I rebooted and change the idle limit to C6 again.

  • Like 1
Link to comment
2 hours ago, Aubury said:

I need to do to make the settings persist across reboots?

 

Short answer is you need these module parameters:

Register_ClockSource=1 Register_Governor=1 Register_CPU_Idle=1 Register_CPU_Freq=1

Apply the Linux standards to add them as an `options` line into `/etc/modprobe.conf` or `/etc/modprobe.d/modprobe.conf`

 

Somehow, you will also switch the System to CoreFreq Clock Source: this can be achieved in system `profile` or `init` file

echo "corefreq_tsc" > /sys/devices/system/clocksource/clocksource0/current_clocksource

 

Fyi, you can get all possible parameters using command:

modinfo corefreqk.ko

 

  • Like 1
  • Thanks 1
Link to comment

Thank you for all of these details above@CyrIng 

Running:

AMD 3900x

MSI Meg Ace x570

GTX 1660Super (Docker only. Plex/Frigate/Tdarr)

Mellanox ConnectX3 2 ports @ 10gb

Onboard 2.5 Realtek

KB/M

LSI 9211-8i

9x HDDs

2x NVME

1xSSD

Sonoff Zigbee 3.0 USB Module

Running 20 docker containers with multiple ARRs

2 Windows 10/11 VMs

1 Home Assistant VM

 

raid:~# corefreq-cli -s -n -m -n -M -n
Processor                                  [AMD Ryzen 9 3900X 12-Core Processor]
|- Architecture                                                   [Zen2/Matisse]
|- Vendor ID                                                      [AuthenticAMD]
|- Firmware                                                         [ 46.73.0-2]
|- Microcode                                                        [0x08701030]
|- Signature                                                           [  8F_71]
|- Stepping                                                            [      0]
|- Online CPU                                                          [ 24/ 24]
|- Base Clock                                                          [ 99.999]
|- Frequency            (MHz)                      Ratio
                 Min   2199.98                    <  22 >
                 Max   3799.97                    <  38 >
|- Factory                                                             [100.000]
                       3800                       [  38 ]
|- Performance
   |- P-State
                 TGT   3799.97                    <  38 >
   |- CPPC
                 Min    500.00                    <   5 >
                 Max   4599.96                    <  46 >
                 TGT   4599.96                    <  46 >
|- Turbo Boost                                                         [ UNLOCK]
                 XFR   4699.96                    [  47 ]
                 CPB   4599.96                    [  46 ]
                  1C   2799.98                    <  28 >
                  2C   2199.98                    <  22 >
|- Uncore                                                              [   LOCK]
                 CLK   1599.99                    [  16 ]
                 MEM   4799.96                    [  48 ]

Instruction Set Extensions
|- 3DNow!/Ext [N/N]          ADX [Y]          AES [Y]  AVX/AVX2 [Y/Y]
|- AVX512-F     [N]    AVX512-DQ [N]  AVX512-IFMA [N]   AVX512-PF [N]
|- AVX512-ER    [N]    AVX512-CD [N]    AVX512-BW [N]   AVX512-VL [N]
|- AVX512-VBMI  [N] AVX512-VBMI2 [N]  AVX512-VNNI [N]  AVX512-ALG [N]
|- AVX512-VPOP  [N] AVX512-VNNIW [N] AVX512-FMAPS [N] AVX512-VP2I [N]
|- AVX512-BF16  [N] AVX-VNNI-VEX [N]    AVX-FP128 [N]   AVX-FP256 [Y]
|- BMI1/BMI2  [Y/Y]         CLWB [Y]      CLFLUSH [Y] CLFLUSH-OPT [Y]
|- CLAC-STAC    [Y]         CMOV [Y]    CMPXCHG8B [Y]  CMPXCHG16B [Y]
|- F16C         [Y]          FPU [Y]         FXSR [Y]   LAHF-SAHF [Y]
|- MMX/Ext    [Y/Y] MON/MWAITX [Y/Y]        MOVBE [Y]   PCLMULQDQ [Y]
|- POPCNT       [Y]       RDRAND [Y]       RDSEED [Y]      RDTSCP [Y]
|- SEP          [Y]          SHA [Y]          SSE [Y]        SSE2 [Y]
|- SSE3         [Y]        SSSE3 [Y]  SSE4.1/4A [Y/Y]      SSE4.2 [Y]
|- SERIALIZE    [N]      SYSCALL [Y]        RDPID [Y]        UMIP [Y]
|- VAES         [N]   VPCLMULQDQ [N]   PREFETCH/W [Y]       LZCNT [Y]

Features
|- 1 GB Pages Support                                      1GB-PAGES   [Capable]
|- 100 MHz multiplier Control                            100MHzSteps   [Missing]
|- Advanced Configuration & Power Interface                     ACPI   [Capable]
|- Advanced Programmable Interrupt Controller                   APIC   [Capable]
|- Advanced Virtual Interrupt Controller                        AVIC   [Capable]
|- APIC Timer Invariance                                        ARAT   [Capable]
|- LOCK prefix to read CR8                                    AltMov   [Capable]
|- Clear Zero Instruction                                     CLZERO   [Capable]
|- Core Multi-Processing                                  CMP Legacy   [Capable]
|- L1 Data Cache Context ID                                  CNXT-ID   [Missing]
|- Collaborative Processor Performance Control                  CPPC   [Capable]
|- Direct Cache Access                                           DCA   [Missing]
|- Debugging Extension                                            DE   [Capable]
|- Debug Store & Precise Event Based Sampling               DS, PEBS   [Missing]
|- CPL Qualified Debug Store                                  DS-CPL   [Missing]
|- 64-Bit Debug Store                                         DTES64   [Missing]
|- Fast Short REP MOVSB                                         FSRM   [Missing]
|- Fast-String Operation                                        ERMS   [Missing]
|- Fused Multiply Add                                           FMA4   [Missing]
|- Fused Multiply Add                                            FMA   [Capable]
|- Hardware Lock Elision                                         HLE   [Missing]
|- Hyper-Threading Technology                                    HTT   [Capable]
|- Hardware P-state control                                      HwP   [Capable]
|- Instruction Based Sampling                                    IBS   [Capable]
|- Instruction INVLPGB                                       INVLPGB   [Missing]
|- Instruction INVPCID                                       INVPCID   [Missing]
|- Long Mode 64 bits                                       IA64 | LM   [Capable]
|- LightWeight Profiling                                         LWP   [Missing]
|- Memory Bandwidth Enforcement                                  MBE   [Capable]
|- Machine-Check Architecture                                    MCA   [Capable]
|- Instruction MCOMMIT                                       MCOMMIT   [Missing]
|- Model Specific Registers                                      MSR   [Capable]
|- Memory Type Range Registers                                  MTRR   [Capable]
|- No-Execute Page Protection                                     NX   [Capable]
|- OS-Enabled Ext. State Management                          OSXSAVE   [Capable]
|- OS Visible Work-around                                       OSVW   [Capable]
|- Physical Address Extension                                    PAE   [Capable]
|- Page Attribute Table                                          PAT   [Capable]
|- Pending Break Enable                                          PBE   [Missing]
|- Process Context Identifiers                                  PCID   [Missing]
|- Perfmon and Debug Capability                                 PDCM   [Missing]
|- Page Global Enable                                            PGE   [Capable]
|- Page Size Extension                                           PSE   [Capable]
|- 36-bit Page Size Extension                                  PSE36   [Capable]
|- Processor Serial Number                                       PSN   [Missing]
|- Resource Director Technology/PQE                            RDT-A   [Capable]
|- Resource Director Technology/PQM                            RDT-M   [Capable]
|- Read Processor Register at User level                       RDPRU   [Capable]
|- Restricted Transactional Memory                               RTM   [Missing]
|- Safer Mode Extensions                                         SMX   [Missing]
|- Self-Snoop                                                     SS   [Missing]
|- Supervisor-Mode Access Prevention                            SMAP   [Capable]
|- Supervisor-Mode Execution Prevention                         SMEP   [Capable]
|- Trailing Bit Manipulation                                     TBM   [Missing]
|- Translation Cache Extension                                   TCE   [Capable]
|- Time Stamp Counter                                            TSC [Invariant]
|- Time Stamp Counter Deadline                          TSC-DEADLINE   [Missing]
|- TSX Force Abort MSR Register                            TSX-ABORT   [Missing]
|- TSX Suspend Load Address Tracking                       TSX-LDTRK   [Missing]
|- User-Mode Instruction Prevention                             UMIP   [Capable]
|- Virtual Mode Extension                                        VME   [Capable]
|- Virtual Machine Extensions                                    VMX   [Missing]
|- Write Back & Do Not Invalidate Cache                     WBNOINVD   [Capable]
|- Extended xAPIC Support                                     x2APIC   [  xAPIC]
|- AVIC controller for x2APIC                                 x2AVIC   [Missing]
|- XSAVE/XSTOR States                                          XSAVE   [Capable]
|- xTPR Update Control                                          xTPR   [Missing]
|- Extended Operation Support                                    XOP   [Missing]
Mitigation mechanisms
|- Indirect Branch Restricted Speculation                       IBRS   [ Unable]
   |- IBRS Always-On preferred by processor                            [ Unable]
   |- IBRS preferred over software solution                            [Capable]
   |- IBRS provides same speculation limits                            [Capable]
|- Indirect Branch Prediction Barrier                           IBPB   [Capable]
|- Single Thread Indirect Branch Predictor                     STIBP   [ Enable]
|- Speculative Store Bypass Disable                             SSBD   [Capable]
   |- SSBD use VIRT_SPEC_CTRL register                                 [ Unable]
   |- SSBD not needed on this processor                                [ Unable]
|- No Branch Type Confusion                                   BTC_NO   [ Unable]
|- BTC on Non-Branch instruction                            BTC-NOBR   [ Enable]
|- Limited Early Redirect Window                            AGENPICK   [Disable]
|- Arch - No Fast Predictive Store Forwarding                   PSFD   [ Unable]
|- Arch - Enhanced Predictive Store Forwarding                  EPSF   [Missing]
|- Arch - Cross Processor Information Leak                XPROC_LEAK   [ Enable]
Security Features
|- CET Shadow Stack features                                  CET-SS   [Missing]
|- Secure Init and Jump with Attestation                      SKINIT   [Capable]
|- Secure Encrypted Virtualization                               SEV   [Capable]
|- SEV - Encrypted State                                      SEV-ES   [Capable]
|- SEV - Secure Nested Paging                                SEV-SNP   [Missing]
|- Guest Mode Execute Trap                                      GMET   [Capable]
|- Supervisor Shadow Stack                                       SSS   [Missing]
|- VM Permission Levels                                         VMPL   [Missing]
|- VMPL Supervisor Shadow Stack                             VMPL-SSS   [Missing]
|- Secure Memory Encryption                                      SME   [Capable]
|- Transparent SME                                              TSME   [Disable]
|- Secure Multi-Key Memory Encryption                         SME-MK   [Missing]
|- DRAM Data Scrambling                                    Scrambler   [ Enable]

Technologies
|- Instruction Cache Unit
   |- L1 IP Prefetcher                                          L1 HW IP   < ON>
|- Data Cache Unit
   |- L1 Prefetcher                                                L1 HW   < ON>
|- Cache Prefetchers
   |- L2 Prefetcher                                                L2 HW   < ON>
   |- L1 Stride Prefetcher                                     L1 Stride   <OFF>
   |- L1 Region Prefetcher                                     L1 Region   <OFF>
   |- L1 Burst Prefetch Mode                                    L1 Burst   <OFF>
   |- L2 Stream HW Prefetcher                                  L2 Stream   <OFF>
   |- L2 Up/Down Prefetcher                                   L2 Up/Down   <OFF>
|- System Management Mode                                       SMM-Lock   [ ON]
|- Simultaneous Multithreading                                       SMT   [ ON]
|- PowerNow!                                                         CnQ   [ ON]
|- Core C-States                                                     CCx   [ ON]
|- Core Performance Boost                                            CPB   < ON>
|- Watchdog Timer                                                    WDT   < ON>
|- Virtualization                                                    SVM   [ ON]
   |- I/O MMU                                                      AMD-V   [ ON]
   |- Version                                                     [         0.1]
   |- Hypervisor                                                           [OFF]
   |- Vendor ID                                                   [         N/A]

Performance Monitoring
|- Version                                                        PM       [  1]
|- Counters:          General                   Fixed
|           {  6,  6,  4 } x 48 bits            3 x 64 bits
|- Enhanced Halt State                                           C1E       <OFF>
|- C2 UnDemotion                                                 C2U       <OFF>
|- C3 UnDemotion                                                 C3U       < ON>
|- Core C6 State                                                 CC6       < ON>
|- Package C6 State                                              PC6       < ON>
|- Legacy Frequency ID control                                   FID       [OFF]
|- Legacy Voltage ID control                                     VID       [OFF]
|- P-State Hardware Coordination Feedback                MPERF/APERF       [ ON]
|- Core C-States
   |- C-States Base Address                                      BAR   [ 0x413 ]
|- ACPI Processor C-States                                      _CST   [      2]
|- MONITOR/MWAIT
   |- State index:    #0    #1    #2    #3    #4    #5    #6    #7
   |- Sub C-State:     1     1     0     0     0     0     0     0
   |- Monitor-Mwait Extensions                                   EMX   [Capable]
   |- Interrupt Break-Event                                      IBE   [Capable]
|- Core Cycles                                                         [Capable]
|- Instructions Retired                                                [Capable]
|- Reference Cycles                                                    [Capable]
|- Last Level Cache References                                         [Capable]
|- Global Time Stamp Counter                                           [Missing]
|- Data Fabric Performance Counter                                     [Capable]
|- Core Performance Counter                                            [Capable]
|- Processor Performance Control                                _PCT   [ Enable]
|- Performance Supported States                                 _PSS   [      3]
|- Performance Present Capabilities                             _PPC   [      0]
|- Continuous Performance Control                               _CPC   [ Enable]

Power, Current & Thermal
|- Temperature Offset:Junction                                 TjMax [ 49: 95 C]
|- CPPC Energy Preference                                        EPP   [Missing]
|- Digital Thermal Sensor                                        DTS   [Capable]
|- Power Limit Notification                                      PLN   [Missing]
|- Package Thermal Management                                    PTM   [Missing]
|- Thermal Monitor 1                                             TTP   [ Enable]
|- Thermal Monitor 2                                             HTC   [ Enable]
|- Thermal Design Power                                          TDP   [  105 W]
   |- Minimum Power                                              Min   [  105 W]
   |- Maximum Power                                              Max   [  105 W]
|- Thermal Design Power                                      Package   < Enable>
   |- Power Limit                                                PL1   <  142 W>
   |- Time Window                                                TW1   <   0 ns>
   |- Power Limit                                                PL2   <  500 W>
   |- Time Window                                                TW2   <   0 ns>
|- Thermal Design Power                                         Core   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
|- Thermal Design Power                                       Uncore   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
|- Thermal Design Power                                         DRAM   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
|- Thermal Design Power                                     Platform   [Disable]
   |- Power Limit                                                PL1   [    0 W]
   |- Time Window                                                TW1   [   0 ns]
   |- Power Limit                                                PL2   [    0 W]
   |- Time Window                                                TW2   [   0 ns]
|- Package Power Tracking                                        PPT   [  142 W]
|- Electrical Design Current                                     EDC   [  140 A]
|- Thermal Design Current                                        TDC   [   95 A]
|- Core Thermal Point
|- Package Thermal Point
   |- Thermal Monitor Trip                                     Limit   [  115 C]
   |- HTC Temperature Limit                                    Limit   [  127 C]
   |- HTC Temperature Hysteresis                           Threshold   [    2 C]
|- Units
   |- Power                                               watt   [  0.125000000]
   |- Energy                                             joule   [  0.000015259]
   |- Window                                            second   [  0.000976562]

CPU Pkg  Apic  Core/Thread  Caches      (w)rite-Back (i)nclusive
 #   ID   ID CCD CCX ID/ID L1-Inst Way  L1-Data Way      L2  Way      L3  Way
000:BSP    0   0  0   0  0      32  8        32  8       512  8 i   65536 16w
001:  0    2   0  0   1  0      32  8        32  8       512  8 i   65536 16w
002:  0    4   0  0   2  0      32  8        32  8       512  8 i   65536 16w
003:  0    8   0  1   4  0      32  8        32  8       512  8 i   65536 16w
004:  0   10   0  1   5  0      32  8        32  8       512  8 i   65536 16w
005:  0   12   0  1   6  0      32  8        32  8       512  8 i   65536 16w
006:  0   16   1  2   8  0      32  8        32  8       512  8 i   65536 16w
007:  0   18   1  2   9  0      32  8        32  8       512  8 i   65536 16w
008:  0   20   1  2  10  0      32  8        32  8       512  8 i   65536 16w
009:  0   24   1  3  12  0      32  8        32  8       512  8 i   65536 16w
010:  0   26   1  3  13  0      32  8        32  8       512  8 i   65536 16w
011:  0   28   1  3  14  0      32  8        32  8       512  8 i   65536 16w
012:  0    1   0  0   0  1      32  8        32  8       512  8 i   65536 16w
013:  0    3   0  0   1  1      32  8        32  8       512  8 i   65536 16w
014:  0    5   0  0   2  1      32  8        32  8       512  8 i   65536 16w
015:  0    9   0  1   4  1      32  8        32  8       512  8 i   65536 16w
016:  0   11   0  1   5  1      32  8        32  8       512  8 i   65536 16w
017:  0   13   0  1   6  1      32  8        32  8       512  8 i   65536 16w
018:  0   17   1  2   8  1      32  8        32  8       512  8 i   65536 16w
019:  0   19   1  2   9  1      32  8        32  8       512  8 i   65536 16w
020:  0   21   1  2  10  1      32  8        32  8       512  8 i   65536 16w
021:  0   25   1  3  12  1      32  8        32  8       512  8 i   65536 16w
022:  0   27   1  3  13  1      32  8        32  8       512  8 i   65536 16w
023:  0   29   1  3  14  1      32  8        32  8       512  8 i   65536 16w

                              Zen UMC  [1440]
Controller #0                                                Dual Channel
 Bus Rate  1600 MHz       Bus Speed 1599 MHz           DDR4 Speed 3199 MT/s

 Cha   CL  RCDr RCDw  RP  RAS   RC  RRDs RRDl FAW  WTRs WTRl  WR  clRR clWW
  #0   18   22   22   22   42   73    6    8   34    4   12   24    5    5
  #1   18   22   22   22   42   73    6    8   34    4   12   24    5    5
      CWL  RTP RdWr WrRd scWW sdWW ddWW scRR sdRR ddRR drRR drWW drWR drRRD
  #0   18   12    8    3    1    7    6    1    5    4    0    0    0    0
  #1   18   12    8    3    1    7    6    1    5    4    0    0    0    0
      REFI RFC1 RFC2 RFC4 RCPB RPPB  BGS:Alt  Ban  Page  CKE  CMD  GDM  ECC
  #0 12480  880  560  416   0    0   OFF  ON  R1W1   0    8   1T    ON   0
  #1 12480  880  560  416   0    0   OFF  ON  R1W1   0    8   1T    ON   0
      MRD:PDA   MOD:PDA  WRMPR STAG PDM RDDATA WRD  WRL  RDL  XS   XP CPDED
  #0    8  16    24  24    24  255 0:F:0   13   2   13   26  896   10    4
  #1    8  16    24  24    24  255 0:F:0   13   2   13   26  896   10    4

 DIMM Geometry for channel #0
      Slot Bank Rank     Rows   Columns    Memory Size (MB)
       #0
       #1    16    2    131072      1024          32768  TEAMGROUP-UD4-3600
 DIMM Geometry for channel #1
      Slot Bank Rank     Rows   Columns    Memory Size (MB)
       #0
       #1    16    2    131072      1024          32768  TEAMGROUP-UD4-3600

 

I now have everything registered properly per your instructions to include the blacklist:

On 3/8/2024 at 3:50 AM, CyrIng said:
modprobe.blacklist=acpi_cpufreq amd_pstate.shared_mem=0 amd_pstate=disable idle=halt

 

My power consumption:

Was 175-180W with most HDDs spun down. 220-230W with them spun up.

Now 110-120W with most HDDs spun down. 170W with them all spun up.

 

No delays, no errors.

 

Screenshot 2024-03-12 135814.jpg

Edited by wuudogg
wrong pic
  • Thanks 1
Link to comment

@wuudogg

There's an odd issue with the UI I'm noticing in your previous screenshot: the borders of the Settings window are missing on the sides and get width extended on the above.

I can't tell yet if it is a `corefreq-cli` bug or some side effects of the employed screenshot software (SW) tool ?

 

Are those issues visibly permanent on your screen ?

 

By which mean are you displaying the UI ?

ssh or other remote SW ?

X or console Terminal SW ?

Is the term color theme modified or default ?

Edited by CyrIng
Link to comment
19 hours ago, CyrIng said:

That's such an improvement.

How did you measure the whole power consumed ?

 

State of the art, highly sensitive measurement tool: aka $8 KASA / TAPO Energy Plug :) Seems to update every second or two.

 

Whole power consumed was measured after initial boot and all docker, VMs and HDDs were up. Tried Stock settings, AMD/Perf, AMD/Schedutil, tried all the scaling governors. All were about the same until following your process for making corefreq_tsc the clock source and properly registering all.  No real stress tests other than I was working and doing too many things at once, as usual. 

 

 - Drives are set to spin down on their own (Standby set to 15min).

 - I use the Folder Caching plugin to help keep the drives in standby.

 - I prevent Disk Location plugin from running Smart Queries hourly. Daily is fine. If a drive dies, it dies. No need to wake it up and ask it if it is dieing. Not saying it is but that plugin has been a little goofy lately. Love it though!

 - Mover Tuning plugin, with moves to array based on fullness and file age, helps keep HDDs in standby for non critical data that can easily be rebuilt.

 

The tweaking comes in waves. It's nice sometimes to see the uptime counter hit 30 or 60 days.  This isn't one of those weeks. Having too much fun right now goofing around with it. I'm prepping to consolidate another system and add its drives.

 

Link to comment
20 hours ago, CyrIng said:

@wuudogg

There's an odd issue with the UI I'm noticing in your previous screenshot: the borders of the Settings window are missing on the sides and get width extended on the above.

I can't tell yet if it is a `corefreq-cli` bug or some side effects of the employed screenshot software (SW) tool ?

 

Are those issues visibly permanent on your screen ?

 

By which mean are you displaying the UI ?

ssh or other remote SW ?

X or console Terminal SW ?

Is the term color theme modified or default ?

Interesting. Those were taking from a host RDP'd into a VM. Was thinking maybe PEBKAC on my part.

 

So, I've attached another with the Kernal window this time. Straight from the Unraid GUI Window Terminal. Windows Snipping Tool. Tried it from Firefox and Chrome. I don't see those nice royal blue boxes like in your pic again.  I tried from a few different windows system thinking maybe it was a dark mode or a browser addon. Tried on a new / fresh system and no royal blue outline still. Even tried Microsoft Edge lol. No borders. 

Running 6.12.8 and the plugin is installed and up to date. 

 

Second pic, with the boxes/borders is through Mobaxterm window... Boxes are there.

Screenshot 2024-03-13 193023.png

Screenshot 2024-03-13 203237.png

Link to comment
3 hours ago, wuudogg said:

State of the art, highly sensitive measurement tool: aka $8 KASA / TAPO Energy Plug :) Seems to update every second or two.

Thanks. I'm thinking about ordering one of those.

 

Your NAS is highly tuned. I keep those in mind as I have to migrate an old Windows 7 HTPC to a Linux mixed solution: Koodi + Raid-5

Tricky part is to mount the Intel RST Raid disks from Linux.

 

About the UI glitches, I don't catch how to reproduce them.

My understanding is that Windows and Virtualization are the starting points of the issue.

Link to comment
On 3/14/2024 at 12:31 AM, CyrIng said:

About the UI glitches, I don't catch how to reproduce them.

My understanding is that Windows and Virtualization are the starting points of the issue.

 

To clarify, tested on Windows 11 Pro Hosts and VM Guests. Virtualization is not a requirement to reproduce.  Tried Firefox, Chrome and Edge. All give the same result of the borders missing when I use Unraid Gui and run corefreq-cli from the Unraid Gui Terminal window.  Doesn't happen if I use MobaXterm and ssh in.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.