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 13:20:16 -0500
Message-ID: <tfo-549650.13201613082002@news.hub.org> (raw)
References: <27214.1029257785@sss.pgh.pa.us>

In article <27214.1029257785@sss.pgh.pa.us>,
 tgl@sss.pgh.pa.us (Tom Lane) wrote:

> Uh, which error exactly?  AFAIK all the shared-memory-related messages
> would only come out at postmaster startup, not during peak load.  The
> system is designed to ensure that those resources are all reserved
> during postmaster start.

Sorry, I should've included the whole error in the first place:

"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.

"The PostgreSQL Administrator's Guide contains more information about 
shared memory configuration."

We've gotten this when the machine, a Red Hat 6.2 machine with kernel 
2.4.17; Dual Pentium III 550 MHz processors; and 512 MB RAM is under 
great duress.



view thread (23+ messages)  latest in thread

Message-ID: <tfo-549650.13201613082002@news.hub.org>
Permalink:  ../tfo-549650.13201613082002@news.hub.org/
Also on:    postgresql.org/message-id/tfo-549650.13201613082002@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-549650.13201613082002@news.hub.org>
  References: <27214.1029257785@sss.pgh.pa.us> <tfo-549650.13201613082002@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