From: | John DeSoi <jd(at)icx(dot)net> |
---|---|
To: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
Cc: | Adam Witney <awitney(at)sghms(dot)ac(dot)uk>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: shared memory on OS X - 7.4beta4 |
Date: | 2003-10-27 03:17:50 |
Message-ID: | 2564DA11-082C-11D8-B7F8-0030656EE7B2@icx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On Sunday, October 26, 2003, at 05:51 PM, Alvaro Herrera wrote:
> Huh, this is strange. IIRC during the installation process, initdb is
> supposed to determine which values actually work; those are affected by
> the shmmax operating system mostly, and the idea is to enable the
> installation process to pick more reasonable values out-of-the-box for
> memory usage that will work on your system.
>
> How did you install Postgres, and what values did initdb pick for
> shared_buffers and max_connections?
Here were my steps to install and attempt to run it:
Install (clean install to a new directory)
./configure --prefix=/Unix/postgresql --enable-locale
--without-readline --with-includes=/sw/include --with-libraries=/sw/lib
--with-openssl=/sw/lib
make
make install
Initdb:
initdb -D /data/pgtest --no-locale
Startup:
pg_ctl start -D /data/pgtest -l /data/pgtest/logfile -o '-i -p 5432'
the postgresql.conf has
max_connections = 100
shared_buffers = 1000
And here are are the default settings for OS X 10.2.6:
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
From | Date | Subject | |
---|---|---|---|
Next Message | Gerard M. Operana | 2003-10-27 03:24:35 | foxpro to postgresql7.1 |
Previous Message | Robert Creager | 2003-10-27 00:44:38 | Re: Question regarding Perl, DBI, and fork() |
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera Munoz | 2003-10-27 04:13:01 | Re: shared memory on OS X - 7.4beta4 |
Previous Message | Christopher Kings-Lynne | 2003-10-27 03:15:56 | Re: BEGIN vs START TRANSACTION |