AMD Ryzen 3 2300U | Is 3.4GHz but says 2.0GHz.

Hi! =)

According to this page:
https://www.amd.com/en/products/apu/amd-ryzen-3-2300u

My CPU max frequency should be 3,4GHz. (boosted)
But in various output commands always says 2.0GHz Max.

Im think I losing 1,4GHz of processing power, how can I solve this?

INFO:

System:    Host: inspiron3585 Kernel: 5.6.2-1-rt1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: i3 4.18 info: i3bar 
           dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Dell product: Inspiron 3585 v: 1.0.0 serial: <filter> Chassis: type: 10 v: 1.0.0 
           serial: <filter> 
           Mobo: Dell model: 08DMM2 v: X01 serial: <filter> UEFI: Dell v: 1.0.0 date: 11/20/2018 
Battery:   ID-1: BAT1 charge: 35.7 Wh condition: 35.7/42.0 Wh (85%) volts: 13.0/11.4 
           model: SDI 0x4D,0x39,0x32,0x4A,0x00,0x00,0x00ED type: Li-ion serial: <filter> status: Full 
CPU:       Topology: Quad Core model: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx bits: 64 type: MCP arch: Zen 
           L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 15977 
           Speed: 1434 MHz min/max: 1600/2000 MHz boost: enabled Core speeds (MHz): 1: 1506 2: 1402 3: 1446 4: 1374 
Graphics:  Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] vendor: Dell driver: amdgpu v: kernel 
           bus ID: 03:00.0 chip ID: 1002:15dd 
           Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.36.0 5.6.2-1-rt1-MANJARO LLVM 9.0.1) v: 4.6 Mesa 20.0.4 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Dell driver: snd_hda_intel 
           v: kernel bus ID: 03:00.1 chip ID: 1002:15de 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus ID: 03:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.6.2-1-rt1-MANJARO 
Network:   Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 v: kernel port: 2000 
           bus ID: 01:00.0 chip ID: 10ec:8136 
           IF: enp1s0 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Dell driver: ath10k_pci v: kernel 
           port: 2000 bus ID: 02:00.0 chip ID: 168c:0042 
           IF: wlp2s0 state: up mac: <filter> 
           Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 3-2.4:5 chip ID: 0cf3:e009 
Drives:    Local Storage: total: 931.51 GiB used: 6.74 GiB (0.7%) 
           ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB speed: 6.0 Gb/s rotation: 5400 rpm 
           serial: <filter> rev: SDM3 scheme: GPT 
Partition: ID-1: / size: 29.28 GiB used: 6.26 GiB (21.4%) fs: ext4 dev: /dev/sda3 
           ID-2: /home size: 97.43 GiB used: 494.3 MiB (0.5%) fs: ext4 dev: /dev/sda5 
           ID-3: swap-1 size: 8.01 GiB used: 1024 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 59.8 C mobo: N/A gpu: amdgpu temp: 59 C 
           Fan Speeds (RPM): fan-1: 0 
Info:      Processes: 197 Uptime: 1h 30m Memory: 3.31 GiB used: 933.7 MiB (27.6%) Init: systemd v: 244 Compilers: gcc: 9.3.0 
           Shell: bash v: 5.0.16 running in: xfce4-terminal inxi: 3.0.37 
Arquitectura:                        x86_64
modo(s) de operación de las CPUs:    32-bit, 64-bit
Orden de los bytes:                  Little Endian
Tamaños de las direcciones:          43 bits physical, 48 bits virtual
CPU(s):                              4
Lista de la(s) CPU(s) en línea:      0-3
Hilo(s) de procesamiento por núcleo: 1
Núcleo(s) por «socket»:              4
«Socket(s)»                          1
Modo(s) NUMA:                        1
ID de fabricante:                    AuthenticAMD
Familia de CPU:                      23
Modelo:                              17
Nombre del modelo:                   AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx
Revisión:                            0
Aumento de frecuencia:               activada
CPU MHz:                             1605.506
CPU MHz máx.:                        2000,0000
CPU MHz mín.:                        1600,0000
BogoMIPS:                            3994.28
Virtualización:                      AMD-V
Caché L1d:                           128 KiB
Caché L1i:                           256 KiB
Caché L2:                            2 MiB
Caché L3:                            4 MiB
CPU(s) del nodo NUMA 0:              0-3
Vulnerability Itlb multihit:         Not affected
Vulnerability L1tf:                  Not affected
Vulnerability Mds:                   Not affected
Vulnerability Meltdown:              Not affected
Vulnerability Spec store bypass:     Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1:            Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:            Mitigation; Full AMD retpoline, IBPB conditional, STIBP disabled, RSB filling
Vulnerability Tsx async abort:       Not affected
Indicadores:                         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 rep_good nopl nonstop_tsc cpuid ext
                                     d_apicid aperfmperf 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 s
                                     kinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev
                                      ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xget
                                     bv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushby
                                     asid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca
  *-cpu                     
       description: CPU
       product: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx
       vendor: Advanced Micro Devices [AMD]
       physical id: 4
       bus info: cpu@0
       version: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx
       serial: Unknown
       slot: FP5
       size: 1909MHz
       capacity: 2GHz
       width: 64 bits
       clock: 100MHz
       capabilities: x86-64 fpu fpu_exception wp 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 constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf 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 skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate sme ssbd sev ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 xsaves clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca cpufreq
       configuration: cores=4 enabledcores=4 threads=4
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.1.1 present.

Handle 0x0004, DMI type 4, 48 bytes
Processor Information
	Socket Designation: FP5
	Type: Central Processor
	Family: Zen
	Manufacturer: Advanced Micro Devices, Inc.
	ID: 10 0F 81 00 FF FB 8B 17
	Signature: Family 23, Model 17, Stepping 0
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		HTT (Multi-threading)
	Version: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx  
	Voltage: 1.2 V
	External Clock: 100 MHz
	Max Speed: 2000 MHz
	Current Speed: 2000 MHz
	Status: Populated, Enabled
	Upgrade: None
	L1 Cache Handle: 0x0005
	L2 Cache Handle: 0x0006
	L3 Cache Handle: 0x0007
	Serial Number: Unknown
	Asset Tag: Unknown
	Part Number: Unknown
	Core Count: 4
	Core Enabled: 4
	Thread Count: 4
	Characteristics:
		64-bit capable
		Multi-Core
		Hardware Thread
		Execute Protection
		Enhanced Virtualization
		Power/Performance Control


CPU:       Topology: Quad Core model: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx bits: 64 type: MCP L2 cache: 2048 KiB 
           Speed: 1438 MHz min/max: 1600/2000 MHz Core speeds (MHz): 1: 1527 2: 1362 3: 1351 4: 1338 

plug the laptop into mains electric and try again, also may not be possible without some coding, anyhow use the benchmarks mentioned in this blog to find out exactly what is going on with your apu:

https://blog.3mdeb.com/2019/2019-02-14-enabling-cpb-on-pcengines-apu2/

1 Like

It's already plugged, always is plugged.

[admin@inspiron3585 ~]$ acpi -a
Adapter 0: on-line

Its secure to put this in "src/mainboard/pcengines/apu2/OemCustomize.c" ?:

VOID
OemCustomizeInitEarly (
    IN  OUT AMD_EARLY_PARAMS    *InitEarly
    )
{
    InitEarly->GnbConfig.PcieComplexList = &PcieComplex;
+    InitEarly->PlatformConfig.CStateMode = CStateModeC6;
+    InitEarly->PlatformConfig.CpbMode = CpbModeAuto;
}

I don't even have the folder mentioned there ...

no, don't start messing with anything, just try the benchmarks and see what happens. the single core boost should happen within thermal allowance even if your system reports only 2.0GHz in the utilities you are using to try and detect 3.4GHz being recognised by the system.

1 Like

Ok, doing the first test in the blog.
I will posting results in a minute.

fine, i'm off to bed so happy hunting. also try phoronix test suite and compare it to the existing results for your system someone's already posted from Fedora 31.

1 Like

Night night! Thanks for helping.

Also, bad news for me I think.
In a Fedora 31 Benchmark says that this CPU have 2.0GHz too, a benchmark comparison will be useless maybe...

https://openbenchmarking.org/result/1912111-HU-BENCHMARK58

1

(Doing the tests...)

[TEST]

1. stress -c 1 &

(Core 4 at 100%)

2. watch -n 1  cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq

2000000
2000000
2000000
2000000

3. stress-ng --cpu 1 --cpu-method matrixprod --timeout 30 --metrics

stress-ng: info:  [23062] dispatching hogs: 1 cpu
stress-ng: info:  [23062] successful run completed in 30.01s
stress-ng: info:  [23062] stressor       bogo ops real time  usr time  sys time   bogo ops/s   bogo ops/s
stress-ng: info:  [23062]                           (secs)    (secs)    (secs)   (real time) (usr+sys time)
stress-ng: info:  [23062] cpu                5498     30.00     29.95      0.01       183.24       183.51


4. dd if=/dev/zero of=/dev/null bs=64k count=1M

1048576+0 registros leídos
1048576+0 registros escritos
68719476736 bytes (69 GB, 64 GiB) copied, 6,45356 s, 10,6 GB/s

5. UnixBench benchmark

   BYTE UNIX Benchmarks (Version 5.1.3)

   System: inspiron3585: GNU/Linux
   OS: GNU/Linux -- 5.6.2-1-rt1-MANJARO -- #1 SMP PREEMPT_RT Fri Apr 10 00:11:01 UTC 2020
   Machine: x86_64 (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx (3994.3 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
   CPU 1: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx (3994.3 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
   CPU 2: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx (3994.3 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
   CPU 3: AMD Ryzen 3 2300U with Radeon Vega Mobile Gfx (3994.3 bogomips)
          Hyper-Threading, x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
   20:51:38 up  2:57,  1 user,  load average: 1,32, 1,47, 1,77; runlevel unknown

------------------------------------------------------------------------
Benchmark Run: mié abr 15 2020 20:51:38 - 21:19:54
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       40725016.2 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     6871.1 MWIPS (10.2 s, 7 samples)
Execl Throughput                               3235.6 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        742532.1 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          207226.9 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1661330.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                             1240331.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 120134.2 lps   (10.0 s, 7 samples)
Process Creation                               7267.8 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   3345.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    962.2 lpm   (60.0 s, 2 samples)
System Call Overhead                        1468404.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   40725016.2   3489.7
Double-Precision Whetstone                       55.0       6871.1   1249.3
Execl Throughput                                 43.0       3235.6    752.5
File Copy 1024 bufsize 2000 maxblocks          3960.0     742532.1   1875.1
File Copy 256 bufsize 500 maxblocks            1655.0     207226.9   1252.1
File Copy 4096 bufsize 8000 maxblocks          5800.0    1661330.3   2864.4
Pipe Throughput                               12440.0    1240331.5    997.1
Pipe-based Context Switching                   4000.0     120134.2    300.3
Process Creation                                126.0       7267.8    576.8
Shell Scripts (1 concurrent)                     42.4       3345.4    789.0
Shell Scripts (8 concurrent)                      6.0        962.2   1603.7
System Call Overhead                          15000.0    1468404.3    978.9
                                                                   ========
System Benchmarks Index Score                                        1138.1

------------------------------------------------------------------------
Benchmark Run: mié abr 15 2020 21:19:54 - 21:48:11
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables      134342142.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                    25025.8 MWIPS (10.4 s, 7 samples)
Execl Throughput                               8504.4 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        234511.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           52991.6 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1044337.2 KBps  (30.0 s, 2 samples)
Pipe Throughput                             4318300.0 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 672422.5 lps   (10.0 s, 7 samples)
Process Creation                              19246.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   8385.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    744.3 lpm   (60.1 s, 2 samples)
System Call Overhead                        4533831.7 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0  134342142.8  11511.8
Double-Precision Whetstone                       55.0      25025.8   4550.1
Execl Throughput                                 43.0       8504.4   1977.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     234511.6    592.2
File Copy 256 bufsize 500 maxblocks            1655.0      52991.6    320.2
File Copy 4096 bufsize 8000 maxblocks          5800.0    1044337.2   1800.6
Pipe Throughput                               12440.0    4318300.0   3471.3
Pipe-based Context Switching                   4000.0     672422.5   1681.1
Process Creation                                126.0      19246.7   1527.5
Shell Scripts (1 concurrent)                     42.4       8385.9   1977.8
Shell Scripts (8 concurrent)                      6.0        744.3   1240.5
System Call Overhead                          15000.0    4533831.7   3022.6
                                                                   ========
System Benchmarks Index Score                                        1908.7


please post the output of 'systemctl status cpupower.service ' . Is the service disabled ?
if the service is not active please use 'sudo systemctl enable cpupower.service' and then 'sudo systemctl start cpupower.service'. after this recheck the status, but the problem should be solved after this. please reboot and confirm that everything is ok after rebooting.

2 Likes

Hi olli!
Well, it was actually diseabled!
I going to reboot and see what happens.

[admin@inspiron3585 ~]$ systemctl status cpupower.service
● cpupower.service - Apply cpupower configuration
     Loaded: loaded (/usr/lib/systemd/system/cpupower.service; disabled; vendor preset: disabled)
     Active: inactive (dead)
[admin@inspiron3585 ~]$ sudo systemctl enable cpupower.service
[sudo] password for admin: 
Created symlink /etc/systemd/system/multi-user.target.wants/cpupower.service → /usr/lib/systemd/system/cpupower.service.
[admin@inspiron3585 ~]$ sudo systemctl start cpupower.service
[admin@inspiron3585 ~]$ systemctl status cpupower.service
● cpupower.service - Apply cpupower configuration
     Loaded: loaded (/usr/lib/systemd/system/cpupower.service; enabled; vendor preset: disabled)
     Active: active (exited) since Thu 2020-04-16 00:57:52 CST; 3s ago
    Process: 711566 ExecStart=/usr/lib/systemd/scripts/cpupower (code=exited, status=0/SUCCESS)
   Main PID: 711566 (code=exited, status=0/SUCCESS)

abr 16 00:57:52 inspiron3585 systemd[1]: Starting Apply cpupower configuration...
abr 16 00:57:52 inspiron3585 systemd[1]: Started Apply cpupower configuration.

GHz

Don't work, the cores keep running at 2.0GHz.
(same for a single core.)

you're on the right way, now let's see what settings are avaiable with 'cpupower frequency-info'
post the output.
with 'sudo cpupower frequency-set -g performance' you'll set it up to max. with 'sudo cpupower frequency-set -g powersave' you'll redirect to energy safing mode.

2 Likes

Before

[admin@inspiron3585 ~]$ 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: 1.60 GHz - 2.00 GHz
  available frequency steps:  2.00 GHz, 1.70 GHz, 1.60 GHz
  available cpufreq governors: performance schedutil
  current policy: frequency should be within 1.60 GHz and 2.00 GHz.
                  The governor "schedutil" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 1.43 GHz (asserted by call to kernel)
  boost state support:
    Supported: no
    Active: no

Then (with 'sudo cpupower frequency-set -g performance')

[admin@inspiron3585 ~]$ 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: 1.60 GHz - 2.00 GHz
  available frequency steps:  2.00 GHz, 1.70 GHz, 1.60 GHz
  available cpufreq governors: performance schedutil
  current policy: frequency should be within 1.60 GHz and 2.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.58 GHz (asserted by call to kernel)
  boost state support:
    Supported: no
    Active: no

Now I see that it says 2.58Ghz! That's good!

open a terminal, use 'watch grep "cpu MHz" /proc/cpuinfo' to check the speed periodical, open some powerconsumpting software and you'll see that it will boost to max. that should be fixed now.

3 Likes

Yes, the cores now reach 3.0GHz and beyond.
Problem Solved, thank you so much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by