Subject: Re: Increasing SHMMAXPGS
To: Curt Sampson <cjs@cynic.net>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 07/07/2002 20:26:49
On Mon, Jul 08, 2002 at 10:18:49AM +0900, Curt Sampson wrote:
> On Sun, 7 Jul 2002, Chuck Silvers wrote:
> 
> > since SHM segments actually do have names and they exist independently
> > of mappings in any process, I'll argue that they're really more like
> > files than anonymous memory.  SHM segments also have owners, permissions
> > timestamps, etc.  the SHM namespace is basically a virtual-memory-backed
> > file system with a flat namespace, so it would really make more sense
> > to think of it like a file system.
> 
> All right, I think I'll buy that. But you suggest a RAM+swap-at-the-moment
> check; I was thinking more along the lines of a limit set at system boot.
> The latter seems simpler to me; one could just set the sysctl variable
> at boot time to, say, 1/2 the total number of pages in RAM and swap, and
> then users can see right there what the limit is.

just having the sysctl tunable would be fine at this point.  I guess
I was thinking about the swap-overcommit-prevention thing, but that's
a different can of worms that can be tackled separately.

-Chuck