mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Thomas Widmann" <thomas.widmann@icn.siemens.de>
To: <linux-kernel@vger.kernel.org>
Cc: "Andrew Morton" <andrewm@uow.edu.au>
Subject: Re: SMP: bind process to cpu
Date: Sat, 17 Feb 2001 20:08:08 +0100	[thread overview]
Message-ID: <BGEDIODHBENLENEMBEPAIEDFCAAA.thomas.widmann@icn.siemens.de> (raw)
In-Reply-To: <3A8E8C8F.A2A9E69E@uow.edu.au>

Hi,

* Andrew Morton wrote:

> > Hi,
> > 
> > I run an 3*XEON 550MHz Primergy with 2GB of RAM.
> > On this machine, i have compiled kernel 2.4.0SMP.
> > 
> > Is it possible to bind a process to a specific
> > cpu on this SMP machine (process affinity) ?
> > 
> > I there something like pset ?
> 
> A patch which creates /proc/<pid>/cpus_allowed is at
> 
> 	http://www.uow.edu.au/~andrewm/linux/#cpus_allowed
> 
> You just write a bitmask into it.

Thanks for this information. I patched my the kernel with it.
After rebooting with the new kernel i can see the bitmask
for every process running on my server.

#cat /proc/1310/cpus_allowed
ffffffff

Now, if i want to run this process on only one cpu, i which way
do i have to set the bitmask ?
Let's say, i want to run it on cpu0. how look's the bitmask ?

Thanks 

Regards
Thomas

  reply	other threads:[~2001-02-17 19:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-17 12:36 Thomas Widmann
2001-02-17 13:27 ` Christoph Hellwig
2001-02-17 14:13   ` Manfred Spraul
2001-02-17 17:47     ` Christoph Hellwig
2001-02-17 14:37 ` Andrew Morton
2001-02-17 19:08   ` Thomas Widmann [this message]
2001-02-17 19:57     ` Francis Galiegue
2001-02-18  1:01     ` Andrew Morton
2001-02-17 19:49 ` Tim Hockin

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=BGEDIODHBENLENEMBEPAIEDFCAAA.thomas.widmann@icn.siemens.de \
    --to=thomas.widmann@icn.siemens.de \
    --cc=andrewm@uow.edu.au \
    --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®