From: Tim Perdue <tim@perdue.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Memory and performance
Date: Thu, 5 Apr 2001 09:57:47 -0500
Message-ID: <20010405095747.L513@mail.perdue.net> (raw)
In-Reply-To: <16726.986481967@sss.pgh.pa.us>
References: <200104041715.f34HF8858323@postgresql.org>
<14398.986435610@sss.pgh.pa.us>
<20010405075250.H513@mail.perdue.net>
<16726.986481967@sss.pgh.pa.us>
On Thu, Apr 05, 2001 at 10:46:07AM -0400, Tom Lane wrote:
> Tim Perdue <tim@perdue.net> writes:
> > Our database is about 1GB in total size, the machine has 4GB, but the entire
> > system is only using 1.2 GB, even during vacuum or a daily, extremely large
> > query that requires a lot of grouping and sorting.
>
> What have you got the SortMem parameter (backend -S switch) set to?
> That's about the only use I can think of for RAM beyond what's needed to
> cache the whole database ...
-i -o -F -S 32768 -B 2048 is our startup line.
It appears to me that when you're vacuuming, it's physically moving all the
bits around the disk. It doesn't read in the table, clean out the cruft, the
flush it out. So I think this is where we're getting IO bound. We only have a
5x36 RAID - must not be sufficient.
Tim
--
Founder - PHPBuilder.com / Geocrawler.com
Lead Developer - SourceForge
VA Linux Systems
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-sql@postgresql.org
Cc: tim@perdue.net, tgl@sss.pgh.pa.us
Subject: Re: Memory and performance
In-Reply-To: <20010405095747.L513@mail.perdue.net>
References: <200104041715.f34HF8858323@postgresql.org> <14398.986435610@sss.pgh.pa.us> <20010405075250.H513@mail.perdue.net> <16726.986481967@sss.pgh.pa.us> <20010405095747.L513@mail.perdue.net>
* 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