How many CPUs I have ?
Hi all
This para is from book - 'Troubleshooting Linux Server Best Practices', describing load average in uptime command. "A single-CPU system with a load average of 1 means the single CPU is under constant load. If that single-CPU system has a load average of 4, there is four times the load on the system than it can handle, so three out of four processes are waiting for resources. The load average reported on a system is not tweaked based on the number of CPUs you have, so if you have a two-CPU system with a load average of 1, one of your two CPUs is loaded at all times — that is, you are 50% loaded. So a load of 1 on a single-CPU system is the same as a load of 4 on a four-CPU system in terms of the amount of available resources used." In this, when he says 1 CPU, is he referring to a physical CPU or Cores ? I'm confused, in my system I have 1 physical CPU (Intel Core2Duo E7500) with 2 cores. A load of 1 in my system is 100% or 50% ? I have also seen servers with 2 physical CPUs (or processors :confused:) My system output: Code:
# lscpu Thank you |
|
Quote:
Quote:
The author of that article is wrong about how loadavg should be interpreted - this is a common fallacy on the web also. In Linux, the loadavg includes tasks in uniterruptible sleep - usually waiting on disk I/O. This can cause the loadavg to increase without having any demand or effect on CPU usage. |
They're referring to cores and they wrote about that topic in a very confusing manner. They'd have been better off just copying from the uptime manual page instead of wherever they got that or rewrote it.
|
Quote:
The fact that vendors started mixing "cpu" for their product containing multiple cpus is a marketing issue. The technical definition of CPU hasn't changed. Each core is a CPU. |
@ bangnagr
Code:
egrep -i "cores|siblings" /proc/cpuinfo If the siblings equal the number of cpu cores, than hyper threading is disabled in the BIOS or is not available for the CPU. Here is an example of mine. siblings : 4 cpu cores : 2 siblings : 4 cpu cores : 2 siblings : 4 cpu cores : 2 siblings : 4 cpu cores : 2 On my system, I have two physical cores with 4 siblings. So this means that hyperthreading is enabled and my system acts like a quad core. |
All times are GMT -5. The time now is 06:33 PM. |