pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Moore <martin.moore@avbrief.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Slow system due to ReorderBufferGetTupleBuf?
Date: Tue, 02 Jan 2018 21:28:39 +0000
Message-ID: <57C5B258-0EB7-4DDF-8152-F2A03A1087EE@avbrief.com> (raw)
In-Reply-To: <9097DCB4-E742-46A9-B72D-D902598CD1FC@avbrief.com>
References: <34E81031-B9DC-4626-97F6-B78AC45959D1@avbrief.com>
	<CAH2-Wzk6+3qCxFwbDZOH-iASzJMheKa32_XebhyLAwVyHg6kxg@mail.gmail.com>
	<9097DCB4-E742-46A9-B72D-D902598CD1FC@avbrief.com>



On 02/01/2018, 12:09, "Martin Moore" <martin.moore@avbrief.com> wrote:

    
    
    On 01/01/2018, 17:45, "Peter Geoghegan" <pg@bowt.ie> wrote:
    
        On Mon, Jan 1, 2018 at 8:56 AM, Martin Moore <martin.moore@avbrief.com> wrote:
        > Can someone shed some light on this and advise how to prevent it reoccurring?
        
        You're using v10, which has these two commits:
        
        https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=58b25e98106dbe062cec0f3d31d64977bffaa...
        
        https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=9fab40ad32efa4038d19eaed975bb4c1713cc...
        
        Unfortunately, per the commit message of the first commit, it doesn't
        look like the tuple allocator uses any new strategy, at least until
        this v11 commit:
        
        https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=a4ccc1cef5a04cc054af83bc4582a045d5232...
        
        My guess is that that would make a noticeable difference, once v11
        becomes available. Could you test this yourself by building from the
        master branch?
        
        -- 
        Peter Geoghegan
        
    
    
    
    
    Thanks Peter. I don’t really want to go down that route for various reasons. There’s a task that copies ‘old’ rows to various old_  tables and then deletes from the main tables, then does a vaccum and analyse. Tables only have 20-30k rows. I’m guessing this may be the trigger for the problem so have changed the timing from every 20 mins to once in the middle of the night when things are quiet.
    
    Would this explain the problem?
    
    
    Martin.
    
    
    ======================================================================================================


Having stopped the suspect task, I’m still getting the same problem. Can’t even stop postgres:

waiting for server to shut down............................................................... failed
pg_ctl: server does not shut down


We’ve spent 2 yrs and a chunk of cash on a total system redesign and this is going to stop it from being released.

Can someone give me an idea what may be causing this – and what ReorderBufferGetTupleBuf is actually doing in case it gives me a clue.

Thanks.






    
    
    






view thread (4+ messages)

Message-ID: <57C5B258-0EB7-4DDF-8152-F2A03A1087EE@avbrief.com>
Permalink:  ../57C5B258-0EB7-4DDF-8152-F2A03A1087EE@avbrief.com/
Also on:    postgresql.org/message-id/57C5B258-0EB7-4DDF-8152-F2A03A1087EE@avbrief.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-general@postgresql.org
  Cc: martin.moore@avbrief.com
  Subject: Re: Slow system due to ReorderBufferGetTupleBuf?
  In-Reply-To: <57C5B258-0EB7-4DDF-8152-F2A03A1087EE@avbrief.com>
  References: <34E81031-B9DC-4626-97F6-B78AC45959D1@avbrief.com> <CAH2-Wzk6+3qCxFwbDZOH-iASzJMheKa32_XebhyLAwVyHg6kxg@mail.gmail.com> <9097DCB4-E742-46A9-B72D-D902598CD1FC@avbrief.com> <57C5B258-0EB7-4DDF-8152-F2A03A1087EE@avbrief.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