Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6558C6324A7 for ; Wed, 14 Jul 2010 14:19:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 18878-01 for ; Wed, 14 Jul 2010 17:19:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0FAF3632228 for ; Wed, 14 Jul 2010 14:19:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o6EHJbfO008595; Wed, 14 Jul 2010 13:19:37 -0400 (EDT) To: "Burgholzer, Robert (DEQ)" cc: pgsql-admin@postgresql.org Subject: Re: proper tuning for restoring from pg_dump in 8.3.7 In-reply-to: References: <1279126650.22775.9.camel@jd-desktop.unknown.charter.com> Comments: In-reply-to "Burgholzer, Robert (DEQ)" message dated "Wed, 14 Jul 2010 13:07:48 -0400" Date: Wed, 14 Jul 2010 13:19:37 -0400 Message-ID: <8594.1279127977@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/74 X-Sequence-Number: 35093 "Burgholzer, Robert (DEQ)" writes: > That said, the time to restore is explainable, but is there something in > my tuning that is causing all of my memory to be eaten? That's normal behavior. A working Linux/Unix system *should* have near zero free memory. If it doesn't, either the filesystem cache is failing to do its job, or you recently booted the machine and it hasn't had a chance to fill the cache, or you bought way more RAM than your workload has any use for. > We seem to have some undiagnosed issue whereby opening and closing large > files on the system leaves a lot in the cache -- I am guessing that this > is my culprit and NOT my pg tuning? That's called "it's working correctly". If you want to get an accurate picture of whether the system is under memory pressure, you need to discount filesystem cache, and also pay attention to whether anything much has been pushed out to swap. regards, tom lane