X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 5C1E99FB1F4 for ; Mon, 4 Sep 2006 12:14:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 25482-08 for ; Mon, 4 Sep 2006 15:14:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 1331A9FB28A for ; Mon, 4 Sep 2006 12:14:46 -0300 (ADT) Received: (qmail 13126 invoked from network); 4 Sep 2006 15:14:45 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 4 Sep 2006 15:14:45 -0000 In-Reply-To: <87fyf7hm2e.fsf@meuh.mnc.lan> References: <87veo7a5dn.fsf@meuh.mnc.lan> <3743D7B4-2749-41C3-ADE1-39B86F7C98D4@fastcrypt.com> <87fyf7hm2e.fsf@meuh.mnc.lan> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: increasing shared buffers: how much should be removed from OS filesystem cache? Date: Mon, 4 Sep 2006 11:14:44 -0400 To: Guillaume Cottenceau X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/21 X-Sequence-Number: 20707 On 4-Sep-06, at 8:07 AM, Guillaume Cottenceau wrote: > Dave Cramer writes: > >> Guillaume >> >> 1G is really not a significant amount of memory these days, > > Yeah though we have 2G or 4G of RAM in our servers (and not only > postgres running on it). > >> That said 6-10% of available memory should be given to an 8.0 or >> older version of postgresql >> >> Newer versions work better around 25% >> >> I'm not sure what you mean by mechanically removed from >> effective_cache > > I mean that when you allocate more memory to applications, the > consequence is less memory the OS will be able to use for disk > cache. > >> effective cache is really a representation of shared buffers plus OS >> cache > > Are you sure the shared buffers should be counted in? As I > understand the documentation, they should not (as shared buffers > is allocated memory for the OS, not part of "kernel's disk > cache"): Yes, I am sure this should be counted, however effective_cache is not actually allocating anything so it doesn't have to be exact, but it has to be in the correct order of magnitude > > Sets the planner's assumption about the effective size of the > disk cache (that is, the portion of the kernel's disk cache > that will be used for PostgreSQL data files). This is > measured in disk pages, which are normally 8192 bytes each. > The default is 1000. > > -- > Guillaume Cottenceau > Create your personal SMS or WAP Service - visit http:// > mobilefriends.ch/ >