LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Manjaro (https://www.linuxquestions.org/questions/manjaro-119/)
-   -   CPUFREQ ondemand governor settings? (https://www.linuxquestions.org/questions/manjaro-119/cpufreq-ondemand-governor-settings-4175696913/)

dasy2k1 06-25-2021 04:39 PM

CPUFREQ ondemand governor settings?
 
Hi there,

im looking for the ondemand governer settings for the cpu frequency stepping as i want to set the ignore_nice_load setting to 1 to stop boinc from keeping the cpu in max freq and making my cooler sound like a C17 taking off!

using acpi-cpufreq as my kernel module with a AMD Ryzen 5 3400G (for now until GPUs stop being made from solid
unobtainium)

I would have expected to find them at /sys/devices/system/cpu/cpufreq/ondemand but that folder dosn't even exist (i just have Policy0, Policy1 through Policy7 folders in the cpufreq directory above.)

any idea where this setting may hide now?

teckk 06-30-2021 10:01 AM

You want to lower the frequency that the cpu runs at?
Look at cpupower. I use it.

It's in the arch repo. I'll let you run Manjaro.

https://wiki.archlinux.org/title/CPU_frequency_scaling
https://archlinux.org/packages/commu...6_64/cpupower/

ondoho 07-01-2021 03:59 AM

I'd rather try to limit boinc.

I haven't had to mess with CPU frequency settings for years.

dasy2k1 07-07-2021 01:36 PM

Quote:

Originally Posted by ondoho (Post 6262920)
I'd rather try to limit boinc.

I haven't had to mess with CPU frequency settings for years.

yeh Boinc by its nature uses all your spare CPU cycles for grid research projects

what i want to do is allow it to do this but not to throttle up the processor to achieve this:
it runs its jobs with nice level 19 and automatically shuts off when the non boinc load is greater than 20% but dosnst have any way of changing the CPU governer

ondoho 07-08-2021 08:53 AM

Quote:

Originally Posted by dasy2k1 (Post 6264759)
yeh Boinc by its nature uses all your spare CPU cycles for grid research projects

what i want to do is allow it to do this but not to throttle up the processor to achieve this:
it runs its jobs with nice level 19 and automatically shuts off when the non boinc load is greater than 20% but dosnst have any way of changing the CPU governer

But you can't throttle the CPU only for BOINC.
Basically what you want is BOINC doing less, so your CPU doesn't get hot. There's no 2 ways about it.
The fan comes on when the CPU gets hot, not when it goes into maximum frequency mode.
Are you sure you read BOINC documentation and are aware of all possible settings that might help you with that???

dasy2k1 07-09-2021 05:26 PM

Quote:

Originally Posted by ondoho (Post 6264961)
But you can't throttle the CPU only for BOINC.
Basically what you want is BOINC doing less, so your CPU doesn't get hot. There's no 2 ways about it.
The fan comes on when the CPU gets hot, not when it goes into maximum frequency mode.
Are you sure you read BOINC documentation and are aware of all possible settings that might help you with that???



I am aware of this.
I used to run boinc exactly this way for years.
The way it has always worked was setting the CPU to not step up for any process with a nice level greater than 0

The flag I want to find is available on my laptop which currently runs mint.

Under /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load

I just can't find this flag file on manjaro anywhere

ondoho 07-10-2021 02:50 PM

things change...
Try this search.
First result: https://bbs.archlinux.org/viewtopic.php?id=167818

Andy Alt 07-14-2021 12:18 AM

Quote:

Originally Posted by ondoho (Post 6262920)
I'd rather try to limit boinc.

I haven't had to mess with CPU frequency settings for years.

I think cpulimit would be what you want.

ondoho 07-23-2021 02:48 AM

^ Good tip.
But it doesn't change frequencies.
Also IIRC from my superficial glances at the docs, BOINC has this functionality built in mor or less, but OP seems to think it doesn't work, and wants to change frequencies instead. But it's been 2 weeks, I don't really remember anymore. Maybe they'll come back and tell us the solution, or provide further information.

edit:

OP's actual problem seems to be this:
Quote:

Originally Posted by dasy2k1 (Post 6265379)
Under /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load

I just can't find this flag file on manjaro anywhere

Now either the functionality has been removed in newer kernels, or replaced by something else. I have not delved that deep tbh, but extensive kernel documentation exists, and is at OP's disposal.

Even so I maintain that fiddling around with kernel flags to influence the behaviour of a single software is the wrong approach.


All times are GMT -5. The time now is 09:43 AM.