From: Jim C. Nasby <jnasby@pervasive.com>
To: Vincent Chen <vctw@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PostgreSQL performance tuning
Date: Wed, 1 Mar 2006 13:25:32 -0600
Message-ID: <20060301192532.GM82012@pervasive.com> (raw)
In-Reply-To: <20060225132231.74100.qmail@web35802.mail.mud.yahoo.com>
References: <20060225132231.74100.qmail@web35802.mail.mud.yahoo.com>
On Sat, Feb 25, 2006 at 09:22:31PM +0800, Vincent Chen wrote:
>
> Hi, all
>
> I have a postgresql 7.4 running on mandriva linux 10.1 with 512M RAM & AMD
> 2000+ CPU. I increased system share memory to 128M, buffer to 64M, sort memory
> to 32M. A single query do finish much faster. Now I need to analyze some weekly
> data involving hundred queries with 'group by order by' operation. Total data
> less than 250M, but did take some time to complete. How can I tune my system to
> handle a lot of concurrent quries at the same time and do it faster?
>
> BTW, upgrade hardware is not an option at this time. ;>
The challenge is making sure you don't make the OS start swapping, which
will destroy performance. If there's some queries where substantially
more sort memory would help and you can control how many of those run at
once, you might be able to increase sort_memory more for just those
queries. (Easiest to put the queries in a transaction and do a SET
LOCAL).
Also, you should absolutely upgrade to 8.1 if at all possible. Some
folks have seen performance more than double, depending on the workload.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461
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-admin@postgresql.org
Cc: jnasby@pervasive.com, vctw@yahoo.com
Subject: Re: PostgreSQL performance tuning
In-Reply-To: <20060301192532.GM82012@pervasive.com>
References: <20060225132231.74100.qmail@web35802.mail.mud.yahoo.com> <20060301192532.GM82012@pervasive.com>
* 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