Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2004 07:23:53 -0600 (MDT)
From:      "Ryan Sommers" <ryans@gamersimpact.com>
To:        "Rob" <spamrefuse@yahoo.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: 5.3 & SMP How do I know my 2 CPUs are used?
Message-ID:  <61975.208.4.77.15.1098969833.squirrel@208.4.77.15>
In-Reply-To: <4180EA86.6030001@yahoo.com>
References:  <4180EA86.6030001@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Rob said:
> With the top command, I can't see anything special for my 2 CPUs.
> Is that right?
>
> Rob.

Top should have a column marked 'C':

  PID USERNAME      PRI NICE   SIZE    RES STATE  C   TIME   WCPU    CPU
COMMAND
39138 root           96    0 16420K 15164K select 1   0:23  2.69%  2.69%
XFree8

This shows what CPU the process is running on.

Another sign to tell is sysctl hw.ncpu, or sysctl kern.smp.cpus

-- 
Ryan Sommers
ryans@gamersimpact.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?61975.208.4.77.15.1098969833.squirrel>