[Top] [All Lists]

Re: LTP testing (shmat01)

To: Ralf Baechle <>
Subject: Re: LTP testing (shmat01)
From: Jun Sun <>
Date: Mon, 08 Jul 2002 10:31:23 -0700
Cc: Carsten Langgaard <>,
References: <> <> <> <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20010901
Ralf Baechle wrote:

On Thu, Jul 04, 2002 at 08:18:41PM +0200, Carsten Langgaard wrote:

any power of 2 > PAGE_SIZE.

Ok, I see, but is there any reason for us to be different than the
rest of the world ?

Imho the your question already wrong :-)  Any assumption about the
constant's value in a piece of code is wrong.

The reason why the constant's value was choosen are virtually indexed
caches.  The value allows attaching of shared memory segment without
any cache flushes.

I think this is also an effective way to avoid cache aliasing. As long as your cache size is less than 256K, you don't get cache aliasing through shared memory. Perhaps other arches don't have cache aliasing? I know for sure i386 does not have that effect.


<Prev in Thread] Current Thread [Next in Thread>