Re: problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ian Knopke <knopke(at)music(dot)mcgill(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: problems
Date: 2003-04-20 18:36:10
Message-ID: 10082.1050863770@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ian Knopke <knopke(at)music(dot)mcgill(dot)ca> writes:
> Comparing the beginning and end times from the log, it seems to take the
> same amount of time to insert at the beginning of the process as after
> about twenty minutes. However, I also logged the input from vmstat, which
> shows the amount of memory available shrinking rapidly.

AFAICT you are just showing us kernel disk cache expanding to fill
unused memory. This is normal and not a cause for alarm.

> Eventually the system moves to using swap and things really slow down.

Disk cache can't cause swapping --- the kernel will just throw away
cached pages when the memory is needed for something else. It could
be that you have growth in the number of Postgres processes, or the
sizes of individual processes, but vmstat isn't very helpful for
determining that (good ol' top would be more useful). In any case
you haven't actually shown us any data from the state where the system
is slow, so it's a bit hard to conjecture about what's going on.

Some other important information that you haven't let us in on is the
platform and the Postgres version you're using.

regards, tom lane

In response to

  • problems at 2003-04-20 18:09:05 from Ian Knopke

Browse pgsql-performance by date

  From Date Subject
Next Message Kevin Brown 2003-04-21 00:09:34 Re: [PERFORM] Foreign key performance
Previous Message Ian Knopke 2003-04-20 18:09:05 problems