Re: proper tuning for restoring from pg_dump in 8.3.7

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Burgholzer, Robert (DEQ)" <Robert(dot)Burgholzer(at)deq(dot)virginia(dot)gov>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: proper tuning for restoring from pg_dump in 8.3.7
Date: 2010-07-14 17:19:37
Message-ID: 8594.1279127977@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Burgholzer, Robert (DEQ)" <Robert(dot)Burgholzer(at)deq(dot)virginia(dot)gov> 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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Burgholzer, Robert (DEQ) 2010-07-14 17:45:25 Re: proper tuning for restoring from pg_dump in 8.3.7
Previous Message Kevin Grittner 2010-07-14 17:18:16 Re: proper tuning for restoring from pg_dump in 8.3.7