Re: Need help in tuning

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help in tuning
Date: 2014-08-07 01:52:48
Message-ID: 1407376368231-5813987.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Phoenix Kiula wrote
> My PG server is still going down. After spending the weekend doing a
> CLUSTER of my largest table (it's a RAID 1 system with SATA hard disks
> and 4 GB memory, mostly devoted to PG) I still have this issue.
>
> When I do a "top" command, 99% of the CPU and about 15% of the memory
> is being taken by PG. When I press a "c" in the top UI, I see that
> "postmaster" is doing some "CLUSTER". However, I don't do any more
> clustering. The only automatic setting I can think of are autovacuum.
>
> So, question: to the degree that my system allows for performance,
> what steps can I take to find out what's happening? I see some things
> mentioned: I/O, vacuum settings, pg_stats, pg_activity -- is there a
> simple guide somewhere which shows me step by step what to do? Google
> hasn't been much help. "Postgresql performance tunings" brings a lot
> of esoteric articles.

SELECT * FROM pg_stat_activity;

This will tell you what the server thinks it is doing.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Need-help-in-tuning-tp5813983p5813987.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurence Rowe 2014-08-07 03:49:24 Avoid WAL archiving when idle?
Previous Message Phoenix Kiula 2014-08-07 01:52:03 Re: Reindex taking forever, and 99% CPU