From: "Wes Bauske" <wsb@paralleldata.com>
To: axp-list@redhat.com
Subject: Re: SHMMAX (was Re: using cdrecord)
Date: Mon, 03 Aug 1998 02:50:43 +0000 [thread overview]
Message-ID: <35C52583.7C0F305F@paralleldata.com> (raw)
In-Reply-To: Pine.GSO.3.96.980804220155.8059X-100000@yacht.ee.fit.edu
Christopher Curtis wrote:
>
> 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().
It depends on how the system works. A SHM segment takes up
one of 16 256MB segments on older RS/6000 systems that you can't
use for other memory so if you use several SHM segments, you
can decrease your available memory within the process significantly.
Anyone know if Alpha's do something similar??
>
> 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.
>
Actually, couldn't you make a small mod to cdrecord to
do some minor searching to figure out how much SHM it
can get?? Then, if it didn't get the optimal amount, issue
a warning and proceed with the less optimal amount.
A simple start at 4MB and decrement by 4KB until it
works would be sufficient...
That way, there is less user intervention until one
creates a coaster...
At $.99 a blank CD now, it's not too painful to screw
up but I've never had a buffer underrun with cdrecord.
Course I put the real heavy work on other systems than
the one with cdrecord running so load isn't a big
problem for my setup. I found my Window's CD recorder
much more likely to screw up than cdrecord. I have
half a dozen expensive coasters. I've had the cd writer
for a couple years now and it did pain me the first
year or so when it happened.
From what I remember, the default Solaris 2.5 SHM max
is only 1MB so 4MB isn't that bad.
Wes
next prev parent reply other threads:[~1998-08-05 2:58 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 ` SHMMAX (was Re: using cdrecord) Christopher Curtis
1998-08-03 2:50 ` Wes Bauske [this message]
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