Re: SHMLBA on linux-ia64

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-09-03 12:00:31
>>>>> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Sep 2 22:02:22 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:17 EST