Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4F800475B3F for ; Tue, 13 Aug 2002 15:32:23 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id B270E475821 for ; Tue, 13 Aug 2002 15:32:22 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 3389F3820DF; Tue, 13 Aug 2002 15:32:22 -0400 (EDT) From: Thomas O'Connell X-Newsgroups: comp.databases.postgresql.admin Subject: Re: performance tuning: shared_buffers, sort_mem; swap Date: Tue, 13 Aug 2002 14:32:22 -0500 Organization: Monster Labs, Inc. Lines: 24 Message-ID: References: <27214.1029257785@sss.pgh.pa.us> X-Complaints-To: news@hub.org User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/164 X-Sequence-Number: 5279 In article , Thomas O'Connell 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