LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-29-2012, 04:14 PM   #1
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225
Blog Entries: 8

Rep: Reputation: 50
Overclocked CPU using P-States: is Linux running it at the overclocked frequency?


Hello, I have an ASUS P8Z77-V motherboard with an i7 3770k. I overclocked the CPU in the BIOS utilizing P states to get it up to 4.4 GHz. In Windows, normally it runs at 3.5GHz but under load it revs up to 4.4 (CPU-Z). Running cat /proc/cpuinfo while ripping a DVD with Handbrake, Linux reports that it only hits 3.5 GHz maximum.

In the kernel I enabled the acpi-cpufreq module for Intel SpeedStep and I set the CPU frequency scaling governor to userspace, but when I try to set the maximum CPU frequency to 4.4 GHz the file reverts back to 3.5 GHz. Same thing happens when I try to set the current CPU frequency.

I installed i7z and it is also reporting the CPU running at 3.5 GHz.

As a final test, I launched Windows 7 in a Virtualbox instance, installed CPU-Z, and it also reported a maximum speed of 3.5 GHz.

How can I be sure if Linux is utilizing my overclocked CPU to its full potential? Thanks.
 
Old 08-29-2012, 05:19 PM   #2
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Have you tried cpupower? It's the replacement for cpufreq-utils. More Gentoo info here.

Alex Brinister
 
Old 08-29-2012, 05:27 PM   #3
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225

Original Poster
Blog Entries: 8

Rep: Reputation: 50
I had assumed that i7z would give me accurate processor frequency data but I'll try this as well. Thanks.
 
Old 08-29-2012, 05:31 PM   #4
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
I did too (when I first started using i7z). Turns out, I had to use cpupower to actually set the correct frequency and then i7z would give me the correct value. I could not do this in my BIOS because it has no support. I'm stuck with userspace tools :/.

Alex Brinister
 
Old 08-29-2012, 08:30 PM   #5
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo, FreeBSD
Posts: 225

Original Poster
Blog Entries: 8

Rep: Reputation: 50
Thank you, it works! I used cpufrequtils since it was already in the repo, ran this:

for i in {0..7}; do cpufreq-set -c $i -u 4.4GHz; done

and noticed that all cores in i7z are now hitting the max multiplier of 44 when I rip a movie with Handbrake.

EDIT:
after creating a script to run this at boot, I noticed the CPU still had the hard limit of 3.5GHz. The fix seems to be this:

#!/bin/bash
for i in {0..7}; do echo "4400000" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_setspeed; done
for i in {0..7}; do /usr/bin/cpufreq-set -c $i -u 4.4GHz; done

Weird, maybe that's why they recommend cpupower...

Last edited by vik; 08-29-2012 at 09:22 PM.
 
Old 08-29-2012, 08:40 PM   #6
abrinister
Member
 
Registered: Dec 2010
Location: Boston, MA, USA
Distribution: Arch Linux
Posts: 460

Rep: Reputation: 38
Glad I could help. I only mentioned cpupower because Arch has deemed cpufrequtils out of date. So I switched over to cpupower. They have virtually the same function.

Alex Brinister
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How does an E5300 (E5x00) compare to an E8600 (E8x00) for mame? Overclocked @ 4ghz+ Holering Linux - Games 3 09-23-2010 04:29 AM
LXer: OLPC News Exclusive: XO-1.5 Laptop Debut and Speed Test vs. Overclocked XO-1 La LXer Syndicated Linux News 0 09-10-2009 02:41 AM
Bad /proc/cpuinfo or processor overclocked!!! pulsez Linux - Laptop and Netbook 1 11-10-2005 05:19 AM
Is there any differences using overclocked CPU in windows or linux? Nad0xFF Linux - Hardware 4 04-17-2005 11:44 AM
Death to pc world... My rant (they sold me overclocked CPU !) qwijibow General 10 11-21-2004 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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