Re: Occasional spike in query response time (jumps from 200ms to 45 seconds)

From: bricklen <bricklen(at)gmail(dot)com>
To: Robert Voinea <rvoinea(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Occasional spike in query response time (jumps from 200ms to 45 seconds)
Date: 2013-11-08 13:33:44
Message-ID: CAGrpgQ8f8Q9+8iX=+ngBJmB4ycFZVrYEA48YomXbZVkTt3ni9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Nov 8, 2013 at 5:25 AM, Robert Voinea <rvoinea(at)gmail(dot)com> wrote:

> Hi
>
> On Thursday 07 November 2013 06:37:57 bricklen wrote:
> > On Thu, Nov 7, 2013 at 2:44 AM, Robert Voinea <rvoinea(at)gmail(dot)com> wrote:
> > > Could you give me some hints on what to look for?
> > > What might be causing this behavior?
> >
> > Possibly checkpointing is the problem? Is "log_checkpoints" enabled in
> your
> > postgresql.conf? What is "checkpoint_completion_target" set to?
>
> The parameters are commented out, so they are at their default values.
>
> Thank you for replying.
> I'll investigate this further to see if this is the problem.
>

Checkpointing may or may not be the problem, but changing log_checkpoints =
on and checkpoint_completion_target = 0.8 would both be useful things to
do. The former to help in your investigation, the latter, known as
"checkpoint smoothing" might help alleviate the problem if it is indeed
related to checkpointing.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Voinea 2013-11-08 15:43:22 Re: Occasional spike in query response time (jumps from 200ms to 45 seconds)
Previous Message Robert Voinea 2013-11-08 13:25:40 Re: Occasional spike in query response time (jumps from 200ms to 45 seconds)