Re: performance tuning: shared_buffers, sort_mem; swap

From: Thomas O'Connell <tfo(at)monsterlabs(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: performance tuning: shared_buffers, sort_mem; swap
Date: 2002-08-13 18:20:16
Message-ID: tfo-549650.13201613082002@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

In article <27214(dot)1029257785(at)sss(dot)pgh(dot)pa(dot)us>,
tgl(at)sss(dot)pgh(dot)pa(dot)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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Gamache 2002-08-13 18:37:15 Hardware Tuning
Previous Message Tom Lane 2002-08-13 17:53:14 Re: Leftover processes on shutdown - Debian+JDBC