From owner-freebsd-hackers Tue Mar 17 12:33:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA01197 for freebsd-hackers-outgoing; Tue, 17 Mar 1998 12:33:32 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from sendero.simon-shapiro.org (sendero-fddi.Simon-Shapiro.ORG [206.190.148.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA01020 for ; Tue, 17 Mar 1998 12:33:03 -0800 (PST) (envelope-from shimon@simon-shapiro.org) Received: (qmail 7190 invoked from network); 17 Mar 1998 20:13:10 -0000 Received: from localhost.simon-shapiro.org (HELO sendero-fxp0.simon-shapiro.org) (@127.0.0.1) by localhost.simon-shapiro.org with SMTP; 17 Mar 1998 20:13:10 -0000 Message-ID: X-Mailer: XFMail 1.3-alpha-031298 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19980316235635.B22645@keltia.freenix.fr> Date: Tue, 17 Mar 1998 12:13:10 -0800 (PST) Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: Ollivier Robert Subject: Re: How do you increase available SYSV shared memory? Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 16-Mar-98 Ollivier Robert wrote: > According to Kent S. Gordon: >> What is the current limit on SYSV shared memory? I looked quickly at >> the kernel sources but could not find what needs to be changed. > > The following is extracted from my kernel config. file. You can find > similar constant for increasing # of semaphores/message queues. > > -=-=-=- > options SYSVSHM > options SYSVSEM > options SYSVMSG > options "SHMMAXPGS=1024" # 4096 KB of sharable memory This works up to a point. What about 256MB of shared memory? 512MB? Yes, folks, this IS a valid and useful question. Hint: The discussion that will undoubtedly follow, should be diverted to freebsd-database. I managed to get up to about 7,000 PostgreSQL buffers with: in sys/i386/conf: NOMIS-smp:options "SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)" NOMIS-smp:options SHMMAXPGS=16385 NOMIS-smp:options SYSVSHM And in sys/i386/include: Index: vmparam.h =================================================================== RCS file: /Archives/FreeBSD/FreeBSD-CVS/src/sys/i386/include/vmparam.h,v retrieving revision 1.29 diff -c -r1.29 vmparam.h *** vmparam.h 1998/02/23 07:42:40 1.29 --- vmparam.h 1998/03/15 19:53:17 *************** *** 52,58 **** /* * Virtual memory related constants, all in bytes */ ! #define MAXTSIZ (16UL*1024*1024) /* max text size */ #ifndef DFLDSIZ #define DFLDSIZ (64UL*1024*1024) /* initial data size lim it */ #endif --- 52,58 ---- /* * Virtual memory related constants, all in bytes */ ! #define MAXTSIZ (32UL*1024*1024) /* max text size */ #ifndef DFLDSIZ #define DFLDSIZ (64UL*1024*1024) /* initial data size lim it */ #endif *************** *** 117,123 **** /* virtual sizes (bytes) for various kernel submaps */ #ifndef VM_KMEM_SIZE ! #define VM_KMEM_SIZE (12 * 1024 * 1024) #endif /* --- 117,123 ---- /* virtual sizes (bytes) for various kernel submaps */ #ifndef VM_KMEM_SIZE ! #define VM_KMEM_SIZE (64 * 1024 * 1024) #endif /* Beyond that, things got ugly. We need David's input on how to go larger. ---------- Sincerely Yours, Simon Shapiro Shimon@Simon-Shapiro.ORG Voice: 503.799.2313 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message