From owner-freebsd-stable Thu Jun 28 13: 8: 0 2001 Delivered-To: freebsd-stable@freebsd.org Received: from yertle.kciLink.com (yertle.kcilink.com [216.194.193.105]) by hub.freebsd.org (Postfix) with ESMTP id 48D1437B405 for ; Thu, 28 Jun 2001 13:07:56 -0700 (PDT) (envelope-from khera@kciLink.com) Received: from onceler.kciLink.com (onceler.kciLink.com [216.194.193.106]) by yertle.kciLink.com (Postfix) with ESMTP id 67A512E45F for ; Thu, 28 Jun 2001 16:07:40 -0400 (EDT) Received: (from khera@localhost) by onceler.kciLink.com (8.11.4/8.11.3) id f5SK7eg78597; Thu, 28 Jun 2001 16:07:40 -0400 (EDT) (envelope-from khera) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15163.36492.238527.989902@onceler.kciLink.com> Date: Thu, 28 Jun 2001 16:07:40 -0400 To: stable@freebsd.org Subject: incorrect comment about SHMALL in LINT X-Mailer: VM 6.92 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Looking at the LINT file, trying to find some good SHM options to improve the performance of my PostgreSQL server, I see this: options SHMMAXPGS=1025 # max amount of shared memory pages (4k on i386) options SHMALL=1025 # max amount of shared memory (bytes) Now, that second comment smells fishy to me. I'm suspecting that should be pages. So poking around Google, I came across this page: http://gatekeeper.dec.com/pub/BSD/FreeBSD/FreeBSD-current/src/sys/i386/conf/NOTES Where it describes the SHM* parameters very clearly and nicely. This would be a great addition to 4-STABLE, too, methinks. Anyhow, this doc describes the parameters as: # Maximum size, in bytes, of a single System V shared memory region. options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" options SHMMAXPGS=1025 # Maximum number of shared memory pages system wide. options SHMALL=1025 this latter comment seems to agree with my thinking. Is this "documented" incorrectly in the LINT file? Also, where does one find the defaults, other than "sysctl kern.ipc" on a running system without the values explicitly specified? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vivek Khera, Ph.D. Khera Communications, Inc. Internet: khera@kciLink.com Rockville, MD +1-240-453-8497 AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message