Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any way to check at which clock speed my processor is running?

I have already tried cat /proc/cpuinfo but the clock speed I'm running isn't showing. I know Ubuntu 12.04 (Precise Pangolin) requires 700 MHz and VGA, but will an AMD Mobile Sempron work?

share|improve this question
    
You need more specific on the second part of your question. Do you know the model number? –  LiveWireBT Nov 20 '12 at 6:55
    
Thank you for all the answers but I am good now! –  user1610406 Nov 20 '12 at 23:04
add comment

5 Answers 5

up vote 30 down vote accepted

From the command line type lscpu. The information will be at CPU MHz:

share|improve this answer
2  
Note that the value of CPU MHz is not fixed and may change by the second. –  Cerin Jan 30 at 15:53
add comment

There are a couple of ways:

  1. lscpu or more precise lscpu | grep "MHz".
    This will give you the general MHz for the CPU.

    $ lscpu | grep "MHz".
    CPU MHz:               1600.000
    
  2. cat /proc/cpuinfo or more precise cat /proc/cpuinfo | grep "MHz".
    This will give you the individual MHz for each CPU Core. So if you have an Core 2 Duo, AMD Bulldozer, Core i7, etc.. it will show the MHz for each core.

    $ cat /proc/cpuinfo | grep "MHz"
    cpu MHz     : 1600.000
    cpu MHz     : 1600.000
    cpu MHz     : 1600.000
    cpu MHz     : 1600.000
    cpu MHz     : 1600.000
    cpu MHz     : 1600.000
    cpu MHz     : 1600.000
    cpu MHz     : 3400.000
    
  3. lshw -c cpu or more precise version: lshw -c cpu | grep capacity
    Will give you the general MHz. Same as lscpu.

    $ lshw -c cpu | grep capacity
    WARNING: you should run this program as super-user.
           capacity: 1600MHz
    WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
    
  4. sudo dmidecode -t processor or more precise: sudo dmidecode -t processor | grep "Speed" Will not only give you a MHz in use but also the Maximum you can push / overclock your CPU to.

    $ sudo dmidecode -t processor | grep Speed
    [sudo] password for cyrex: 
        Max Speed: 4000 MHz
        Current Speed: 2666 MHz
    

Out of all of this, lshw and dmidecode provide the best information out of your CPU.

You can also target the current MHz detected by the kernel by querying the log files:

cat /var/log/dmesg | grep "MHz processor" - For the current detected MHz speed

cat /var/log/kern.log | grep "MHz processor" - For the current and past detected MHz speeds. Will not work in some cases, that is why I posted the dmesg one first.

And that's all I can remember from the top of my head. I am fairly certain there are other ways, just don't remember right now. Of course, talking about terminal ways.

share|improve this answer
add comment

indicator-cpufreq-selector is a nice little indicator tool which shows your current cpu frequency. You can even select the desired cpu frequency.

enter image description here

share|improve this answer
1  
You can install it using sudo apt-get install indicator-cpufreq. –  Wilf Feb 26 at 23:00
add comment

Is an AMD Mobile Sempron fast enough? Yes, it is.

Even the slowest member of that family is fast enough. If you entered: cat /proc/cpuinfo | grep name

it should display the exact model of your CPU. This page: http://en.wikipedia.org/wiki/List_of_AMD_Sempron_microprocessors#Mobile_Sempron

will give you detailed specifications.

share|improve this answer
add comment

For the current CPU speed one can dynamically watch this change in real time using:

sudo watch -n 1  cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq

To see the maximum CPU speed, use:

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq 
share|improve this answer
    
+1, I know this is an Ubuntu site, but this appears to be the only answer providing a command that is completely OS independent. –  Andy E Apr 24 at 11:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.