Re: Multi-second pauses blocking even trivial activity

2018-09-22 Thread Andreas Kretschmer
Am 21.09.2018 um 21:07 schrieb Patrick Molgaard: Andreas -- just following up to say that this was indeed the root cause. Thanks again. glad i could help you. Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com

Re: Multi-second pauses blocking even trivial activity

2018-09-21 Thread Patrick Molgaard
Andreas -- just following up to say that this was indeed the root cause. Thanks again. Patrick On Sat, 8 Sep 2018, 01:34 Patrick Molgaard, wrote: > This sounds extremely plausible -- thanks for the tip, Andreas. > > Best, > Patrick > > > On Fri, 7 Sep 2018, 19:20 Andreas Kretschmer, > wrote:

Re: Multi-second pauses blocking even trivial activity

2018-09-07 Thread Patrick Molgaard
This sounds extremely plausible -- thanks for the tip, Andreas. Best, Patrick On Fri, 7 Sep 2018, 19:20 Andreas Kretschmer, wrote: > > > > >Intermittently (one or two times a week), all queries on that host are > >simultaneously blocked for extended periods (10s of seconds). > > > >The blocked

Re: Multi-second pauses blocking even trivial activity

2018-09-07 Thread Patrick Molgaard
Oh, to be clear - I'll be implementing your suggestion regardless, it seems valuable whether or not it gets me closer to the root cause this time :) I was just trying to dig into why it may be relevant -- I want to really get a good grip on the mechanism behind this phenomenon. Cheers Patrick On

Re: Multi-second pauses blocking even trivial activity

2018-09-07 Thread Jeff Janes
On Fri, Sep 7, 2018 at 2:03 PM Patrick Molgaard wrote: > > Hi Jeff, > > Thanks for your reply. Are locks relevant in this case, though? > I don't know, but why theorize when we can know for sure? It at least invokes VirtualXactLockTableInsert. I don't see how that could block on a heavyweight

Re: Multi-second pauses blocking even trivial activity

2018-09-07 Thread Andreas Kretschmer
> >Intermittently (one or two times a week), all queries on that host are >simultaneously blocked for extended periods (10s of seconds). > >The blocked queries are trivial & not related to locking - I'm seeing >slowlogs of the form: > please check if THP are enabled. Regards, Andreas --

Re: Multi-second pauses blocking even trivial activity

2018-09-07 Thread Patrick Molgaard
Hi Jeff, Thanks for your reply. Are locks relevant in this case, though? To be clear, the slow statements are the first thing happening on the connection and don't look like they should be acquiring any kind of lock - eg. 'select version();' also seems to be paused when it occurs. Or are there

Re: Multi-second pauses blocking even trivial activity

2018-09-07 Thread Jeff Janes
On Fri, Sep 7, 2018 at 8:00 AM Patrick Molgaard wrote: > Hi folks, > > I've been seeing some curious behaviour on a postgres server I administer. > > Intermittently (one or two times a week), all queries on that host are > simultaneously blocked for extended periods (10s of seconds). > > The