From: Christopher Curtis <ccurtis@ee.fit.edu>
To: axp-list@redhat.com
Subject: SHMMAX (was Re: using cdrecord)
Date: Tue, 4 Aug 1998 22:19:32 -0400 (EDT) [thread overview]
Message-ID: <Pine.GSO.3.96.980804220155.8059X-100000@yacht.ee.fit.edu> (raw)
In-Reply-To: <35C7BD85.41C67EA6@ariolimax.com>
On Tue, 4 Aug 1998, David G. Koontz wrote:
> I don't know why its so small on an alpha. (28 Kbytes short of
> 4 Meg). It needs to be DEFAULT_FIFO_SIZE + 1 Page (4M Bytes + 8K bytes
> or 420000 Hex).
Can anyone explain the purpose of the limit at all? Why is it necessary
to have an upper bound to the amount of memory that can be allocated? I
don't have a copy of (g)libc source hanging around to look at, but the
kernel makes sparce use of this constant. The only thing that looks
relevant is in the sys_shmctl() function (ipc/shm.c) [as an aside, I don't
do any kernel-level development, but this looks like it would be
suspiciously easy to setup with a /proc interface] and the only thing it
uses this value for is a call to verify_area() and to memcpy_tofs().
Is there any reason this would cause a performance hit? I almost looks
like when any shared memory is requested the maximum is allocated but even
if that were the case, there would only be a penalty when the memory is
first allocated. I just don't get it.
> I don't recognize your error messages, but increasing SHMMAX to
> 0x420000 was all that was required on my LX164/2.0.34.
-EINVAL is returned by the kernel when the requested amount of memory is
less than zero or > SHMMAX.
--
Christopher Curtis - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology - System Administrator, Programmer
Melbourne, Florida USA - http://www.lp.org/
next prev parent reply other threads:[~1998-08-05 2:21 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-04 16:20 using cdrecord Christopher Curtis
1998-08-04 16:26 ` Nils Faerber
1998-08-04 16:33 ` Christopher Curtis
1998-08-05 2:03 ` David G. Koontz
1998-08-05 2:19 ` Christopher Curtis [this message]
1998-08-03 2:50 ` SHMMAX (was Re: using cdrecord) Wes Bauske
1998-08-05 3:19 ` Christopher Curtis
1998-08-03 3:39 ` Wes Bauske
1998-08-05 9:36 ` Quant-X Alpha Linux Support
1998-08-05 19:52 ` Wes Bauske
1998-08-05 13:55 ` Christopher Curtis
1998-08-05 15:48 ` SHMMAX (offtopic) David Champion
1998-08-05 19:42 ` SHMMAX (was Re: using cdrecord) Wes Bauske
1998-08-08 20:20 ` Richard Henderson
1998-08-08 23:46 ` Thomas Bogendoerfer
1998-08-09 1:25 ` Richard Henderson
1998-08-05 5:22 ` Richard Henderson
1998-08-04 16:35 ` SHM (was " David Alan Gilbert
1998-08-04 17:08 ` Nils Faerber
1998-08-05 20:29 ` wade
1998-08-04 16:31 ` using cdrecord Maurice Hilarius
1998-08-04 16:43 ` Michal Jaegermann
1998-08-04 17:00 ` Christopher Curtis
1998-08-04 21:05 ` Michal Jaegermann
1998-08-04 21:14 ` Christopher Curtis
1998-08-03 3:17 ` Wes Bauske
1998-08-05 1:58 ` Christopher Curtis
1998-08-05 2:19 ` Maurice Hilarius
1998-08-05 2:28 ` Christopher Curtis
1998-08-05 4:50 ` Michal Jaegermann
1998-08-05 9:41 ` Quant-X Alpha Linux Support
1998-08-05 3:17 ` Quant-X Alpha Linux Support
1998-08-05 3:32 ` Christopher Curtis
1998-08-05 4:25 ` Quant-X Alpha Linux Support
1998-08-05 2:15 ` Maurice Hilarius
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox