[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Should one CPU(Hyper-Threading) machine install SMP kernel?



On Tue, 27 Sep 2005, michael wrote:
> On Tue, 2005-09-27 at 13:19 +0100, Dick Davies wrote:
> > On 27/09/05, michael <linux@networkingnewsletter.org.uk> wrote:
> > > On Tue, 2005-09-27 at 08:10 -0300, Henrique de Moraes Holschuh wrote:
> > > > On Mon, 26 Sep 2005, Bob Proulx wrote:
> > > > > Dick Davies wrote:
> > > > > > Yup, use SMP. I get 2 cpus in cpuinfo that way (although top doesn't
> > > > > > see them for some reason).
> > >
> > > cpuinfo will tell you about the logical CPUs; top will tell you about
> > > the physical CPUs.
> > 
> > that's a bit daft. why would user code care about physical cpus?
> 
> act I think it's me that's daft (today). I take back my comment (I now
> think 'top' will tell you logical CPUs but I can't test it on my
> HT-turned off box!)

Take my word for it. Not only top can give you per-CPU totals, it is also
smart enough to know that when you're looking at a %CPU column you want to
know how much of that particular CPU is being used, even if you tell top to
show the aggregate CPU statistics instead of the per CPU statistics.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh



Reply to: