From owner-freebsd-stable Fri May 4 9:15: 7 2001 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 46CB637B422 for ; Fri, 4 May 2001 09:15:03 -0700 (PDT) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.11.2) id f44GEsb25774; Fri, 4 May 2001 09:14:54 -0700 (PDT) (envelope-from dillon) Date: Fri, 4 May 2001 09:14:54 -0700 (PDT) From: Matt Dillon Message-Id: <200105041614.f44GEsb25774@earth.backplane.com> To: David Petrou Cc: Antoine.Beaupre@ericsson.ca, freebsd-stable@FreeBSD.ORG Subject: Re: Should /sys/i386/conf/GENERIC's SysV shared memory settings+defaults be re-thought? References: <20010503221951.G47670@amant.pdl.cs.cmu.edu> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :.. :> while now, on a Pentium 166Mhz with 32M but around 100-150Mb or swap. :> :> Never had problems with SHM. : :i've commented about the problems with shm and a heavy enlightenment / :gnome load a few weeks ago to stable, but my message was pretty much :ignored. also note that this issue has been brought up in current a :year or so ago. : :my problems went away with: : : options SHMMAXPGS=8192 : options SHMMNI=4096 : options SHMSEG=1024 : :i don't know enough about the internals to know the downside for using :these high values, but i'm pretty confident on today's architectures :... : :david In general there is no downside. Shared memory is swap-backed (though the in-kernel control structures are not). I think it's high time that the system defaults be raised. I'll do it later today. You should also be able to raise the defaults using appropriate sysctl's, e.g.: sysctl -a | fgrep kern.ipc sysctl -w kern.ipc.shmmax=33554432 And, of course, with kernel conf variables. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message