pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Whittaker <dave@iradix.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: PostgreSQL Performance <pgsql-performance@postgresql.org>
Cc: Andres Freund <andres@2ndquadrant.com>
Subject: Re: Intermittent hangs with 9.2
Date: Fri, 20 Sep 2013 14:11:12 -0400
Message-ID: <CABXnLXQU9S1Jd-dwpysTkMdtwETkEUGn4a8XiHUnc98AKXDbAw@mail.gmail.com> (raw)
In-Reply-To: <CABXnLXSrM0B6SG0dnTLa5Oa+J69AwY5NyVfdypnc9CJyuEu86A@mail.gmail.com>
References: <CABXnLXS0ez1PW6JQbPdd9rs1GnNuwjyn8Zq48XRdZpx8cdRcLQ@mail.gmail.com>
	<CAHyXU0xczTXCShZPEe8rb6QV+iEU3GqKcgcuGYjJMAOK1E0EKA@mail.gmail.com>
	<20130911171736.GA1134305@alap2.anarazel.de>
	<CABXnLXT-HF7amXEuS_jTCKiYGfv+t-vodptOzQzjoWQZ9ohjMQ@mail.gmail.com>
	<CAHyXU0zfF+sshdfKsyu47bjx4yUh5us2ugfXRg0yD4_KYv=bjg@mail.gmail.com>
	<CABXnLXSrM0B6SG0dnTLa5Oa+J69AwY5NyVfdypnc9CJyuEu86A@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

We haven't seen any issues since we decreased shared_buffers.  We also
tuned some of the longer running / more frequently executed queries, so
that may have had an effect as well, but my money would be on the
shared_buffers change.  If the issue re-appears I'll try to get a perf
again and post back, but if you don't hear from me again you can assume the
problem is solved.

Thank you all again for the help.

-Dave

On Fri, Sep 13, 2013 at 11:05 AM, David Whittaker <dave@iradix.com> wrote:

>
>
>
> On Fri, Sep 13, 2013 at 10:52 AM, Merlin Moncure <mmoncure@gmail.com>wrote:
>
>> On Thu, Sep 12, 2013 at 3:06 PM, David Whittaker <dave@iradix.com> wrote:
>> > Hi All,
>> >
>> > We lowered shared_buffers to 8G and increased effective_cache_size
>> > accordingly.  So far, we haven't seen any issues since the adjustment.
>>  The
>> > issues have come and gone in the past, so I'm not convinced it won't
>> crop up
>> > again, but I think the best course is to wait a week or so and see how
>> > things work out before we make any other changes.
>> >
>> > Thank you all for your help, and if the problem does reoccur, we'll look
>> > into the other options suggested, like using a patched postmaster and
>> > compiling for perf -g.
>> >
>> > Thanks again, I really appreciate the feedback from everyone.
>>
>> Interesting -- please respond with a follow up if/when you feel
>> satisfied the problem has gone away.  Andres was right; I initially
>> mis-diagnosed the problem (there is another issue I'm chasing that has
>> a similar performance presentation but originates from a different
>> area of the code).
>>
>> That said, if reducing shared_buffers made *your* problem go away as
>> well, then this more evidence that we have an underlying contention
>> mechanic that is somehow influenced by the setting.  Speaking frankly,
>> under certain workloads we seem to have contention issues in the
>> general area of the buffer system.  I'm thinking (guessing) that the
>> problems is usage_count is getting incremented faster than the buffers
>> are getting cleared out which is then causing the sweeper to spend
>> more and more time examining hotly contended buffers.  This may make
>> no sense in the context of your issue; I haven't looked at the code
>> yet.  Also, I've been unable to cause this to happen in simulated
>> testing.  But I'm suspicious (and dollars to doughnuts '0x347ba9' is
>> spinlock related).
>>
>> Anyways, thanks for the report and (hopefully) the follow up.
>>
>> merlin
>>
>
> You guys have taken the time to help me through this, following up is the
> least I can do.  So far we're still looking good.
>

view thread (16+ messages)

Message-ID: <CABXnLXQU9S1Jd-dwpysTkMdtwETkEUGn4a8XiHUnc98AKXDbAw@mail.gmail.com>
Permalink:  ../CABXnLXQU9S1Jd-dwpysTkMdtwETkEUGn4a8XiHUnc98AKXDbAw@mail.gmail.com/
Also on:    postgresql.org/message-id/CABXnLXQU9S1Jd-dwpysTkMdtwETkEUGn4a8XiHUnc98AKXDbAw@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: dave@iradix.com, mmoncure@gmail.com, andres@2ndquadrant.com
  Subject: Re: Intermittent hangs with 9.2
  In-Reply-To: <CABXnLXQU9S1Jd-dwpysTkMdtwETkEUGn4a8XiHUnc98AKXDbAw@mail.gmail.com>
  References: <CABXnLXS0ez1PW6JQbPdd9rs1GnNuwjyn8Zq48XRdZpx8cdRcLQ@mail.gmail.com> <CAHyXU0xczTXCShZPEe8rb6QV+iEU3GqKcgcuGYjJMAOK1E0EKA@mail.gmail.com> <20130911171736.GA1134305@alap2.anarazel.de> <CABXnLXT-HF7amXEuS_jTCKiYGfv+t-vodptOzQzjoWQZ9ohjMQ@mail.gmail.com> <CAHyXU0zfF+sshdfKsyu47bjx4yUh5us2ugfXRg0yD4_KYv=bjg@mail.gmail.com> <CABXnLXSrM0B6SG0dnTLa5Oa+J69AwY5NyVfdypnc9CJyuEu86A@mail.gmail.com> <CABXnLXQU9S1Jd-dwpysTkMdtwETkEUGn4a8XiHUnc98AKXDbAw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox