From owner-freebsd-stable Fri May 4 9:42:45 2001 Delivered-To: freebsd-stable@freebsd.org Received: from smtp.bmi.net (smtp.bmi.net [204.57.191.31]) by hub.freebsd.org (Postfix) with ESMTP id 3ED8637B423 for ; Fri, 4 May 2001 09:42:42 -0700 (PDT) (envelope-from jmcoopr@webmail.bmi.net) Received: from webmail.bmi.net (dsl-154.bmi.net [207.173.60.230]) by smtp.bmi.net (Pro-8.9.3/Pro-8.9.3) with ESMTP id JAA02013; Fri, 4 May 2001 09:42:34 -0700 Message-ID: <3AF2DBFD.37AA2124@webmail.bmi.net> Date: Fri, 04 May 2001 09:42:37 -0700 From: John Merryweather Cooper X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-US, en, en-GB MIME-Version: 1.0 To: Matt Dillon Cc: David Petrou , 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> <200105041614.f44GEsb25774@earth.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matt Dillon wrote: > > :.. > :> 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 Excellent! Other than larger swap usage, I haven't seen a downside to my settings (although I think they're a little on the large end) Performance with graphics, particularly with xscreensaver seems much improved though. jmc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message