LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-10-2019, 02:58 AM   #1
YehudaSinger
Member
 
Registered: Jun 2013
Posts: 30

Rep: Reputation: Disabled
Reducing the clock speed


Dear Sir/Mrs.

We use the systems of the processor i7 CPU, 4.001GHz, 4 cores: 4 threads, 4 hyper threads.
We run programs that utilize the multi-core 8 cores nearly 100%. We want to dynamically control the clock frequency. We saw that the folder/sys/devices/system/cpu/
holds for each CPU the frequencies. We saw also that each CPU. cpu0/cpufreqthe max_freq and min_freq are set to the same value 4100000(4.1GHz).

We have a UBUNTU and Red-Hat Enterprise Linux computers.
Our questions:
1. What is the lowest frequency that can be set to min_freq?
2. We want to control dynamically these values, while we run our application not as a super user/root?
3. Can we edit the file /sys/devices/system/cpu/cpu0/cpufreqthe max_freq?

Best regards,
Yehuda
 
Old 04-10-2019, 08:37 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I posted a few scripts on cpu governing in this thread a moment ago, feel free to look at them and decide if they can help you too.

https://www.linuxquestions.org/quest...at-4175651885/
 
Old 04-24-2019, 08:33 AM   #3
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Depends if you use a frequency-scaling software, most prominently cpupower or cpufreq. These will overwrite and use info in /sys.

Both those have a function called "info", which shows available frequencies and max and minimum. This information is gathered from /sys/devices/system/cpu, specifically in your case /sys/devices/system/cpu/cpuX/cpufreq/. <-- symlink to /sys/devices/system/cpu/cpufreq/policyX/.

You can edit things through /sys, yes.

Last edited by zeebra; 04-24-2019 at 08:46 AM.
 
1 members found this post helpful.
  


Reply

Tags
kernel 2.6.37.6



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reducing the Nic transmission speed between two Servers Linux Duke Linux - Server 3 05-10-2012 09:47 AM
How Can I Speed Up Ubuntu Without Reducing Movie Quality ?? taurusx5 Linux - Software 2 07-31-2008 02:43 PM
Processor clock speed vs. CPU speed moxieman99 Linux - General 4 06-24-2005 10:43 AM
Dot Clock / Pixel Clock Freaksta Linux - Hardware 1 05-05-2004 08:21 PM
system clock vs. CMOS clock dtamajka Linux - General 7 12-11-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration