Processors
Intel® Processors, Tools, and Utilities
14793 Discussions

Raptor Lake CPU Performance Scaling in Linux/Ubuntu/Mint

texen
Beginner
3,255 Views

I have a i5-13600K and am running Linux Mint21. I am having difficulty getting cpufrequtils and performance scaling to work properly.

CPU scaling appears to work normally with the  5.15.0-57-generic kernel but the 3d graphics isn't working.

The 6.0.0-1010-oem and 6.1.0-1004-oem kernels have the 3d graphic working fine but the scaling doesn't seem to work properly. The cur_freq generally is running at the base or max frequency even during idle cpu conditions.

The following shows the 0 P core and the 9 e core status

/sys/devices/system/cpu/cpu0/cpufreq/affected_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/base_frequency:3500000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:3500000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:800000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency:0
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference:balance_performance
/sys/devices/system/cpu/cpu0/cpufreq/related_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:3200000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:3200000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed:<unsupported>

/sys/devices/system/cpu/cpu9/cpufreq/affected_cpus:9
/sys/devices/system/cpu/cpu9/cpufreq/base_frequency:2600000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_max_freq:2600000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_transition_latency:0
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_preference:balance_performance
/sys/devices/system/cpu/cpu9/cpufreq/related_cpus:9
/sys/devices/system/cpu/cpu9/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_cur_freq:2599222
/sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu9/cpufreq/scaling_governor:powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq:2600000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_setspeed:<unsupported>

 

I had heard that Raptor Lake support would be good in the 6.1 kernel .. maybe I am using the wrong one? Anyone have any insight on this? I believe in the above environment I am setting max cpufreq with cpufrequtils at 3200 and the min cpu freq at 800.

0 Kudos
7 Replies
Steven_Intel
Moderator
3,222 Views

Hello texen,


Thank you for posting on the Intel® communities.


I am going to review more about this and get back to you as soon as possible.


Best regards,


Steven G.

Intel Customer Support Technician.


0 Kudos
texen
Beginner
3,201 Views

Some additional clarification -- In the system BIOS I have disabled 2 P cores and disabled turbo boost and set P Core max freq =3500 Mhz E core max freq = 2600Mhz

/etc/default/cpufrequtils specifies

ENABLE="true"
GOVERNOR="powersave"
MAX_SPEED="3200000"
MIN_SPEED="800000"

I run the following cpufreq program to check cpu freq every 5 secs in idle state for 10 cycles

#!/bin/bash
grep . /sys/devices/system/cpu/cpu0/cpufreq/*
echo " "
grep . /sys/devices/system/cpu/cpu9/cpufreq/*

echo `date`
for j in `seq 0 9`; do
{
read -t 5 -p $j
echo " Loop $j"
freq=0
for i in `seq 0 15` ; do let freq=$(grep . /sys/devices/system/cpu/cpu$i/cpufreq/scaling_cur_freq); echo "$i $freq "; done
} done
echo `date`

 

This is the results of the cpufreq program in the 6.1.0-1004-oem and the 5.15.0-57 kernel.

notice the much higher freq of the 6.1 kernel and the e cores are actually exceeding 2600Mhz!

kernel 6.1
cpufreq_info.sh
/sys/devices/system/cpu/cpu0/cpufreq/affected_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/base_frequency:3500000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:3500000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:800000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency:0
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference:power
/sys/devices/system/cpu/cpu0/cpufreq/related_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:1100170
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:3200000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed:<unsupported>

/sys/devices/system/cpu/cpu9/cpufreq/affected_cpus:9
/sys/devices/system/cpu/cpu9/cpufreq/base_frequency:2600000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_max_freq:2600000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_transition_latency:0
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_preference:power
/sys/devices/system/cpu/cpu9/cpufreq/related_cpus:9
/sys/devices/system/cpu/cpu9/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_cur_freq:3500000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu9/cpufreq/scaling_governor:powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq:2600000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_setspeed:<unsupported>
Wed Jan 18 05:41:27 PM CST 2023
0 Loop 0
0 3500000
1 3500000
2 1100034
3 3500000
4 1100039
5 3500000
6 1100029
7 3500000
8 799468
9 799588
10 3500000
11 3500000
12 3500000
13 3500000
14 3500000
15 3500000
1 Loop 1
0 1100047
1 3500000
2 1100054
3 3500000
4 3500000
5 1100070
6 1100057
7 1102001
8 3500000
9 799840
10 3500000
11 3500000
12 3500000
13 3500000
14 3500000
15 3500000
2 Loop 2
0 1100026
1 3500000
2 1100364
3 3500000
4 3500000
5 1100419
6 1100022
7 3500000
8 799800
9 3500000
10 3500000
11 799832
12 3500000
13 3500000
14 3500000
15 3500000
3 Loop 3
0 1070170
1 3500000
2 1100005
3 3500000
4 1100020
5 3500000
6 1100043
7 3500000
8 799900
9 3500000
10 799739
11 3500000
12 3500000
13 3500000
14 3500000
15 3500000
4 Loop 4
0 1100010
1 3500000
2 1100017
3 3500000
4 1100344
5 3500000
6 1100000
7 3500000
8 799617
9 3500000
10 3500000
11 3500000
12 3500000
13 3500000
14 3500000
15 3500000
5 Loop 5
0 1100023
1 3500000
2 1100008
3 3500000
4 1100063
5 3500000
6 1100045
7 3500000
8 3500000
9 799933
10 3500000
11 3500000
12 3500000
13 3500000
14 3500000
15 3500000
6 Loop 6
0 1100017
1 3500000
2 3500000
3 1100016
4 1100000
5 3500000
6 1100033
7 3500000
8 800151
9 3500000
10 3500000
11 3500000
12 3500000
13 3500000
14 800033
15 3500000
7 Loop 7
0 3500000
1 3500000
2 1100008
3 3500000
4 1100019
5 3500000
6 1100033
7 3500000
8 3500000
9 800096
10 3500000
11 3500000
12 3500000
13 3500000
14 800384
15 3500000
8 Loop 8
0 3500000
1 3500000
2 1100073
3 3500000
4 1100015
5 3500000
6 1100020
7 3500000
8 802828
9 3500000
10 3500000
11 3500000
12 3500000
13 3500000
14 800215
15 3500000
9 Loop 9
0 1100067
1 3500000
2 1100000
3 3500000
4 1100039
5 3500000
6 1100060
7 3500000
8 3500000
9 800000
10 3500000
11 3500000
12 3500000
13 3500000
14 799491
15 800093
Wed Jan 18 05:42:17 PM CST 2023

kernel 5.15.0-57
/sys/devices/system/cpu/cpu0/cpufreq/affected_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/base_frequency:2600000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:2600000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:800000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency:0
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference:power
/sys/devices/system/cpu/cpu0/cpufreq/related_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:1093944
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:2600000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed:<unsupported>

/sys/devices/system/cpu/cpu9/cpufreq/affected_cpus:9
/sys/devices/system/cpu/cpu9/cpufreq/base_frequency:2600000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_max_freq:2600000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/cpuinfo_transition_latency:0
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_available_preferences:default performance balance_performance balance_power power
/sys/devices/system/cpu/cpu9/cpufreq/energy_performance_preference:power
/sys/devices/system/cpu/cpu9/cpufreq/related_cpus:9
/sys/devices/system/cpu/cpu9/cpufreq/scaling_available_governors:performance powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_cur_freq:900052
/sys/devices/system/cpu/cpu9/cpufreq/scaling_driver:intel_pstate
/sys/devices/system/cpu/cpu9/cpufreq/scaling_governor:powersave
/sys/devices/system/cpu/cpu9/cpufreq/scaling_max_freq:2600000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_min_freq:800000
/sys/devices/system/cpu/cpu9/cpufreq/scaling_setspeed:<unsupported>
Thu Jan 19 07:46:05 PM CST 2023
0 Loop 0
0 1094307
1 1101083
2 1100055
3 1100672
4 1094365
5 1098951
6 1097575
7 1101593
8 900008
9 901344
10 899494
11 899944
12 900000
13 900085
14 899949
15 900000
1 Loop 1
0 1100011
1 1101151
2 1100066
3 1100109
4 1100014
5 1100770
6 1098738
7 1100881
8 899995
9 899653
10 899253
11 899899
12 900023
13 899827
14 899957
15 899915
2 Loop 2
0 1100012
1 1101615
2 1100066
3 1100084
4 1100041
5 1101779
6 1099042
7 1100902
8 900033
9 900434
10 900491
11 899247
12 899511
13 901230
14 900035
15 900952
3 Loop 3
0 1100014
1 1100964
2 1100034
3 1101175
4 1100016
5 1101702
6 1099816
7 1096968
8 900024
9 898932
10 899931
11 899763
12 900684
13 899968
14 899805
15 899411
4 Loop 4
0 1094399
1 1101087
2 1096194
3 1103426
4 1100014
5 1100053
6 1100011
7 1100129
8 900010
9 899246
10 899302
11 899993
12 898506
13 899435
14 899250
15 900492
5 Loop 5
0 1100011
1 1101215
2 1099060
3 1100603
4 1100016
5 1101214
6 1100015
7 1100076
8 900010
9 900026
10 899856
11 900244
12 899846
13 899759
14 899952
15 900029
6 Loop 6
0 1060126
1 1101729
2 1099807
3 1100071
4 1100010
5 1100042
6 1100020
7 1100747
8 900032
9 899299
10 900198
11 900103
12 901895
13 899872
14 897970
15 900587
7 Loop 7
0 1090553
1 1099082
2 1100029
3 1100838
4 1100023
5 1101654
6 1100024
7 1100927
8 899991
9 899969
10 900146
11 900081
12 899676
13 899970
14 900388
15 899861
8 Loop 8
0 1100053
1 1101128
2 1100010
3 1100042
4 1100027
5 1101984
6 1100026
7 1102397
8 899983
9 899520
10 901363
11 899874
12 898391
13 901206
14 899981
15 900015
9 Loop 9
0 1100048
1 1101273
2 1099352
3 1101000
4 1100003
5 1101153
6 1100031
7 1101042
8 899848
9 900234
10 900125
11 900024
12 900228
13 899643
14 899901
15 899963
Thu Jan 19 07:46:55 PM CST 2023

 

 

 

0 Kudos
Steven_Intel
Moderator
3,142 Views

Hello texen,


In order to continue with the assistance, please download the Intel® System Support Utility for Linux (https://www.intel.com/content/www/us/en/download/18895/intel-system-support-utility-for-the-linux-operating-system.html) and attach the file to your reply.


Best regards,


Steven G.

Intel Customer Support Technician.


0 Kudos
texen
Beginner
3,132 Views

Here you go Steven ..

This product is not supported on this operating system.
Would you like to try to scan? (y/n)

y

attached is the output

0 Kudos
Steven_Intel
Moderator
3,118 Views

Many thanks for your response.


I will keep working on this and get back to you once I have an update.


Best regards,


Steven G.

Intel Customer Support Technician.


0 Kudos
Steven_Intel
Moderator
3,061 Views

Hello texen,


Thank you for your patience on this matter.


Since this issue only occurs on some specific kernels, it means this is not a CPU issue, but a Kernel/Linux issue. Our best recommendation is to go to the Linux forums/communities and get further assistance/information.


Please keep in mind that this thread will no longer be monitored by Intel. Thank you for your understanding.  


Best regards,


Steven G.

Intel Customer Support Technician.


0 Kudos
texen
Beginner
3,002 Views

So you are saying Intel does not write linux kernel code to support it's processors? News to me.

 

The reason I am submitting this issue here is I did not find any thing relevant in other Linux forums/communities.

 

But if this is of no interest to Intel to improve it's processor support in Linux well good luck with that...

0 Kudos
Reply