pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas O'Connell <tfo@monsterlabs.com>
To: pgsql-admin@postgresql.org
Subject: Re: performance tuning: shared_buffers, sort_mem; swap
Date: Tue, 13 Aug 2002 14:32:22 -0500
Message-ID: <tfo-345314.14322213082002@news.hub.org> (raw)
References: <27214.1029257785@sss.pgh.pa.us>
	<tfo-549650.13201613082002@news.hub.org>

In article <tfo-549650.13201613082002@news.hub.org>,
 Thomas O'Connell <tfo@monsterlabs.com> wrote:

> "IpcMemoryCreate: shmget(key=5432001, size=72368128, 03600) failed: 
> Invalid argument 
> This error usually means that PostgreSQL's request for a shared memory
> segment exceeded your kernel's SHMMAX parameter. You can either reduce 
> the request size or reconfigure the kernel with larger SHMMAX. To reduce 
> the request size (currently 72368128 bytes), reduce PostgreSQL's 
> shared_buffers parameter (currently 8192) and/or its max_connections 
> parameter (currently 256). If the request size is already small, it's 
> possible that it is less than your kernel's SHMMIN parameter, in which 
> case raising the request size or reconfiguring SHMMIN is called for.

also, is there a way to figure out the request size the postmaster will 
use when starting up? it doesn't seem to come directly from the 
shared_buffers value.

for instance, if i set shared_buffers to 4096, this should mean 
postmaster will require 4096 * 8192 = 33554432 bytes, right? but when i 
start it, i get the error above with a request size of 38371328. what's 
the extra padding from? sort_mem, etc?

-tfo



view thread (23+ messages)  latest in thread

Message-ID: <tfo-345314.14322213082002@news.hub.org>
Permalink:  ../tfo-345314.14322213082002@news.hub.org/
Also on:    postgresql.org/message-id/tfo-345314.14322213082002@news.hub.org

 · 

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-admin@postgresql.org
  Cc: tfo@monsterlabs.com
  Subject: Re: performance tuning: shared_buffers, sort_mem; swap
  In-Reply-To: <tfo-345314.14322213082002@news.hub.org>
  References: <27214.1029257785@sss.pgh.pa.us> <tfo-549650.13201613082002@news.hub.org> <tfo-345314.14322213082002@news.hub.org>

* 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