Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 988659FB64D for ; Fri, 13 Apr 2007 01:05:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 67510-06 for ; Fri, 13 Apr 2007 01:05:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from kittyhawk.tanabi.org (nc-67-76-229-82.sta.embarqhsd.net [67.76.229.82]) by postgresql.org (Postfix) with ESMTP id 606029FB4F4 for ; Fri, 13 Apr 2007 01:05:08 -0300 (ADT) Received: from kittyhawk.tanabi.org (localhost [127.0.0.1]) by kittyhawk.tanabi.org (8.13.8/8.13.8) with ESMTP id l3D3vO3v026995; Thu, 12 Apr 2007 23:57:24 -0400 (EDT) Received: from localhost (cheetah@localhost) by kittyhawk.tanabi.org (8.13.8/8.13.8/Submit) with ESMTP id l3D3vOYR026991; Thu, 12 Apr 2007 23:57:24 -0400 (EDT) X-Authentication-Warning: kittyhawk.tanabi.org: cheetah owned process doing -bs Date: Thu, 12 Apr 2007 23:57:24 -0400 (EDT) From: Steve To: Greg Smith cc: pgsql-performance@postgresql.org Subject: Re: Question about memory allocations In-Reply-To: Message-ID: References: <233A9987-ABA5-4491-A304-FDA1F8FCD962@gmail.com> <14019.1176155022@sss.pgh.pa.us> <22512E5C-A60F-43E7-A370-257F7AF956FD@gmail.com> <16374.1176171185@sss.pgh.pa.us> <25200.1176213242@sss.pgh.pa.us> <26925.1176221294@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/289 X-Sequence-Number: 24166 > I didn't notice anyone address this for you yet. There is a tool in > contrib/pg_buffercache whose purpose in life is to show you what the shared > buffer cache has inside it. The documentation in that directory leads > through installing it. The additional variable you'll likely never know is > what additional information is inside the operating system's buffer cache. Okay -- thanks! I'll take a look at this. >> # Leaving this low makes the DB complain, but I'm not sure what's # >> reasonable. >> checkpoint_segments = 128 > > That's a reasonable setting for a large server. The main downside to setting > it that high is longer recovery periods after a crash, but I doubt that's a > problem for you if you're so brazen as to turn off fsync. Hahaha yeah. It's 100% assumed that if something goes bad we're restoring from the previous day's backup. However because the DB is read only for -most- of the day and only read/write at night it's acceptable risk for us anyway. But good to know that's a reasonable value. Steve