X-Original-To: pgsql-admin@postgresql.org Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.88]) by postgresql.org (Postfix) with ESMTP id 4BB774758C9 for ; Sat, 15 Mar 2003 22:56:00 -0500 (EST) Received: from asmtp01.mac.com (asmtp01-qfe3 [10.13.10.65]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h2G3u4iO029209 for ; Sat, 15 Mar 2003 19:56:04 -0800 (PST) Received: from [172.30.10.6] ([12.236.49.7]) by asmtp01.mac.com (Netscape Messaging Server 4.15) with ESMTP id HBTPLG00.6T7; Sat, 15 Mar 2003 19:56:04 -0800 Date: Sat, 15 Mar 2003 19:56:02 -0800 From: R Blake To: pgsql-admin@postgresql.org, darwin-kernel@lists.apple.com Subject: help? trouble setting Shared Memory parameters in OSX kernel Message-ID: <2147483647.1047758162@[172.30.10.6]> X-Mailer: Mulberry/3.0.3 (Mac OS X) X-Mailer: IMAP Client MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archive-Number: 200303/241 X-Sequence-Number: 7881 hi all, i've successfully built postgreSQL 7.3.2-STABLE on Mac OSX 10.2.4. much trouble launching it led me to the discussions () on setting shared memory parameters -- especially SHMMAX -- in OSX's "/System/Library/StartupItems/SystemTuning/SystemTuning" so, as instructed, i changed the defaults (near the bottom of SystemTuning): sysctl -w kern.sysv.shmmax=4194304 sysctl -w kern.sysv.shmmin=1 sysctl -w kern.sysv.shmmni=32 sysctl -w kern.sysv.shmseg=8 sysctl -w kern.sysv.shmall=1024 to: sysctl -w kern.sysv.shmmax=33554432 # bytes sysctl -w kern.sysv.shmmin=1 sysctl -w kern.sysv.shmmni=32 sysctl -w kern.sysv.shmseg=8 sysctl -w kern.sysv.shmall=8192 # 4K pages and defined (in postgresql.conf): shared_buffers = 2048 max_coinnection = 1024 and rebooted. unfortunately, immediately after system launch, i still couldn't launch postgres eventually, a random check with "sysctl -a" gave: kern.sysv.shmmax: -1 kern.sysv.shmmin: -1 kern.sysv.shmmni: -1 kern.sysv.shmseg: -1 kern.sysv.shmall: -1 OBVIOUSLY, a problem! i CAN enter the sysctl settings at the command line, verify success with 'sysctl -a', and then postgres launches/operates just fine ..... QUESTIONS: any idea why these setting are being written at boot to values of "-1"? how do i get these setting to 'stick'? thanks, richard