Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id BB65A6324A7 for ; Wed, 14 Jul 2010 14:18:12 -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 17711-04 for ; Wed, 14 Jul 2010 17:18:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (unknown [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 8F559632228 for ; Wed, 14 Jul 2010 14:18:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 5751234803A; Wed, 14 Jul 2010 10:17:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iuHJcwPgS9+T; Wed, 14 Jul 2010 10:17:39 -0700 (PDT) Received: from [75.142.153.107] (unknown [75.142.153.107]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id F332C348038; Wed, 14 Jul 2010 10:17:38 -0700 (PDT) Subject: Re: proper tuning for restoring from pg_dump in 8.3.7 From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: "Burgholzer, Robert (DEQ)" Cc: pgsql-admin@postgresql.org In-Reply-To: References: <1279126650.22775.9.camel@jd-desktop.unknown.charter.com> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Wed, 14 Jul 2010 10:17:36 -0700 Message-ID: <1279127856.22775.21.camel@jd-desktop.unknown.charter.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201007/72 X-Sequence-Number: 35091 On Wed, 2010-07-14 at 13:07 -0400, Burgholzer, Robert (DEQ) wrote: > 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? Please don't top post. > > 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? > > Thanks again, > r.b. You mention the use of top. Assessing just the the reference to "free" memory isn't as accurate as you would think. I am going to assume you are using Linux. Linux will suck all (well not all but close) out of free and put it into things like buffers until free memory is actually needed. For example on my workstation: Mem: 6126116k total, 5910328k used, 215788k free, 495684k buffers Swap: 3919352k total, 5792k used, 3913560k free, 3178548k cached Which means exactly nothing, unless that SWAP number starts churning. Sincerely, Joshua D. Drake -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering