mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Keith Mannthey" <kmannth@gmail.com>
To: "Andrew Athan" <aathan_linux_kernel_1542@cloakmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: CPU numbering & hyperthreading
Date: Tue, 18 Jul 2006 12:03:15 -0700	[thread overview]
Message-ID: <a762e240607181203q1ceeb1a6k4af348f89da65509@mail.gmail.com> (raw)
In-Reply-To: <44BC4200.90308@cloakmail.com>

On 7/17/06, Andrew Athan <aathan_linux_kernel_1542@cloakmail.com> wrote:
>
> On an Intel Xeon dual CPU machine running 2.6.16 and up...
>
> I have two highly CPU/memory/network intensive processes with 3-5
> threads each.  I am using sched_setaffinity calls to make sure these two
> processes never compete for the same physical CPU.  Am I right to assume
> that CPU #0 and #1 vs CPU #2 and #3 are separate physical CPUs on a
> 2-CPU w/ hyperthreading box?
>
> I've spent some time looking, but I did not find documentation on
> exactly how CPUs are numbered in a hyperthreaded box.

It is up to the bios how the cpus are layed out.  Any easy way to
check for the info you want is to look at /proc/cpuinfo (you can also
get the info out of /sys/devices/system/cpu/cpu[x]/topology).  Cpus
with the same physical id are in the same package.  The info (core_id
core_siblings  physical_package_id  thread_siblings
and like kind from proc) describes the topology.

Thanks,
  Keith

  reply	other threads:[~2006-07-18 19:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18  2:05 Andrew Athan
2006-07-18 19:03 ` Keith Mannthey [this message]
2006-07-18 20:46 Chuck Ebbert

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=a762e240607181203q1ceeb1a6k4af348f89da65509@mail.gmail.com \
    --to=kmannth@gmail.com \
    --cc=aathan_linux_kernel_1542@cloakmail.com \
    --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®