* SHMLBA on linux-ia64
@ 2003-09-03 0:33 Umut Aymakoglu
2003-09-03 2:00 ` David Mosberger
0 siblings, 1 reply; 2+ messages in thread
From: Umut Aymakoglu @ 2003-09-03 0:33 UTC (permalink / raw)
To: linux-ia64
Hi -
The file /usr/include/sys/shm.h defines SHMLBA as __getpagesize() which
is 16K. whereas in /usr/include/asm/shmparam.h thereis another define of
SHMLBA as (1024*1024) and a comment saying on IA-64 architecture due to
some performance problems it is better to use this alignment.
We want to know what the recommended SHMLBA should be.
thanks in advance,
Umut
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SHMLBA on linux-ia64
2003-09-03 0:33 SHMLBA on linux-ia64 Umut Aymakoglu
@ 2003-09-03 2:00 ` David Mosberger
0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-09-03 2:00 UTC (permalink / raw)
To: linux-ia64
>>>>> On Tue, 2 Sep 2003 17:33:15 -0700, Umut Aymakoglu <umuta@us.ibm.com> said:
Umut> Hi - The file /usr/include/sys/shm.h defines SHMLBA as
Umut> __getpagesize() which is 16K.
Must be an old libc. For example, with glibc v2.3.2, I see:
$ fgrep 'e SHMLBA' /usr/include/bits/shm.h
#define SHMLBA (1024 * 1024)
Umut> whereas in /usr/include/asm/shmparam.h thereis another define
Umut> of SHMLBA as (1024*1024) and a comment saying on IA-64
Umut> architecture due to some performance problems it is better to
Umut> use this alignment.
Not "performance problem" but "_potential_ performance degradation".
On existing ia64 processors, you won't see a performance degradation,
but it is nevertheless recommend to align shared mappings to a 1MB
boundary because the architecture reserves the right that some future
CPU might run slower when there is a virtual alias that is not
congruent modulo 1MB.
--david
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-03 2:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-03 0:33 SHMLBA on linux-ia64 Umut Aymakoglu
2003-09-03 2:00 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox