| From: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
|---|---|
| To: | Carlos Henrique Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)br>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Runtime variations during day |
| Date: | 2013-02-13 21:35:52 |
| Message-ID: | 1360791352.37906.YahooMailNeo@web162901.mail.bf1.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Carlos Henrique Reimer <carlos(dot)reimer(at)opendb(dot)com(dot)br> wrote:
> I`m trying to figure out why a query runs in 755ms in the morning
> and 20054ms (26x) in the evening.
I would make autovacuum settings much more aggressive, or schedule
periodic VACUUM and/or ANALYZE runs during the day.
> database size is 40GB and memory 64GB
If you haven't already done so, I would use settings something like
this in postgresql.conf:
effective_cache_size = 32GB
seq_page_cost = 0.1
random_page_cost = 0.1
cpu_tuple_cost = 0.03
--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2013-02-13 21:53:57 | Re: Runtime variations during day |
| Previous Message | Joek Hondius | 2013-02-13 19:50:04 | Re: Runtime variations during day |