From: Carsten Langgaard <carstenl@mips.com>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: LTP testing (shmat01)
Date: Fri, 05 Jul 2002 08:30:48 +0200 [thread overview]
Message-ID: <3D253D18.3BE59AED@mips.com> (raw)
In-Reply-To: 20020704215614.B29422@dea.linux-mips.net
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.
>
> Other architectures also use different values from PAGE_SIZE like IA64 1MB,
> SH 16kB and Sparc not even a constant value accross all architectures
> variants, so unlike what your posting implicates we're not that unusual.
Using PAGE_SIZE is ok, even though it may differ from different architecture,
because SHMLBA is defined as the following in /usr/include/sys/shm.h:
#define SHMLBA (__getpagesize ())
So I would expect the user application and the kernel should have the same
idea of what the size is.
> Ralf
--
_ _ ____ ___ Carsten Langgaard Mailto:carstenl@mips.com
|\ /|||___)(___ MIPS Denmark Direct: +45 4486 5527
| \/ ||| ____) Lautrupvang 4B Switch: +45 4486 5555
TECHNOLOGIES 2750 Ballerup Fax...: +45 4486 5556
Denmark http://www.mips.com
next prev parent reply other threads:[~2002-07-05 6:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-04 15:26 LTP testing (shmat01) Carsten Langgaard
2002-07-04 17:34 ` Ralf Baechle
2002-07-04 18:18 ` Carsten Langgaard
2002-07-04 19:56 ` Ralf Baechle
2002-07-05 6:30 ` Carsten Langgaard [this message]
2002-07-05 14:37 ` Ralf Baechle
2002-07-08 17:31 ` Jun Sun
2002-07-08 17:45 ` Ralf Baechle
2002-07-08 18:13 ` Carsten Langgaard
2002-07-08 18:29 ` PATCH: Fix SHMLBA for mips (Re: LTP testing (shmat01)) H. J. Lu
2002-07-08 18:33 ` Ralf Baechle
2002-07-09 6:11 ` Carsten Langgaard
2002-07-09 6:34 ` Andreas Jaeger
2002-07-10 6:57 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D253D18.3BE59AED@mips.com \
--to=carstenl@mips.com \
--cc=linux-mips@oss.sgi.com \
--cc=ralf@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.