pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Wipf <brian@clickspace.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: pgsql-performance@postgresql.org, Guido Neitzer <lists@event-s.net>
Subject: Re: shared_buffers > 284263 on OS X
Date: Sat, 18 Nov 2006 20:13:26 -0700
Message-ID: <817D9C4C-05F0-45FB-9D63-B63CFE2C009E@clickspace.com> (raw)
In-Reply-To: <412.1163874633@sss.pgh.pa.us>
References: <B242A585-E94C-4ECA-8FA9-DCE72E1D8838@shoptoit.ca>
	<82E59D2F-0946-4405-8F11-4CF5184A9399@fastcrypt.com>
	<412.1163874633@sss.pgh.pa.us>

On 18-Nov-06, at 11:30 AM, Tom Lane wrote:
> Dave Cramer <pg@fastcrypt.com> writes:
>> On 16-Nov-06, at 7:03 PM, Brian Wipf wrote:
>>> Has anyone else noticed this limitation on OS X? Any ideas on how I
>>> might get shared_buffers higher than 284263?
>
>> My guess is something else has taken shared memory ahead of you. OS X
>> seems to be somewhat strange in how it deals with shared memory. Try
>> allocating more to shmmax ?
>
> Look in "ipcs -m -a" output to check this theory.  (I am glad to see
> that ipcs and ipcrm are finally there in recent OS X releases ---  
> awhile
> back they were not, leaving people to fly entirely blind while dealing
> with issues like this :-()

ipcs -m -a
Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP  CREATOR   CGROUP  
NATTCH  SEGSZ  CPID  LPID   ATIME    DTIME    CTIME
m 196607    5432001 --rw------- postgres postgres postgres  
postgres      8 -2100436992    223    223 23:00:07  2:49:44 23:00:07

(I also bumped shmmax and shmall to 6GB with the same shared_buffers  
limit.)

It certainly is unfortunate if Guido's right and this is an upper  
limit for OS X. The performance benefit of having high shared_buffers  
on our mostly read database is remarkable.




view thread (21+ messages)  latest in thread

Message-ID: <817D9C4C-05F0-45FB-9D63-B63CFE2C009E@clickspace.com>
Permalink:  ../817D9C4C-05F0-45FB-9D63-B63CFE2C009E@clickspace.com/
Also on:    postgresql.org/message-id/817D9C4C-05F0-45FB-9D63-B63CFE2C009E@clickspace.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: brian@clickspace.com, tgl@sss.pgh.pa.us, pg@fastcrypt.com, lists@event-s.net
  Subject: Re: shared_buffers > 284263 on OS X
  In-Reply-To: <817D9C4C-05F0-45FB-9D63-B63CFE2C009E@clickspace.com>
  References: <B242A585-E94C-4ECA-8FA9-DCE72E1D8838@shoptoit.ca> <82E59D2F-0946-4405-8F11-4CF5184A9399@fastcrypt.com> <412.1163874633@sss.pgh.pa.us> <817D9C4C-05F0-45FB-9D63-B63CFE2C009E@clickspace.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