Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there a tool that can tell me the processor speed from the command line?
My hosting company gave me a server with less RAM than I expected and while they are upgrading that, I want to check everything else out as well.
As far as I know /proc/cpuinfo will only tell you the model name of your cpu, which usually will include a speed number. However, that speed number might not be the real speed of your cpu. To put a simple example, an amd k8 sempron +3000 runs at 1800 or so if my memory serves correctly. The same might happen with other cpus. The clock speed is not really indicative of anything unless you are comparing two cpu's of the same exact family.
There's a command called "lscpu" that will output the *current* speed of the cpu. However this also has its drawback: most cpu's nowadays support frequency scaling of some type. This means that most of the time the number there will not be the top speed of your cpu, because it will decelerate to save energy and to spare you some heat when the machine is idle. So, to get a realistic measure on a modern machine you usually have to measure the frequency of your cpu while it's working (ie. compiling a kernel, playing quaky or something like that).
As far as I know /proc/cpuinfo will only tell you the model name of your cpu, which usually will include a speed number. However, that speed number might not be the real speed of your cpu.
...and, if you really suspect the hosting company of being underhand, which may or may not be the inference that you expect people to draw from this post, they may be underclocking the cpu, although that ought to be unlikely...
...and, if you really suspect the hosting company of being underhand, which may or may not be the inference that you expect people to draw from this post, they may be underclocking the cpu, although that ought to be unlikely...
I don't see any real benefit in a hosting company underclocking a CPU. What would be the point?
No, I believe they just installed the wrong thing. They gave me a faster computer than I wanted (fine with me ) but half the RAM, and half the disk space!
I don't see any real benefit in a hosting company underclocking a CPU. What would be the point?
If they were having problems with cooling (probably if they had crammed more and more computing power into an existing facility) or power consumption, it is exactly what a disreputable organisation would do. But I do emphasise the disreputable part; you wouldn't get there just by being a bit disorganised.
There are some info in /sys/devices/system/cpu/cpuX/cpufreq/* if you have sysfs and cpufreq enabled in the kernel. Just use cat to see the values or 'echo $(<file)'
Someone asked me for my cpu speed a while back and I neither knew nor knew how to find out. As you can see, I'm rather dumb. Looking at the below output, which numbers are my cpu speed?
~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 2.60GHz
stepping : 9
cpu MHz : 2593.760
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts cid xtpr
bogomips : 5187.52
clflush size : 64
power management:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.