mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Knoblauch <knobi@knobisoft.de>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How to detect multi-core and/or HT-enabled CPUs in 2.4.x and 2.6.x kernels
Date: Wed, 27 Dec 2006 06:40:47 -0800 (PST)	[thread overview]
Message-ID: <927934.92732.qm@web32603.mail.mud.yahoo.com> (raw)
In-Reply-To: <1167229470.3281.3905.camel@laptopd505.fenrus.org>


--- Arjan van de Ven <arjan@infradead.org> wrote:

> On Wed, 2006-12-27 at 06:16 -0800, Martin Knoblauch wrote:
> > Hi, (please CC on replies, thanks)
> > 
> >  for the ganglia project (http://ganglia.sourceforge.net/) we are
> > trying to find a heuristics to determine the number of physical CPU
> > "cores" as opposed to virtual processors added by enabling HT. The
> > method should work on 2.4 and 2.6 kernels.
> 
> I have a counter question for you.. what are you trying to do with
> the
> "these two are SMT sibblings" information ?
> 
> Because I suspect "HT" is the wrong level of detection for what you
> really want to achieve....
> 
> If you want to decide "shares caches" then at least 2.6 kernels
> directly
> export that (and HT is just the wrong way to go about this). 
> -- 
Hi Arjan,

 one piece of information that Ganglia collects for a node is the
"number of CPUs", originally meaning "physical CPUs". With the
introduction of HT and multi-core things are a bit more complex now. We
have decided that HT sibblings do not qualify as "real" CPUs, while
multi-cores do.

 Currently we are doing "sysconf(_SC_NPROCESSORS_ONLN)". But this
includes both physical and virtual (HT) cores. We are looking for a
method that only shows "real iron" and works on 2.6 and 2.4 kernels.
Whether this has any practial valus is a completely different question.

Cheers
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www:   http://www.knobisoft.de

  reply	other threads:[~2006-12-27 14:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-27 14:16 Martin Knoblauch
2006-12-27 14:24 ` Arjan van de Ven
2006-12-27 14:40   ` Martin Knoblauch [this message]
2006-12-27 15:13     ` Arjan van de Ven
2006-12-27 15:22       ` Gleb Natapov
2006-12-27 15:38         ` Arjan van de Ven
2006-12-27 15:41         ` Martin Knoblauch
2006-12-27 15:53           ` Arjan van de Ven
2006-12-27 15:51         ` Martin Knoblauch
2006-12-27 16:09           ` Arjan van de Ven
2006-12-27 17:14             ` Bernd Eckenfels
2006-12-27 17:52             ` Martin Knoblauch
2006-12-27 19:58               ` Siddha, Suresh B
2006-12-27 14:37 ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=927934.92732.qm@web32603.mail.mud.yahoo.com \
    --to=knobi@knobisoft.de \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®