How can I test actual CPU clock-speed in Linux

3

1

Good evening, I have a new Core i7-based Sandy Bridge machine. The machine was overclocked by the system builders so that it should run at 4.6Ghz when a single core is under load. However, the suggested method for confirming this given by the suppliers was to run Prime95 and CPU-Z - these are Windows applications, whilst I am using a Linux (Ubuntu 11.04) environment. Having done a fair amount of internet searching I'm unable to find a canonical way of confirming in Linux that the "turbo" is taking place when the single core is under load.

This is quite important to me as I'm running computational physics calculations on the machine and need it to be as quick as possible.

Any help would be most gratefully received, please let me know if I've not been clear enough in my explanation.

endian

Posted 2011-06-06T18:10:51.480

Reputation: 237

If these are reliable, deterministic calculations, you might just consider running them with the overclock enabled and disabled and comparing the runtimes. – Shinrai – 2011-06-06T18:16:12.510

Answers

3

After a great deal of searching, forum posts and dead-ends, I finally discovered the tool "TurboStat", which is capable of reading the CPU frequency. It's in source-code form, the link is here: http://www.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/pmtools-latest/turbostat/turbostat.c

Other tools that I tried and failed to use: cpufreq, cpupowerutils

endian

Posted 2011-06-06T18:10:51.480

Reputation: 237

1Oops, there is a 404! – Zulu – 2014-05-18T16:36:31.313

2

Use MPrime. It is the same as prime95, but its for linux. See here for slightly more info.

soandos

Posted 2011-06-06T18:10:51.480

Reputation: 22 744

Thanks, but I guess my question is more along the lines of how can I see the CPU clock rate, rather than how can I max out the CPU. – endian – 2011-06-06T18:57:19.433

2

You should be able to find out your current cpu speed with the command

more /proc/cpuinfo | grep MHz

Remember that the 4.6GHz speed is when your maxing out one core, if your test program is using several cores you probably won't see speeds that high.

Paxxi

Posted 2011-06-06T18:10:51.480

Reputation: 6 952

Thanks. Unfortunately cpuinfo only displays the standard frequency (3400.509 in my case) regardless of whether the system is under load. The program only uses one core, so I would expect the system to enter the overclocked state. – endian – 2011-06-06T19:42:49.727

0

CPU-G is the linux equivalent to cpu-z for windows: http://www.webupd8.org/2009/10/cpu-z-for-ubuntu-cpu-g.html

Stef Lombard

Posted 2011-06-06T18:10:51.480

Reputation: 1

1please give an explanation in your answer.read the FAQ. – Shurmajee – 2013-02-20T09:05:13.067