pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 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 15:55:15 -0400
Message-ID: <25965.1081886115@sss.pgh.pa.us> (raw)
In-Reply-To: <53A6FF52-8D7B-11D8-92CF-000A95AB8896@quotefx.net>
References: <000801c42165$68a67750$4f01a8c0@jeremydunn>
	<24670.1081878949@sss.pgh.pa.us>
	<53A6FF52-8D7B-11D8-92CF-000A95AB8896@quotefx.net>

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



view thread (5+ messages)  latest in thread

Message-ID: <25965.1081886115@sss.pgh.pa.us>
Permalink:  ../25965.1081886115@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25965.1081886115@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, qzhao@quotefx.net
  Subject: Re: configure shmmax on MAC OS X
  In-Reply-To: <25965.1081886115@sss.pgh.pa.us>

* 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