X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E51FA5288A for ; Wed, 17 Aug 2005 14:17:37 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 60870-01 for ; Wed, 17 Aug 2005 17:17:35 +0000 (GMT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by svr1.postgresql.org (Postfix) with ESMTP id 55B5A52BD7 for ; Wed, 17 Aug 2005 14:17:34 -0300 (ADT) Received: by zproxy.gmail.com with SMTP id 8so143435nzo for ; Wed, 17 Aug 2005 10:17:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=biNdqOqNLbMTnuoY+edDq6gJ8kgNC++vypfQ1YlVt/c+URjP5uqdlLDeMfKRxy1D8iVfvgLK9dEs8fKv64b51ABxNMplkhGVhFDNXxn2e2w0eqPdU1Sk3vWNUyhlg44AJGMXvkThwX55ZzPf+63u2iBOH812gSMkTdby8g9ak0w= Received: by 10.36.9.2 with SMTP id 2mr657392nzi; Wed, 17 Aug 2005 10:17:34 -0700 (PDT) Received: by 10.36.24.2 with HTTP; Wed, 17 Aug 2005 10:17:33 -0700 (PDT) Message-ID: <1d219a6f050817101729be31a0@mail.gmail.com> Date: Wed, 17 Aug 2005 13:17:33 -0400 From: Chris Hoover To: pgsql-performance@postgresql.org Subject: Re: Tuning Effective Cache Question In-Reply-To: <1d219a6f05081710146acb9d40@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1d219a6f05081710146acb9d40@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 required=5 tests=[RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/208 X-Sequence-Number: 13955 Sorry, forgot to state that we are still on PG 7.3.4. On 8/17/05, Chris Hoover wrote: > I have some questions about tuning my effective_cache_size >=20 > I have a RHEL 2.1 box running with dual Xeon (2.6 GHz I believe and > they have HT on). The box has 8GB memory. In my postgresql.conf, I > have set the effective_cache_size =3D 530505 (~4GB). >=20 > However, I am noticing on this machine, top is telling me that I have > ~3.5GB in the buff and only 3GB in cached. >=20 > Here are the exact numbers: > Mem: 7720040K av, 7714364K used, 5676K free, 314816K shrd, 3737540K = buff > Swap: 2096440K av, 119448K used, 1976992K free 3188192K = cached >=20 >=20 > 1. Is the configuration that linux is running in hurting PostgreSQL in a= ny way? >=20 > 2. Is there a negative impact of the effective_cache_size being > larger than the actual cached memory? >=20 > 3. What effect postive or negative does the buff memory have on PostgreS= QL.\ >=20 > 4. What exactly is this buff memory used for? We have had a time > trying to find a good explanation of what it means. >=20 > Overall, this system appears to be running fine. However, I was taken > back when I saw the current memory configuration. We have been > walking a fine line performance wise, and can quickly become i/o > starved. So I want to make sure that I am not pushing the db towards > the i/o starved side. >=20 > Thanks for any insight, >=20 > Chris >