* about the meaning of numactl -i
@ 2011-04-14 13:40 Alfredo Buttari
2011-04-14 17:29 ` Andi Kleen
2011-06-22 13:26 ` Lee Schermerhorn
0 siblings, 2 replies; 5+ messages in thread
From: Alfredo Buttari @ 2011-04-14 13:40 UTC (permalink / raw)
To: linux-numa
Hi all,
I have a simple question regarding the functioning of the numactl
command with the -i flag.
Does it mean that, if I have, e.g., multiple allocations in my
executable then these allocations are interleaved on the numa nodes in
a round-robin fashion?
or does it mean that if I have, e.g., a single big allocation in my
executable the corresponding memory area will be split into multiple,
non-contiguous regions which are then interleaved on the numa nodes in
rr fashion?
or both of the above?
Best regards
Alfredo Buttari
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about the meaning of numactl -i
2011-04-14 13:40 about the meaning of numactl -i Alfredo Buttari
@ 2011-04-14 17:29 ` Andi Kleen
2011-04-15 6:39 ` Alfredo Buttari
2011-06-22 13:26 ` Lee Schermerhorn
1 sibling, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2011-04-14 17:29 UTC (permalink / raw)
To: Alfredo Buttari; +Cc: linux-numa
On Thu, Apr 14, 2011 at 03:40:58PM +0200, Alfredo Buttari wrote:
> Hi all,
> I have a simple question regarding the functioning of the numactl
> command with the -i flag.
>
> Does it mean that, if I have, e.g., multiple allocations in my
> executable then these allocations are interleaved on the numa nodes in
> a round-robin fashion?
>
> or does it mean that if I have, e.g., a single big allocation in my
> executable the corresponding memory area will be split into multiple,
> non-contiguous regions which are then interleaved on the numa nodes in
> rr fashion?
>
> or both of the above?
It depends on whether you apply it to a process or to a shm mapping.
For a process it would the first, for a shm mapping the later.
Also for a process this happens in first touch fault-order.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about the meaning of numactl -i
2011-04-14 13:40 about the meaning of numactl -i Alfredo Buttari
2011-04-14 17:29 ` Andi Kleen
@ 2011-06-22 13:26 ` Lee Schermerhorn
2011-06-23 6:45 ` Alfredo Buttari
1 sibling, 1 reply; 5+ messages in thread
From: Lee Schermerhorn @ 2011-06-22 13:26 UTC (permalink / raw)
To: Alfredo Buttari; +Cc: linux-numa
On Thu, 2011-04-14 at 15:40 +0200, Alfredo Buttari wrote:
> Hi all,
> I have a simple question regarding the functioning of the numactl
> command with the -i flag.
>
> Does it mean that, if I have, e.g., multiple allocations in my
> executable then these allocations are interleaved on the numa nodes in
> a round-robin fashion?
>
> or does it mean that if I have, e.g., a single big allocation in my
> executable the corresponding memory area will be split into multiple,
> non-contiguous regions which are then interleaved on the numa nodes in
> rr fashion?
>
> or both of the above?
Alfredo:
Memory interleaving mode [-i] behaves like your first alternative. See
Documentation/vm/numa_memory_policy.txt in the kernel source tree or
where ever your distro installs it. [kernel-doc-*.rpm, linux-doc*.deb]
Lee
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: about the meaning of numactl -i
2011-06-22 13:26 ` Lee Schermerhorn
@ 2011-06-23 6:45 ` Alfredo Buttari
0 siblings, 0 replies; 5+ messages in thread
From: Alfredo Buttari @ 2011-06-23 6:45 UTC (permalink / raw)
To: Lee Schermerhorn; +Cc: linux-numa
Dear Lee,
thanks a lot for pointing me to this document. I've been looking for
something like this for some time.
best regards
alfredo
On Wed, Jun 22, 2011 at 3:26 PM, Lee Schermerhorn
<Lee.Schermerhorn@hp.com> wrote:
> Alfredo:
>
> Memory interleaving mode [-i] behaves like your first alternative. See
> Documentation/vm/numa_memory_policy.txt in the kernel source tree or
> where ever your distro installs it. [kernel-doc-*.rpm, linux-doc*.deb]
>
> Lee
--
-----------------------------------------
Alfredo Buttari, PhD
CNRS-IRIT
2 rue Camichel, 31071 Toulouse, France
http://buttari.perso.enseeiht.fr
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-06-23 6:45 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-14 13:40 about the meaning of numactl -i Alfredo Buttari
2011-04-14 17:29 ` Andi Kleen
2011-04-15 6:39 ` Alfredo Buttari
2011-06-22 13:26 ` Lee Schermerhorn
2011-06-23 6:45 ` Alfredo Buttari
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).