From owner-freebsd-current Wed Mar 1 4:37:17 2000 Delivered-To: freebsd-current@freebsd.org Received: from ns.cvzoom.net (ns.cvzoom.net [208.226.154.2]) by hub.freebsd.org (Postfix) with SMTP id 5E4CF37BB3F for ; Wed, 1 Mar 2000 04:37:14 -0800 (PST) (envelope-from dmmiller@cvzoom.net) Received: (qmail 18558 invoked from network); 1 Mar 2000 12:37:13 -0000 Received: from lcm212.cvzoom.net (208.230.69.212) by ns.cvzoom.net with SMTP; 1 Mar 2000 12:37:13 -0000 Date: Wed, 1 Mar 2000 07:36:53 -0500 (EST) From: Donn Miller To: Thomas Graichen , graichen@innominate.de Cc: current@FreeBSD.org Subject: Re: Two queries [ KDE / XFree86 ] In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1 Mar 2000, Thomas Graichen wrote: > > "XFree86-BigFont extension: shmat() failed, size = 4096, errno = 24" > > with those options the error is gone for me - i think the relevant > one is the SHMALL (the others are for postgres) - i found this out > by simply reading the piece of source of XFree86 which emits this > error and there is written that SHMALL should be at least 48M - so > 16k pages = 64M should be fine > > options SHMMAXPGS=4096 > options SHMALL=16384 > options SHMSEG=16 > options SEMMNI=32 > options SEMMNS=128 Here's what I've added to my kernel config to get rid of those errors: # Options for SHM options SHMMAXPGS=4097 options SHMSEG=128 It looks like SHMMAXPGS has to be a power of two + 1. (The original config file says options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" options SHMMAXPGS=1025 So, it looks like SHMMAXPGS has to be a power of two + 1. That's why I chose 4097 instead of 4096 - Donn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message