LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-15-2015, 03:41 AM   #16
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231

Quote:
Originally Posted by veerain View Post
Wrong I have this cpu and all governors work all right with cpufreq.

Intel pstate is new driver for Intel CPU's and it is an enhancement and works better.
I guess moesasji is right. my laptop cpu is 3610 Ivybridge and it's seems it doesn't support ondemand and conservative governors as I modprobed "conservative",
Code:
cpufreq -set cpu 0 --governor conservative
return an error about lacking this governor (sorry I didn't exactly remember what was that error). also
Code:
echo "ondemand" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
returns error.
anyway theoretically powersave governor must be less resource hungry and lead to cooler system, am I right?

Last edited by travis82; 06-15-2015 at 04:42 AM.
 
Old 06-15-2015, 04:02 AM   #17
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
cpufreq does what it does by reading/writing in /sys/devices/system/cpu/cpu*/cpufreq/
so they are the same thing

what does cpufreq-info say about available governors ?
are you using the 14.1 standard kernel ?

pstate is used for newer intel in kernel 3.9
arch wiki says some things https://wiki.archlinux.org/index.php...equency_driver
most important power saving on modern cpus is turning off turbo boost

pstate is also a weird thing
it is developed by intel for intel cpus and i still read a lot of "pstate ***** fixed in kernel ?.??"
so maybe try just upgrading the kernel

PS
pstate does more then just frequency scaling
it's basically ACPI C states plus whatever hack intel came up with

"anyway theoretically powersave governor must be less resource hungry and lead to cooler system, am I right?"
yes and no
if the core is idle for a while it can be shut down
so at a higher frequency work can be done faster and the core can be shut down more of the time
in theory

Last edited by genss; 06-15-2015 at 04:04 AM.
 
1 members found this post helpful.
Old 06-15-2015, 11:24 PM   #18
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
please have a look at this
Code:
[root@darkstar:~] # cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.30 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.30 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 1.73 GHz (asserted by call to hardware).
.
.
.
.
analyzing CPU 7:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 7
  CPUs which need to have their frequency coordinated by software: 7
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.30 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.30 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency is 1.73 GHz (asserted by call to hardware).
[root@darkstar:~] # modprobe cpufreq_conservative
[root@darkstar:~] # cpufreq-set --cpu 0 --governor conservative
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
   for example because of hardware which cannot be set to a specific frequency
   or because the userspace governor isn't loaded?
[root@darkstar:~] # echo "conservative" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
bash: echo: write error: Invalid argument
@genss
I have same governors and same errors in debian jessie (kernel 3.16.7) so I don't think it is about kernel version

@reaperX7
I don't use nvidia chipset at all. intel 4000HD chipset can handel all of my works flawlessly.

Last edited by travis82; 06-15-2015 at 11:35 PM.
 
Old 06-16-2015, 12:37 AM   #19
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Please note the red text.

Quote:
Originally Posted by travis82 View Post
please have a look at this
Code:
analyzing CPU 0:
  driver: intel_pstate
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 0.97 ms.
  hardware limits: 1.20 GHz - 3.30 GHz
  available cpufreq governors: performance, powersave
  current policy: frequency should be within 1.20 GHz and 3.30 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
With my meager knowledge of the topic, I can only assume that the governor is not loaded, not compiled into the kernel or not compiled as a module.

You should provide the output of the following commands so that we will all know what kernel, what kernel modules, what kernel config options you have for CPU FREQ, and the processor your Slackware system is running.

Code:
~# lsmod | grep cpu
~# uname -a
~# grep FREQ /boot/config-`uname -r`
~# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
~# cat /proc/cpuinfo
What is happening on your Debian system is irrelevant. I assume that since you are posting to the Slackware forums, we are here to troubleshoot a Slackware system.
Quote:
I have same governors and same errors in debian jessie (kernel 3.16.7) so I don't think it is about kernel version
If you are using a custom kernel you compiled from source, please review the following link, and make sure you have the appropriate options enabled in your kernel to allow cpu-freq features to be available: http://docs.slackware.com/howtos:har...g_requirements
 
Old 06-16-2015, 02:24 AM   #20
moesasji
Member
 
Registered: May 2008
Distribution: Slackware Current / OpenBSD
Posts: 322

Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by mralk3 View Post
Please note the red text.
With my meager knowledge of the topic, I can only assume that the governor is not loaded, not compiled into the kernel or not compiled as a module.
As I said before in this topic. This is a Sandybridge+ CPU that uses the new intel_p state driver. Those CPU's do not support the ondemand governor and hence it isn't possible to use that one. Powersave is the default one to use from the two it supports. Check the docs for intel_p please.
 
Old 06-16-2015, 02:25 AM   #21
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Code:
~# lsmod | grep cpu
~# uname -a
~# grep FREQ /boot/config-`uname -r`
~# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
~# cat /proc/cpuinfo
Ok, I will check these tonight and report the results.

Quote:
What is happening on your Debian system is irrelevant. I assume that since you are posting to the Slackware forums, we are here to troubleshoot a Slackware system.
I know that. I just wanted to say there is no difference between two different kernel versions (generic 3.10.17 in slackware and 3.16.7 in debian).

Last edited by travis82; 06-16-2015 at 02:29 AM.
 
Old 06-16-2015, 04:07 AM   #22
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
k so
i dont have an intel, so i did some digging

pstate-s powersave is what you want
maybe
if it is causing problems you can try ondemand

now you can't switch to ondemand with intel_pstate so it has to be disabled at boot
to do that you have to add "intel_pstate=disable" to the kernel command line

to do that you either add it at boot by pressing [TAB] when lilo shows up then type "name_of_kernel intel_pstate=disable"
(was a while since i used it, but its something like that)
or to do it permanently open /etc/lilo.conf and add " intel_pstate=disable" to the append= option, then run lilo (note the space)

when pstate is disabled you can try ondemand again
idk if it will behave properly, so look at what powertop say
(tab to "idle stats", C2 is where the cpu should spend most of its time)

bdw
powertop is good for checking what the cpu does power-wise
pstate also has options/information in /sys/devices/system/cpu/intel_pstate/, so cd there and cat around
i dont have an intel to check this things, so idk
remember C1 means lower frequency, C2 shuts down cores
gl

Last edited by genss; 06-16-2015 at 04:08 AM.
 
1 members found this post helpful.
Old 06-17-2015, 05:10 AM   #23
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
now you can't switch to ondemand with intel_pstate so it has to be disabled at boot
to do that you have to add "intel_pstate=disable" to the kernel command line

to do that you either add it at boot by pressing [TAB] when lilo shows up then type "name_of_kernel intel_pstate=disable"
By pressing tab I just can choose between huge and generic kernel. and can't add a command at all.

Quote:
or to do it permanently open /etc/lilo.conf and add " intel_pstate=disable" to the append= option, then run lilo (note the space)
I did. lilo warns about invalid parameter or something like that.

anyway. using xfce-cpufreq plugin I found that moesasji is right and I am somewhat impatient concerning laptop heat and decided to trust intel-pstate. thank you all for helping and providing great information about topic. by this thread I learnt a lot of useful things about my system.
 
Old 06-22-2015, 03:22 PM   #24
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
One thing you may want to check is the actual laptop hardware. Over time, the laptop's fan will cause a build up of dust, hair, lint, etc in the heatsink. This can cause increased temperatures on something that shouldn't cause it (or it can cause them to remain high after the load is no longer on the CPU). I've cleaned many a laptop that sounded like a jet engine taking off before all the gunk was removed.

It isn't always the fix, but it's a good idea to check it anyway. You can try just using some canned air to blow it out, but your best bet is to take apart the laptop and clean it manually (some laptops have a panel over the heatsink that is easily removeable, but those seem to be pretty rare and most laptops you need to take out a lot of screws and usually the keyboard).
 
Old 06-24-2015, 02:28 AM   #25
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by bassmadrigal View Post
One thing you may want to check is the actual laptop hardware. Over time, the laptop's fan will cause a build up of dust, hair, lint, etc in the heatsink. This can cause increased temperatures on something that shouldn't cause it (or it can cause them to remain high after the load is no longer on the CPU). I've cleaned many a laptop that sounded like a jet engine taking off before all the gunk was removed.

It isn't always the fix, but it's a good idea to check it anyway. You can try just using some canned air to blow it out, but your best bet is to take apart the laptop and clean it manually (some laptops have a panel over the heatsink that is easily removeable, but those seem to be pretty rare and most laptops you need to take out a lot of screws and usually the keyboard).
Thanks for your advise, I use some kind of nano-technological cooling pad beneath my laptop. but Since Iranian carpets can act as a source of warp and woof, perhaps it's better to take apart and clean it.

PS I am still curious about disabling pstate.
 
Old 06-24-2015, 03:33 AM   #26
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by travis82 View Post
Since Iranian carpets can act as a source of warp and woof...
Maybe this one? I've found it here.
Attached Thumbnails
Click image for larger version

Name:	1024px-Vasnetsov_samolet.jpg
Views:	20
Size:	129.8 KB
ID:	18791  
 
Old 06-24-2015, 03:53 AM   #27
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Original Poster
Rep: Reputation: 231Reputation: 231Reputation: 231
Thumbs up

Quote:
Originally Posted by Didier Spaier View Post
Maybe this one? I've found it here.
So funny.
 
  


Reply



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
[SOLVED] laptop heating problem as it shutdowns after using for 45mints - 1hrt DISCOVER VISHWA Linux - Hardware 10 09-03-2011 10:31 PM
CPU Heating problem! cb951303 Linux - Hardware 2 01-25-2004 04:07 PM
Heating Problem Config Linux - Hardware 2 01-05-2003 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:13 AM.

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