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 A513A9FB252 for ; Mon, 4 Sep 2006 09:09:47 -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 84737-04-5 for ; Mon, 4 Sep 2006 12:09:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mnc.ch (62-2-77-205.static.cablecom.ch [62.2.77.205]) by postgresql.org (Postfix) with ESMTP id DFF949FB2D9 for ; Mon, 4 Sep 2006 09:08:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.mnc.ch (Postfix) with ESMTP id F2D7BA8302; Mon, 4 Sep 2006 14:13:23 +0200 (CEST) Received: from mail.mnc.ch ([127.0.0.1]) by localhost (mail.test.lan [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 01704-01; Mon, 4 Sep 2006 14:13:22 +0200 (CEST) Received: from meuh.mnc.lan (62-2-77-204.static.cablecom.ch [62.2.77.204]) by mail.mnc.ch (Postfix) with ESMTP id 8F678A82B9; Mon, 4 Sep 2006 14:13:22 +0200 (CEST) Received: by meuh.mnc.lan (Postfix, from userid 1000) id 239A11836F4; Mon, 4 Sep 2006 14:07:37 +0200 (CEST) To: Dave Cramer Cc: pgsql-performance@postgresql.org Subject: Re: increasing shared buffers: how much should be removed from OS filesystem cache? References: <87veo7a5dn.fsf@meuh.mnc.lan> <3743D7B4-2749-41C3-ADE1-39B86F7C98D4@fastcrypt.com> X-Hashcash: 1:20:060904:pg@fastcrypt.com::MtxHOz/kqxxekdeL:01O8z X-Hashcash: 1:20:060904:pgsql-performance@postgresql.org::/Ghy1fnEJKvlVij9:000000000000000000000000000004ag9 From: Guillaume Cottenceau Date: 04 Sep 2006 14:07:37 +0200 In-Reply-To: <3743D7B4-2749-41C3-ADE1-39B86F7C98D4@fastcrypt.com> Message-ID: <87fyf7hm2e.fsf@meuh.mnc.lan> Lines: 37 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at mnc.ch X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/19 X-Sequence-Number: 20705 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"): 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/