pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@qwest.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Domenico Sgarbossa <domenico@xtecnica.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: [BULK] Problems with vacuum!
Date: Fri, 18 Jun 2004 12:07:20 -0600
Message-ID: <1087582040.28062.13.camel@localhost.localdomain> (raw)
In-Reply-To: <20554.1087571463@sss.pgh.pa.us>
References: <003c01c44fbd$c84a6af0$2500fa0a@CardServices.TCI.com>
	<004c01c44fc3$d7cdeaf0$70c8007e@xtecnica.it>
	<87pt8616i3.fsf@asmodeus.mcnaught.org>
	<1087226647.1775.14.camel@kaos>
	<011101c4553b$c1967130$70c8007e@xtecnica.it>
	<20554.1087571463@sss.pgh.pa.us>

On Fri, 2004-06-18 at 09:11, Tom Lane wrote:
> "Domenico Sgarbossa" <domenico@xtecnica.com> writes:
> > so when the users go home, i've got something like 15/20000kb free ram, the
> > rest is cached and 0kb of swap...
> > It seems that when pg_dump starts the cached memory isn't released so the
> > system begin to swap,
> 
> A sane kernel should drop disk buffers rather than swapping.  We heard
> recently about a bug in some versions of the Linux kernel that cause it
> to prefer swapping to discarding disk cache, though.  It sounds like
> that's what you're hitting.  Look into newer kernels ...

This was a common problem in the linux 2.4 series kernels, but has
supposedly been fixed in the 2.6 kernels.  Having lots of memory and
turning off swap will "fix" the problem in 2.4, but if you run out of
real mem, you're hosed.




view thread (11+ messages)  latest in thread

Message-ID: <1087582040.28062.13.camel@localhost.localdomain>
Permalink:  ../1087582040.28062.13.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1087582040.28062.13.camel@localhost.localdomain

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: smarlowe@qwest.net, tgl@sss.pgh.pa.us, domenico@xtecnica.com
  Subject: Re: [BULK] Problems with vacuum!
  In-Reply-To: <1087582040.28062.13.camel@localhost.localdomain>

* 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