pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mcelroy, tim <tim.mcelroy@bostonstock.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Memory and/or cache issues?
Date: Fri, 5 May 2006 09:57:58 -0400
Message-ID: <0C4841B42F87D51195BD00B0D020F5CB044B260D@MORPHEUS> (raw)

Are you saying the kernel's disc cache may be getting whacked?  No, I
understand that PG should use as much memory as it can and the system as
well.  The main problem here is that with almost all the 8GB of RAM 'in use'
when I try to do a pg_dump or vacuumdb I run out of memory and the system
crashes....

I well understand that unused memory is not a good thing, just that when you
have none and can't do the maint work....bad stuff happens.  For example, I
just created a benchdb on my DEV box with 1,000,000 tuples.  As this ran the
mem in use jumped up 1G and it hasn't gone down?  Once the PG process has
finished its task shouldn't it release the memory it used?

Thanks,
Tim


 -----Original Message-----
From: 	Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent:	Friday, May 05, 2006 9:44 AM
To:	mcelroy, tim
Cc:	pgsql-performance@postgresql.org
Subject:	Re: [PERFORM] Memory and/or cache issues? 

"mcelroy, tim" <tim.mcelroy@bostonstock.com> writes:
> I see this on all the postgres installations, no matter what I
> set the postgresql.conf settings to regarding memory allocation, once
> postgres starts up 95% of the memory on the box is used.  Is there a way
> within Linux to 'see' what or who is actually using this memory?

Probably kernel disk cache.  Are you under the misimpression that unused
memory is a good thing?  If a Unix-ish system *isn't* showing near zero
free memory under load, the kernel is wasting valuable resources.

			regards, tom lane

view thread (27+ messages)  latest in thread

Message-ID: <0C4841B42F87D51195BD00B0D020F5CB044B260D@MORPHEUS>
Permalink:  ../0C4841B42F87D51195BD00B0D020F5CB044B260D@MORPHEUS/
Also on:    postgresql.org/message-id/0C4841B42F87D51195BD00B0D020F5CB044B260D@MORPHEUS

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: tim.mcelroy@bostonstock.com, tgl@sss.pgh.pa.us
  Subject: Re: Memory and/or cache issues?
  In-Reply-To: <0C4841B42F87D51195BD00B0D020F5CB044B260D@MORPHEUS>
  References: <0C4841B42F87D51195BD00B0D020F5CB044B260D@MORPHEUS>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox