You are not logged in.
I'm trying to set appropriate frequency for the processor to avoid overheating...
Processor rate is 800... 3500MHz
I've managed to set 2600MHz and lower using cpupower... But I'd like to get 3100MHz...
I can set turbo boost off as well, but I don't need it...
Please any suggestions
Offline
The ArchWiki describes a manual method here and also shows how to check the valid frequency range. https://wiki.archlinux.org/title/CPU_fr … _permanent may also be useful.
Jin, Jiyan, Azadî
Offline
The ArchWiki describes a manual method here and also shows how to check the valid frequency range. https://wiki.archlinux.org/title/CPU_fr … _permanent may also be useful.
fallowing these articles I counted with a problem
if I put this command into terminal
cpupower frequency-set -u 3.10GHz I just get 3.5GHz instead I wanted
but if it'll be cpupower frequency-set -u 2.6GHz everything work well
there is an output of cpupower frequency-info command
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us
hardware limits: 800 MHz - 3.50 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 800 MHz and 3.50 GHz.
The governor "conservative" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 804 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
what should I do to get the result that I need???
Offline
I know nothing about cpupower and I can't be bothered finding out about it just for you.
What does this say
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies
And please read the links I supplied.
Jin, Jiyan, Azadî
Offline
I know nothing about cpupower and I can't be bothered finding out about it just for you.
What does this say
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies
And please read the links I supplied.
did you mean cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq ???
it's
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000
Last edited by sergik82 (2021-12-14 19:28:46)
Offline
Head_on_a_Stick wrote:I know nothing about cpupower and I can't be bothered finding out about it just for you.
What does this say
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies
And please read the links I supplied.
did you mean cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq ???
it's
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000
because ls /sys/devices/system/cpu/cpu0/cpufreq/
affected_cpus cpuinfo_transition_latency scaling_cur_freq scaling_max_freq
cpuinfo_max_freq related_cpus scaling_driver scaling_min_freq
cpuinfo_min_freq scaling_available_governors scaling_governor scaling_setspeed
Offline
So can you write the desired value directly into /sys/?
# tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!
Jin, Jiyan, Azadî
Offline
So can you write the desired value directly into /sys/?
# tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<! 3100000 !
I got this message tee 3100000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
bash: /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq: ambiguous redirect
Offline
Why not try what I actually posted?
Jin, Jiyan, Azadî
Offline
Why not try what I actually posted?
ok have a look
tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!
3100000
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
3500000
Last edited by sergik82 (2021-12-14 19:49:03)
Offline
But scaling_max_freq has actually changed?
Can you write 3100000 into cpuinfo_max_freq?
Jin, Jiyan, Azadî
Offline
But scaling_max_freq has actually changed?
Can you write 3100000 into cpuinfo_max_freq?
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000
Offline
But scaling_max_freq has actually changed?
Can you write 3100000 into cpuinfo_max_freq?
unfortunately there's no effect!!!
Offline
Are there any errors or other output when you try? How do you know there's no effect? What was the exact command you used?
Remember: verbatim terminal content is always better than vague descriptions. And please use code tags for said content, it improves readability.
Jin, Jiyan, Azadî
Offline
Are there any errors or other output when you try? How do you know there's no effect? What was the exact command you used?
Remember: verbatim terminal content is always better than vague descriptions. And please use code tags for said content, it improves readability.
I used command that you asked me such as
tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!
as well as
cpupower frequency-set -u 3.10GHz
and I showed you an output of
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
Last edited by sergik82 (2021-12-14 21:03:27)
Offline
So try
# tee /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq <<!
3100000
!
What does that do? If the value is unsupported I think you'll see "Permission denied".
Jin, Jiyan, Azadî
Offline
So try
# tee /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq <<! 3100000 !
What does that do? If the value is unsupported I think you'll see "Permission denied".
I did it... Can show you again
# tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq <<!
3100000
!
3100000
# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
3500000
3500000
3500000
3500000
3500000
3500000
3500000
3500000
Offline
it seems the value is not saving by some reasons...
Offline
I did it...
No, you didn't. Read my last post again please. Slowly this time.
EDIT: and please stop full-quoting unnecessarily, it makes the thread harder to read.
Last edited by Head_on_a_Stick (2021-12-14 21:11:47)
Jin, Jiyan, Azadî
Offline
I did not get any errors... I did as root user...
Last edited by sergik82 (2021-12-14 21:36:44)
Offline
Sorry you were rigth
output is
tee: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu5/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu6/cpufreq/cpuinfo_max_freq: Permission denied
tee: /sys/devices/system/cpu/cpu7/cpufreq/cpuinfo_max_freq: Permission denied
3100000
Offline
So why does this happen?
Offline
Because 3.1GHz is not a supported setting.
Last edited by Head_on_a_Stick (2021-12-15 05:58:15)
Jin, Jiyan, Azadî
Offline
How can I know what settings available???
Offline
Try
# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies
(tee gave permission error)
Last edited by Lone_Wolf (2021-12-15 11:43:42)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline