From: Joshua D. Drake <jd@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Qing Zhao <qzhao@quotefx.net>
Cc: 'Postgresql Performance' <pgsql-performance@postgresql.org>
Subject: Re: configure shmmax on MAC OS X
Date: Tue, 13 Apr 2004 13:59:13 -0700
Message-ID: <407C54A1.6090908@commandprompt.com> (raw)
In-Reply-To: <25965.1081886115@sss.pgh.pa.us>
References: <000801c42165$68a67750$4f01a8c0@jeremydunn>
<24670.1081878949@sss.pgh.pa.us>
<53A6FF52-8D7B-11D8-92CF-000A95AB8896@quotefx.net>
<25965.1081886115@sss.pgh.pa.us>
Hello,
I found that if you SHMALL value was less than your SHMMAX value,
the value wouldn't take.
J
Tom Lane wrote:
> Qing Zhao <qzhao@quotefx.net> writes:
>
>>My suspision is that the change i made in /etc/rc does not take
>>effect.Is there a way to check it?
>
>
> sysctl has an option to show the values currently in effect.
>
> I believe that /etc/rc is the correct place to set shmmax on OSX 10.3 or
> later ... but we have seen prior reports of people having trouble
> getting the setting to "take". There may be some other constraint
> involved.
>
>
>>sysctl -w kern.sysv.shmmax=4294967296 // byte
>
>
> Hmm, does sysctl work for values that exceed the range of int?
>
> There's no particularly good reason to try to set shmmax as high as you
> are trying anyhow; you really don't need more than a couple hundred meg
> in Postgres shared memory. It's better to leave the kernel to manage
> the bulk of your RAM.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jd@commandprompt.com, tgl@sss.pgh.pa.us, qzhao@quotefx.net
Subject: Re: configure shmmax on MAC OS X
In-Reply-To: <407C54A1.6090908@commandprompt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox