linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Anton Blanchard <anton@samba.org>
To: linux-mm@kvack.org
Cc: ak@suse.de
Subject: NUMA API on ppc64 issues
Date: Sun, 15 May 2005 13:00:36 +1000	[thread overview]
Message-ID: <20050515030036.GB5829@krispykreme> (raw)

Hi,

I tried running the NUMA API on a ppc64 box (version numactl-0.7pre2, I 
hope thats the latest). I noticed is that the cpu affinity code is not
endian safe. Watching a 64bit version of numademo:

19206 sched_setaffinity(19206, 64,  { 300000000, 0, 0, 0, 0, 0, 0, 0 }) = -1 EINVAL (Invalid argument)

...

19206 sched_setaffinity(19206, 64,  { f000000000000, 0, 0, 0, 0, 0, 0, 0 }) = -1 EINVAL (Invalid argument)

Whereas my cpumask is 000000000000f003 - its swapping the two 32bit
words. Looks like numa_node_to_cpus needs some work to be endian safe.

Anton
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

                 reply	other threads:[~2005-05-15  3:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20050515030036.GB5829@krispykreme \
    --to=anton@samba.org \
    --cc=ak@suse.de \
    --cc=linux-mm@kvack.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