Search Postgresql Archives

Re: General performance/load issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 26.11.2011 17:47, Gaëtan Allart napsal(a):
> Rahh :/
> 
> It's getting worse and worse :/ Database has to be restarted every 2 hours
> causing much traffic loss :/
> 
> As far as the server is concerned, it was running great 7 days ago and had
> been running like this for months. I really don't get why it suddenly went
> "I/oing"Š

Given the info provided so far we can rule out checkpoint issues.

These sudden changes in performance happen when the when the stats are
off or vacuum is not able to maintain all the tables.

1) Post EXPLAIN ANALYZE of the queries that cause a lot of writes.

2) How much did the database grew recently?

3) Is the autovacuum running fine? Check the logs, and maybe set

     log_autovacuum_min_duration = 100

   or a different value. Set the log_line_prefix (add '%t').

4) Check the pg_stat_all_tables:

   - large n_dead_tup values (especially compared to n_live_tup)

   - tables with a lot of changed (n_tup_ins + n_tup_upd + n_tup_del +
     n_tup_hot_upd) that were not vacuumed / analyzed recently

Tomas

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux