LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2012, 07:58 PM   #16
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by byannoni View Post
Try:
Code:
sudo rmmod speedstep-lib
sudo modprobe p4_clockmod
If that doesn't work, do this:
Code:
sudo /bin/echo "p4_clockmod" >> /etc/modules
sudo reboot
OK, the first set of commands failed with the same error when trying to add p4_clockmod. I can't modify /etc/modules and reboot at this time, because there is other stuff hapening on the box. However, I can asure you that speedstep-lib is not loaded by default on boot. If I want it loaded, I have to manually load it using modprobe. I don't know what is interfering with the loading of p4_clockmod, but it is not speedstep-lib.

Current contents of /etc/modules:

Code:
loop
lp
rtc
Seems like stock Ubuntu server...

Last edited by mgoldshteyn; 08-23-2012 at 07:59 PM.
 
Old 08-23-2012, 07:58 PM   #17
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Oh sorry about that didn't notice.

I've read somewhere that cpufreq isn't that accurate. I would recommend i7z.

Quote:
I don't know what is interfering with the loading of p4_clockmod, but it is not speedstep-lib.
Did you read the link I gave you? It actually recommends using the speedstep modules (which is outdated). Thus, you should use the acpi-cpufreq module, which includes support for Speedstep.

Also, do you have the cpufreq_performance module loaded?

Alex Brinister

Last edited by abrinister; 08-23-2012 at 08:03 PM.
 
Old 08-23-2012, 08:03 PM   #18
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abrinister View Post
Oh sorry about that didn't notice.

I've read somewhere that cpufreq isn't that accurate. I would recommend i7z.
Just installed i7z. Wow, nifty tool! Yep, just as I suspected, the frequencies on both CPUs are jumping all over the place. They are not fixed at 3.6 GHz. So much for the performance governor...
 
Old 08-23-2012, 08:06 PM   #19
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Quote:
ERROR: modinfo: could not find module acpi-cpufreq
What does lsmod say about this?

Code:
lsmod | grep cpufreq
Alex Brinister
 
Old 08-23-2012, 08:31 PM   #20
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abrinister View Post
What does lsmod say about this?

Code:
lsmod | grep cpufreq
Alex Brinister
Nothing matches. It's almost as if it's loaded as a non-module driver or perhaps built right into the kernel if that makes any sense.

With regard to cpufreq_performance, what's that? I can't seem to find that via a google search as a valid module.

Also with regard to the speedstep-lib, I don't have that loaded by default, and it's been removed now thanks to the rmmod command I issued in trying to get the p4-clockmod to load (albeit unsuccessfully).

Last edited by mgoldshteyn; 08-23-2012 at 08:41 PM.
 
Old 08-23-2012, 08:46 PM   #21
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Gentlemen, I ran i7x for a while and I think I may have a clue as to what is happening. It may be the case that the reason the frequency is being lowered from its top speed of 3.6 GHz is because the CPU is entering various C* states. The i7x tool is showing that this is happening, but I didn't know that C states can alter the CPU frequency. Or perhaps I7x (and cpuinfo_cur_freq to some extent) is computing a logical CPU frequency based on the fact that C states are being entered by the CPU cores.

Confirmed! C1E does mess with CPU core multipliers (and voltages for that matter), see: http://techreport.com/articles.x/7998/2

The question now is why would a cpufreq performance governor put the CPU into sleep states as deep as C6? That's poor design if you ask me, especially for a server build of Linux (i.e., Ubuntu Server 12.04 LTS).

I am going to try to disable C1E and any C states I can in the BIOS tomorrow and see what happens. I cannot disable SpeedStep, because the hardware we are using loses Turbo ability if you disable EIST. I know that this is whacked, but I have to live with the BIOS features I'm given by our hardware vendor.

Last edited by mgoldshteyn; 08-23-2012 at 08:57 PM.
 
Old 08-23-2012, 08:56 PM   #22
byannoni
Member
 
Registered: Aug 2012
Location: /home/byannoni
Distribution: Arch
Posts: 128

Rep: Reputation: 36
Quote:
Originally Posted by mgoldshteyn View Post
With regard to cpufreq_performance, what's that? I can't seem to find that via a google search as a valid module.
Each cpufreq governor has a module that is named cpufreq_<governor_name>.
 
Old 08-23-2012, 08:58 PM   #23
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by byannoni View Post
Each cpufreq governor has a module that is named cpufreq_<governor_name>.
And, in fact:

Code:
sudo modprobe cpufreq_performance
..., does succeed. But, sadly there is no change in behavior.
 
Old 08-23-2012, 09:15 PM   #24
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Have you tried powersave? I don't know if this will do anything or not...

Alex Brinister
 
Old 08-23-2012, 09:46 PM   #25
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by abrinister View Post
Have you tried powersave? I don't know if this will do anything or not...

Alex Brinister
I am unable to get the package for Ubuntu, for some reason (e.g., sudo apt-get install powersaved and also tried sudo apt-get install powersave, both errored with E: Unable to locate package).

So, I tried downloading and building powersave 0.15.20, but after installing all of the dependencies that it needs and finally successfully running configure, I get build errors that I cannot resolve:

Code:
...
make[2]: Entering directory `/home/mgoldshteyn/powersave-0.15.20/daemon'
g++ -DHAVE_CONFIG_H -I. -I..  -I../libpower -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include   -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -DBIN_DIR=\""/usr/local/bin"\" -DCONFIG_DIR=\""/usr/local/etc/powersave"\" -DSCRIPT_DIR=\""/usr/local/libexec/powersave"\" -DPUB_SCRIPT_DIR=\""/usr/local/libexec/powersave/scripts"\" -DKDE_BINDIR=\""/opt/kde3/bin"\" -DGNOME_BINDIR=\""/opt/gnome/bin"\"  -Wall  -DPOWERSAVE_DEBUG -DUSE_SYSLOG -g -O2 -MT acpi.o -MD -MP -MF .deps/acpi.Tpo -c -o acpi.o acpi.cpp
acpi.cpp: In member function âvirtual int ACPI_Interface::openHWEventFD()â:
acpi.cpp:85:46: error: no matching function for call to âstat::stat(const char*, stat*)â
acpi.cpp:85:46: note: candidates are:
/usr/include/x86_64-linux-gnu/bits/stat.h:46:8: note: stat::stat()
/usr/include/x86_64-linux-gnu/bits/stat.h:46:8: note:   candidate expects 0 arguments, 2 provided
/usr/include/x86_64-linux-gnu/bits/stat.h:46:8: note: stat::stat(const stat&)
/usr/include/x86_64-linux-gnu/bits/stat.h:46:8: note:   candidate expects 1 argument, 2 provided
acpi.cpp:89:33: error: âS_ISSOCKâ was not declared in this scope
acpi.cpp:95:39: error: âS_ISREGâ was not declared in this scope
acpi.cpp: In member function âvirtual int ACPI_Interface::handleHWEventRequest(int)â:
acpi.cpp:191:82: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
acpi.cpp:191:82: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
acpi.cpp:197:75: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
make[2]: *** [acpi.o] Error 1
make[2]: Leaving directory `/home/mgoldshteyn/powersave-0.15.20/daemon'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mgoldshteyn/powersave-0.15.20'
make: *** [all] Error 2

Last edited by mgoldshteyn; 08-23-2012 at 09:51 PM.
 
Old 08-23-2012, 09:53 PM   #26
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Here's the deb file....

Alex Brinister
 
Old 08-24-2012, 08:49 AM   #27
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
or look at cpu load and frequency together like this:


mjs@blkjack:~/hpcs$ collectl --import misc -sc
waiting for 1 second sample...
#<--------CPU--------><------Misc------>
#cpu sys inter ctxsw UTim MHz MT Log
3 1 2600 3358 0 1596 0 1
2 1 2443 3305 0 1596 0 1

-mark
 
Old 08-24-2012, 08:55 AM   #28
mgoldshteyn
LQ Newbie
 
Registered: Aug 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markseger View Post
or look at cpu load and frequency together like this:


mjs@blkjack:~/hpcs$ collectl --import misc -sc
waiting for 1 second sample...
#<--------CPU--------><------Misc------>
#cpu sys inter ctxsw UTim MHz MT Log
3 1 2600 3358 0 1596 0 1
2 1 2443 3305 0 1596 0 1

-mark
On my hardware, collectl misreports the frequency (MHz) as 3601, even under powerschemes where the frequency is clearly moving between the low and high (with nothing running on the box).
 
Old 08-25-2012, 08:11 AM   #29
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
Quote:
Originally Posted by mgoldshteyn View Post
On my hardware, collectl misreports the frequency (MHz) as 3601, even under powerschemes where the frequency is clearly moving between the low and high (with nothing running on the box).
bummer. that means the contents of /proc/cpuinfo must be wrong. I've certainly seen/reported kernel problems in the past as they're not unknown.
-mark
 
  


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
cpufreq directory not present. How to change governor for P states in such a case kashyapa Linux - General 7 11-03-2009 02:58 PM
cpufreq directory not present. How to change governor for P states in such a case kashyapa Programming 1 10-29-2009 08:27 AM
Default cpufreq governor not according to kernel config?! Olaus Slackware 7 09-23-2009 02:08 AM
cpufreq governor problems on Thinkpad T21 dive Linux - Kernel 2 07-11-2008 04:25 PM
anyone know how to setup 'ondemand' governor with cpufreq ? -=Graz=- Ubuntu 3 05-15-2006 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:16 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