Re: shared memory on OS X - 7.4beta4

From: Alvaro Herrera Munoz <alvherre(at)dcc(dot)uchile(dot)cl>
To: John DeSoi <jd(at)icx(dot)net>
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 04:13:01
Message-ID: 20031027041301.GB17375@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On Sun, Oct 26, 2003 at 10:17:50PM -0500, John DeSoi wrote:

> On Sunday, October 26, 2003, at 05:51 PM, Alvaro Herrera wrote:
>
> >How did you install Postgres, and what values did initdb pick for
> >shared_buffers and max_connections?
>
> 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

Well, I can only say that if I lower shmmax to that value, initdb picks
max_connections = 50
shared_buffers = 300

I remember there was a subtle bug in earlier versions corrected after
beta4. Can you try beta5 and see if it works for you? But with beta4 I
get 400/20 instead of 300/50, so this is probably not the same problem.

1000/100 are actually the largest probed values, so maybe initdb is
failing to probe or the postgresql.conf is not written correctly. Does
the initdb output actually say that it is going to use 1000/100? And is
the generated postgresql.conf by that initdb run the file that gets
actually used?

Maybe this is useless anyway, because I'm on Linux. Someone with an
actual OS X system could probably be a lot more helpful.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Cuando no hay humildad las personas se degradan" (A. Christie)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John DeSoi 2003-10-27 05:46:48 Re: shared memory on OS X - 7.4beta4
Previous Message BlakJak 2003-10-27 03:57:46 Re: incrementing and decrementing dates by day increments

Browse pgsql-hackers by date

  From Date Subject
Next Message John DeSoi 2003-10-27 05:46:48 Re: shared memory on OS X - 7.4beta4
Previous Message John DeSoi 2003-10-27 03:17:50 Re: shared memory on OS X - 7.4beta4