Subject: Re: Increasing SHMMAXPGS
To: Soren S. Jorvang <soren@wheel.dk>
From: Jim Wise <jwise@draga.com>
List: tech-kern
Date: 05/19/2002 23:37:25
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 19 May 2002, Soren S. Jorvang wrote:

>On Sun, May 19, 2002 at 06:46:05PM +0100, David Laight wrote:
>> > Yes. SHMMAXPGS should be nuked from orbit -- it should dynamically
>> > size itself. (We should also somehow garbage collect segments that are
>> > no longer associated with running processes.)
>>
>> I have a horrid wisper of a memory that they are required to
>> stay lurking....
>
>But we could at least make segments whose creator crashes go
>away, as per nasal demons, which I think would go a long way
>in practice.

There should also be a way to limit shared memory use if SHMMAXPGS goes
away -- AFAICT there is no ulimit for shared memory segements, so in the
absence of either such a control (better), or SHMMAXPGS (worse), shmget
would provide a very easy DoS effect.

- -- 
				Jim Wise
				jwise@draga.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (NetBSD)

iD8DBQE86G96N71lEcOYcw4RAkZjAJwMwJ0PEaAxQZ5q5DI9cGq43I93rACfUYQ1
lgNuDbrDuew+LW7C77jfEfg=
=Mtg4
-----END PGP SIGNATURE-----