public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Robert Love <rml@tech9.net>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] proc-based cpu affinity user interface
Date: 26 Nov 2001 23:14:23 -0500	[thread overview]
Message-ID: <1006834464.842.2.camel@phantasy> (raw)
In-Reply-To: <Pine.LNX.4.40.0111261948460.1674-100000@blue1.dev.mcafeelabs.com>
In-Reply-To: <Pine.LNX.4.40.0111261948460.1674-100000@blue1.dev.mcafeelabs.com>

On Mon, 2001-11-26 at 22:52, Davide Libenzi wrote:
> As I said in reply to Ingo patch, it'd be better to expose "number" cpu
> masks not "logical" ( like cpus_allowed ).
> In this way the users can use 0..N-1 ( N == number of cpus phisically
> available ) w/out having to know the internal mapping between logical and
> number ids.

Do you mean you don't like using a bitmask ?

00000001 = first CPU, its not logical, its physical.

Plus, how do you intend to set multiple non-contiguous CPUs?  A fraction
of them?  With only a 32-bit value?

Note also that my patch understands the underlying CPU nature, such that
"echo 0000ffff > /proc/123/affinity" will only affine task 123 to your
first 2 CPUs if you only have two.  Thus, "cat /proc/123/affinity" will
return "00000003".

	Robert Love


  reply	other threads:[~2001-11-27  4:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-27  3:31 [PATCH] proc-based cpu affinity user interface Robert Love
2001-11-27  3:52 ` Davide Libenzi
2001-11-27  4:14   ` Robert Love [this message]
2001-11-27  4:39     ` Davide Libenzi
2001-11-27  4:48       ` Davide Libenzi
2001-11-27 14:17   ` Ingo Molnar
2001-11-27 16:49     ` Davide Libenzi
2001-11-27 18:46       ` Ingo Molnar
2001-11-27  4:37 ` Anton Blanchard
2001-11-27  5:08   ` Robert Love
2001-11-27  5:42   ` Tim Hockin
2001-11-27  6:25 ` Andreas Dilger
2001-11-27  6:40   ` Robert Love
2001-11-27 11:52 ` Ingo Molnar
2001-11-27 10:10   ` Alan Cox
2001-11-27 14:21     ` Ingo Molnar
2001-11-27 20:44   ` Robert Love
  -- strict thread matches above, loose matches on Subject: below --
2001-11-27 20:23 Matthew Dobson
2001-12-10  8:33 ` Albert D. Cahalan
2001-12-10  8:40   ` Robert Love
2001-12-10  9:37     ` Albert D. Cahalan

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=1006834464.842.2.camel@phantasy \
    --to=rml@tech9.net \
    --cc=davidel@xmailserver.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