From: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
To: Oliver Weihe <o.weihe@deltacomputer.de>
Cc: linux-mm@kvack.org
Subject: Re: NUMA allocator on Opteron systems does non-local allocation on node0
Date: Tue, 14 Oct 2008 07:41:53 -0400 [thread overview]
Message-ID: <1223984513.29275.5.camel@lts-notebook> (raw)
In-Reply-To: <2793369.1223977380170.SLOX.WebMail.wwwrun@exchange.deltacomputer.de>
On Tue, 2008-10-14 at 11:43 +0200, Oliver Weihe wrote:
> Hello,
>
> I've sent this to Andi Kleen and posted this on lkml. Andi suggested to
> sent it to this mailing list.
>
>
<snip>
> >
> > > [Another copy of the reply with linux-kernel added this time]
> > >
> > > > In my setup I'm allocating an array of ~7GiB memory size in a
> > > > singlethreaded application.
> > > > Startup: numactl --cpunodebind=X ./app
> > > > For X=1,2,3 it works as expected, all memory is allocated on the
> > > > local
> > > > node.
> > > > For X=0 I can see the memory beeing allocated on node0 as long as
> > > > ~3GiB
> > > > are "free" on node0. At this point the kernel starts using memory
> > > > from
> > > > node1 for the app!
> > >
> > > Hmm, that sounds like it doesn't want to use the 4GB DMA zone.
> > >
> > > Normally there should be no protection on it, but perhaps something
> > > broke.
> > >
Check your /proc/sys/vm/numa_zonelist_order. By default, the kernel
will use "zone order", meaning it will overflow to the same zone-e.g.,
Normal--before consuming DMA memory, if the DMA zone is <= half the
system memory. See default_zonelist_order() and build_zonelists() in
mm/page_alloc.c
Lee
--
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:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-10-14 11:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1449471.1223892929572.SLOX.WebMail.wwwrun@exchange.deltacomputer.de>
2008-10-14 9:43 ` Oliver Weihe
2008-10-14 11:41 ` Lee Schermerhorn [this message]
2008-10-14 12:15 ` Oliver Weihe
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=1223984513.29275.5.camel@lts-notebook \
--to=lee.schermerhorn@hp.com \
--cc=linux-mm@kvack.org \
--cc=o.weihe@deltacomputer.de \
/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