* Dual Opteron box, what's the optimal memory placement for the CPUs?
@ 2004-10-27 21:21 Jesper Juhl
2004-10-27 21:43 ` Joel Jaeggli
2004-10-28 0:51 ` Thomas Zehetbauer
0 siblings, 2 replies; 5+ messages in thread
From: Jesper Juhl @ 2004-10-27 21:21 UTC (permalink / raw)
To: linux-kernel
Quick question,
I've got an IBM eServer 325 here with 2 Opteron 240 CPUs. The box has 6
DIMM slots, 4 for the "primary" CPU and 2 for the second one. I've got the
following memory sticks : 4x512MB and 2x1GB
My plan is to plug the 4 512MB sticks into the slots for the first CPU and
the 2GB sticks into the two slots for the second CPU, giving them 2GB
each, but I could also give the first one 2x512MB and 2x1GB and the second
one 2x512MB giving the first CPU 3GB and the second 1GB. Does it matter at
all, and if it does, what's the optimal configuration?
--
Jesper Juhl
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dual Opteron box, what's the optimal memory placement for the CPUs?
2004-10-27 21:21 Dual Opteron box, what's the optimal memory placement for the CPUs? Jesper Juhl
@ 2004-10-27 21:43 ` Joel Jaeggli
2004-10-27 22:00 ` Jesper Juhl
2004-10-28 0:51 ` Thomas Zehetbauer
1 sibling, 1 reply; 5+ messages in thread
From: Joel Jaeggli @ 2004-10-27 21:43 UTC (permalink / raw)
To: Jesper Juhl; +Cc: linux-kernel
On Wed, 27 Oct 2004, Jesper Juhl wrote:
>
> Quick question,
>
> I've got an IBM eServer 325 here with 2 Opteron 240 CPUs. The box has 6
> DIMM slots, 4 for the "primary" CPU and 2 for the second one. I've got the
> following memory sticks : 4x512MB and 2x1GB
>
> My plan is to plug the 4 512MB sticks into the slots for the first CPU and
> the 2GB sticks into the two slots for the second CPU, giving them 2GB
> each, but I could also give the first one 2x512MB and 2x1GB and the second
> one 2x512MB giving the first CPU 3GB and the second 1GB. Does it matter at
> all.
doesn't really matter, they just have to be installed in pairs for bank
interleaving. node interleaving is dependant on having banks on both cpu's
populated.
> and if it does, what's the optimal configuration?
>
> --
> Jesper Juhl
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
--
--------------------------------------------------------------------------
Joel Jaeggli Unix Consulting joelja@darkwing.uoregon.edu
GPG Key Fingerprint: 5C6E 0104 BAF0 40B0 5BD3 C38B F000 35AB B67F 56B2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dual Opteron box, what's the optimal memory placement for the CPUs?
2004-10-27 21:43 ` Joel Jaeggli
@ 2004-10-27 22:00 ` Jesper Juhl
2004-10-27 23:27 ` Petr Vandrovec
0 siblings, 1 reply; 5+ messages in thread
From: Jesper Juhl @ 2004-10-27 22:00 UTC (permalink / raw)
To: Joel Jaeggli; +Cc: linux-kernel
On Wed, 27 Oct 2004, Joel Jaeggli wrote:
> On Wed, 27 Oct 2004, Jesper Juhl wrote:
>
> >
> > Quick question,
> >
> > I've got an IBM eServer 325 here with 2 Opteron 240 CPUs. The box has 6
> > DIMM slots, 4 for the "primary" CPU and 2 for the second one. I've got the
> > following memory sticks : 4x512MB and 2x1GB
> >
> > My plan is to plug the 4 512MB sticks into the slots for the first CPU and
> > the 2GB sticks into the two slots for the second CPU, giving them 2GB
> > each, but I could also give the first one 2x512MB and 2x1GB and the second
> > one 2x512MB giving the first CPU 3GB and the second 1GB. Does it matter at
> > all.
>
> doesn't really matter, they just have to be installed in pairs for bank
> interleaving. node interleaving is dependant on having banks on both cpu's
> populated.
>
Yeah, I know they have to be installed in pairs, but I would have thought
that it would be best to have an even memory distribution so that an even
amount of local memory was available to processes executing on either CPU.
Even if Linux makes sure to execute processes on the CPU where most of
their memory is local, wouldn't a non-even distribution make more
processes prefer one CPU and thus not make the best possible use of them?
I don't really know very much about this specific detail (which is why I
asked), and you tell me it doesn't matter, so I'll assume Linux has some
intelligent way of dealing with this that I just don't know about - That's
good enough for me, I'll trust you on that, just wanted to know for now
and the future. :-)
--
Jesper Juhl
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dual Opteron box, what's the optimal memory placement for the CPUs?
2004-10-27 22:00 ` Jesper Juhl
@ 2004-10-27 23:27 ` Petr Vandrovec
0 siblings, 0 replies; 5+ messages in thread
From: Petr Vandrovec @ 2004-10-27 23:27 UTC (permalink / raw)
To: Jesper Juhl; +Cc: Joel Jaeggli, linux-kernel
On Thu, Oct 28, 2004 at 12:00:45AM +0200, Jesper Juhl wrote:
> Yeah, I know they have to be installed in pairs, but I would have thought
> that it would be best to have an even memory distribution so that an even
> amount of local memory was available to processes executing on either CPU.
> Even if Linux makes sure to execute processes on the CPU where most of
> their memory is local, wouldn't a non-even distribution make more
> processes prefer one CPU and thus not make the best possible use of them?
>
> I don't really know very much about this specific detail (which is why I
> asked), and you tell me it doesn't matter, so I'll assume Linux has some
> intelligent way of dealing with this that I just don't know about - That's
> good enough for me, I'll trust you on that, just wanted to know for now
> and the future. :-)
You should also check this with your BIOS. It will be a bit unfortunate
if BIOS decides to just throw away 0.5GB of your memory to make space
for PCI devices, and maybe you can help BIOS a bit with right
shuffling (with 3:1 it will hopefully decide to put 1GB above
4GB boundary; with 2:2 who knows; AFAIK Opteron northbridge does not
allow for splitting DRAM on one node into two regions; at least I did not
found how to do that).
I would prefer 2:2 if both variants give you same amount of accessible
memory.
Best regards,
Petr Vandrovec
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Dual Opteron box, what's the optimal memory placement for the CPUs?
2004-10-27 21:21 Dual Opteron box, what's the optimal memory placement for the CPUs? Jesper Juhl
2004-10-27 21:43 ` Joel Jaeggli
@ 2004-10-28 0:51 ` Thomas Zehetbauer
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Zehetbauer @ 2004-10-28 0:51 UTC (permalink / raw)
To: Jesper Juhl; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
That is indeed a very good question.
If you use node interleaving you end up with memory accesses to be
distributed matching the amount of memory installed on each node.
Assuming that processes prefer the first node you get better performance
with load < 1 and memory usage < $first_node_memory.
If you use a NUMA configuration you should get better performance from
almost equally distributed memory. Especially when the load goes up.
Tom
PS: I choosed NUMA with equally distributed memory.
--
T h o m a s Z e h e t b a u e r ( TZ251 )
PGP encrypted mail preferred - KeyID 96FFCB89
finger thomasz@hostmaster.org for key
XT emulator finally available for Pentium-IV: install Windows XP today!
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 481 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-10-28 0:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 21:21 Dual Opteron box, what's the optimal memory placement for the CPUs? Jesper Juhl
2004-10-27 21:43 ` Joel Jaeggli
2004-10-27 22:00 ` Jesper Juhl
2004-10-27 23:27 ` Petr Vandrovec
2004-10-28 0:51 ` Thomas Zehetbauer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.