pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PostgreSQL performance tuning
2+ messages / 2 participants
[nested] [flat]

* PostgreSQL performance tuning
@ 2006-02-25 13:22  Vincent Chen <vctw@yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Vincent Chen @ 2006-02-25 13:22 UTC (permalink / raw)
  To: pgsql-admin


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. ;>


Thanks,

Vincent Chen
 

___________________________________________________  ³Ì·sª© Yahoo!©_¼¯§Y®É³q°T 7.0¡A§K¶Oºô¸ô¹q¸Ü¥ô§A¥´¡I  http://messenger.yahoo.com.tw/



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PostgreSQL performance tuning
@ 2006-03-01 19:25  Jim C. Nasby <jnasby@pervasive.com>
  parent: Vincent Chen <vctw@yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jim C. Nasby @ 2006-03-01 19:25 UTC (permalink / raw)
  To: Vincent Chen <vctw@yahoo.com>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-03-01 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25 13:22 PostgreSQL performance tuning Vincent Chen <vctw@yahoo.com>
2006-03-01 19:25 ` Jim C. Nasby <jnasby@pervasive.com>

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