From owner-freebsd-stable Fri Sep 8 9:20: 7 2000 Delivered-To: freebsd-stable@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id A497537B43E for ; Fri, 8 Sep 2000 09:19:45 -0700 (PDT) Received: from v-ger.we.lc.ehu.es (v-ger [158.227.6.179]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id SAA15894; Fri, 8 Sep 2000 18:19:39 +0200 (MET DST) Received: from we.lc.ehu.es (localhost [127.0.0.1]) by v-ger.we.lc.ehu.es (8.9.3/8.9.3) with ESMTP id SAA04903; Fri, 8 Sep 2000 18:11:05 +0200 (CEST) (envelope-from jose@we.lc.ehu.es) Message-ID: <39B90F99.7AC3EAC7@we.lc.ehu.es> Date: Fri, 08 Sep 2000 18:11:05 +0200 From: "Jose M. Alcaide" Organization: Universidad del Pais Vasco - Dpto. de Electricidad y Electronica X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: Cy Schubert - ITSD Open Systems Group Cc: John Toon , freebsd-stable@FreeBSD.ORG Subject: Re: SHMSEG and general shared memory settings References: <200009081437.e88Eb7t03189@cwsys.cwsent.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Cy Schubert - ITSD Open Systems Group wrote: > > In message <39B8EA14.D76BFDD2@btinternet.com>, John Toon writes: > > > > Could I suggest that the generic kernel be changed from having a > > SHMSEG=9 (as in LINT) to something higher? > > > > This setting is totally useless if you're planning on running XFre86-4.0 > > with something like GNOME; you simply run out of shared memory segments, > > and consequently many programs just won't start up, issuing "X error of > > failed request". The SHMSEG setting is also one of the "undocumented" > > options in LINT, so consequently it was hard work trying to solve the > > problem. > > > > I have since compiled my custom kernel with SHMSEG=1024, and everything > > works beautifully. > > Should not parameters like this be in loader.conf? This would negate > the need to build a new kernel when changing SYSV parameters. > There are some sysctl tunables for SHM. I have these changed in /etc/sysctl.conf (I am using XFree86 4.0.1, Gnome 1.2 and Sawfish 0.30.3 with no problems): kern.ipc.shmseg=128 kern.ipc.shmall=2048 kern.ipc.shmmax=8388608 Cheers, -- JMA ****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ****** ** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message