CPU utilization on a dual-core

Paul Lussier p.lussier at comcast.net
Fri Nov 2 23:11:35 EDT 2007


mike ledoux <mwl+gnhlug at alumni.unh.edu> writes:

> On Fri, Nov 02, 2007 at 03:16:35PM -0500, Paul Lussier wrote:
>> Does anyone know how to determine per-CPU utilization on a
>> multi-cpu/core system.  It's a 2.4 kernel, and top doesn't break
>> things down per-cpu.  Unless I'm running an ancient version of top...
>
> Even ancient versions of top can do this, IME.  On modern versions,
> use '1' to toggle displaying separate CPU states, and 'I' to toggle
> between Irix and Solaris style SMP display (Irix displays process
> %CPU as % of 1 CPU, Solaris displays as % of all CPUs).

Oh cool!  That helps, thanks.

>> Also, how can you tell (without opening the box) if a system is
>> multi-cpu vs. multi-core?
>
> /proc/cpuinfo on the system I'm looking at now (two dual-core Xeons)
> shows info like:
>
>   physical id     : 0
>   siblings        : 2
>   core id         : 0
>   cpu cores       : 2

Okay, so, given that I see none of those lines in cpuinfo for either
of the cpus listed, it's probably safe to assume that I have just a
normal dual-cpu system, not a dual multi-core system.

Thanks.
-- 
Seeya,
Paul


More information about the gnhlug-discuss mailing list