Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2793564FF05 for ; Tue, 16 Sep 2008 15:50:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22196-10 for ; Tue, 16 Sep 2008 15:50:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by postgresql.org (Postfix) with ESMTP id 86C1964FCE1 for ; Tue, 16 Sep 2008 15:50:30 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so3662076rvf.43 for ; Tue, 16 Sep 2008 11:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=0bAy3eJnOqIg/bY3yGkURN3k3gQ5077m+Z0W5+Lvynw=; b=IXpFm6VG9DDx5CvC23kL6IbJVLS9yzCfmeCprSX7S7/hjfMiNVKNpqQwREVIpmv67O FX6TByKHSdsu3q8jfZJfULyUfoMPpQcYqxkrNyP13A2yWv7k3yzcTN/n9a6J/ULE0ghE SyLdXcsNtZbfsX7Sd20f6PkAnJgqE84aTT00s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vlPNXIg6Ks3+2Mo+XgS3n/iEqk59bLZH9OossqPQgK2d6+QViMUnlGYWaLVWt2no3O Lr6m5ywHx0rx2OW9NHL+Okc2z6cChvcxRY1sPiT8Q1GBgfCc4+ZWPN8jUvYCF7KQQw0X BlVnOfQguH9HxiUE1Hy+9eZQrohoGW8/N7G1s= Received: by 10.141.74.18 with SMTP id b18mr5915986rvl.159.1221591028238; Tue, 16 Sep 2008 11:50:28 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Tue, 16 Sep 2008 11:50:28 -0700 (PDT) Message-ID: Date: Tue, 16 Sep 2008 12:50:28 -0600 From: "Scott Marlowe" To: "kevin kempter" Subject: Re: Setting Effective Cache Size Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/164 X-Sequence-Number: 30257 On Tue, Sep 16, 2008 at 9:30 AM, kevin kempter wrote: > Hi All; > > Is there an easy way to determine the actual OS disk cache size or at least > a set of guidelines based on the OS and disk subsystem type ? On a DB only machine, you can expect the OS to use most of the spare memory for disk cache eventually. So, if you've got a 16Gig machine and pgsql and the OS are using ~ 2 Gigs or so, the effective cache size will be what's left. OTOH, if the machine does other things (file / print server, web server, etc...) then you kinda have to fudge factor it. Generally pgsql will still use more disk cache than those other things, due to having more disk access going on all the time, but really it depends on your usage patterns. Luckily Effective cache size is a big course knob so being off by a gig or three isn't a really big deal.