News for hackers. Stuff that matters.
Re:Understanding Linux CPU Load - when should you be worried? by mrich on Tuesday July 26, 2011 @01:44PM (#2808524)
make sure you are looking at physical core count, not hyperthreaded cores (which should be a 2x difference for your CPU).
Re:Understanding Linux CPU Load - when should you be worried? by keeperofdakeys on Wednesday July 27, 2011 @04:27AM (#2811310)
A hyperthreaded cpu actually emulates an extra core. A cpu with a single physical core and a hyperthreaded core is seen by the OS as two cores, it doesn't know anything about the hyperthreading. This means that the load average 2.0 means the system is fully loaded, not 1.0.

Although, it is much easier to go from 1.0 to 2.0, as opposed to 0 to 1.0 on such a cpu, because the cpu can't handle much more work before it gets overloaded.

Re:Understanding Linux CPU Load - when should you be worried? by scott_s on Wednesday July 27, 2011 @12:21AM (#2810749)
Lacking any other information, I would look into this explanation first - I have seen many experiments on cores with SMT contexts where the performance plateaus at the total number of cores, not SMT contexts.
Re:Understanding Linux CPU Load - when should you be worried? by syedkarim on Tuesday July 26, 2011 @01:48PM (#2808542)
Am I using the wrong command to count physical cores (I'm guessing so? grep 'model name' /proc/cpuinfo | wc -l What should I use to count physical cores?
Re:Understanding Linux CPU Load - when should you be worried? by mrich on Tuesday July 26, 2011 @02:47PM (#2808845)
/proc/cpuinfo are hyperthreaded cores, as exposed to the OS. For basically all the modern multi-core Intel Xeon CPUs you can divide that by 2. It seems you can also find out by looking at physical ID and "cpu cores". On a 64 (hyperthreaded) cores machine, I see physical ID 0..4 and cpu cores 8 in this case, which would mean 8*4=32.
Re:Understanding Linux CPU Load - when should you be worried? by mrich on Wednesday July 27, 2011 @06:50AM (#2811599)
small correction: "physical ID 0..3"
Re:Understanding Linux CPU Load - when should you be worried? by sciurus on Tuesday July 26, 2011 @02:46PM (#2808843)
`grep 'core id' /proc/cpuinfo | sort -u | wc -l` will work. See http://serverfault.com/questions/262867/how-to-find-out-if-m...