Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 26 Jul 2004 11:31:16 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Setting SHMMAX in Cygwin Message-ID: <20040726093116.GB30714@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <001a01c47281$c8b02070$99280518 AT Gene> <20040726083046 DOT GA732 AT cygbert DOT vinschen DOT de> <002b01c472f1$c5d26000$99280518 AT Gene> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002b01c472f1$c5d26000$99280518@Gene> User-Agent: Mutt/1.4.2i On Jul 26 02:20, Gene C. Ruzicka wrote: > > > > > > Further comment: Uncovering this information was somewhat painful. > > > > Didn't you read /usr/share/doc/Cygwin/cygserver.README and in turn > > /etc/cygserver.conf in the first place? The configuration file contains > > the comment > > > > "kern.ipc.shmmaxpgs: Maximum pages available for XSI shared memory." > > > > I thought that explains it. > > > > > > Corinna > > > You are correct that those files explain how to set shmmaxpgs, and > I noticed that early on. The problem is that I wanted to set shmmax, NOT > shmmaxpgs per se, but it seems that the only place that spells out the relationship > between the two parameters --- thereby suggesting the means to adjust shmmax --- > is in function shminit, which is rather deeply embedded in the source code tree: > file /usr/src/cygwin/winsup/cygserver/sysgv_shm.cc to be precise. I've changed the text in cygserver.conf to this: # kern.ipc.shmmaxpgs: Maximum pages available for XSI shared memory. # Changing shmmaxpgs immediately affects setting SHMMAX. The relation # between shmmaxpgs and SHMMAX is: SHMMAX = shmmaxpgs * getpagesize(). # Default: 8192, Min: 1, Max: 32767 #kern.ipc.shmmaxpgs 8192 HTH, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/