From: Kevin Grittner <kgrittn@ymail.com>
To: Sushant Sinha <sushant@indiankanoon.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Stalled post to pgsql-bugs
Date: Thu, 23 Jul 2015 15:59:32 +0000 (UTC)
Message-ID: <566568884.1151081.1437667172831.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <CAK=sinUB9_KDFeNcbHvAnP9QEQBN+zfkmwXHZFPrpKWhN2uDxQ@mail.gmail.com>
References: <CAK=sinUB9_KDFeNcbHvAnP9QEQBN+zfkmwXHZFPrpKWhN2uDxQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Sushant Sinha <sushant@indiankanoon.com> wrote:
> On Thu, Jul 23, 2015 at 10:27 AM, <pgsql-bugs-owner@postgresql.org> wrote:
>> After upgrade from postgres 9.4.3 to 9.4.4 I am seeing constant disk writes
>> of 4-8MB/s in the background in production. I verified it using iotop and
>> vmstat. iotop shows "Total Disk Write" to be minuscule (like 10-100Kbps). It
>> is affecting runtime performance. I never noticed this issue with postgres
>> 9.4.3.
>>
>> I increased the shared buffers from 128MB to 1GB and still didn't see any
>> benefit.
>>
>> The website (http://indiankanoon.org) mostly uses text search with gin index
>> and some logging of click through data. The main database is replicated
>> using "streaming asynchronous replication".
>>
>> I am going to downgrade it to 9.4.3 to see if the upgrade was the real
>> problem. But just wanted to check if anyone else noticed it.
> Ok. There is a problem with the patches that went in between
> Postgres 9.4.3->9.4.4
>
> I downgraded to Postgres 9.4.3 and everythig is normal. "Actual
> disk writes" in iostat is pretty much as "Total disk writes"
> (between 50-100 Kbps and not in Mbps). "vmstat 1" also shows no
> excessive disk writes.
Did you notice whether it was an autovacuum process causing the
additional I/O in 9.4.4? There were some bugs in 9.4.3 that failed
to vacuum away old multi-transaction tracking structures in a
timely fashion, causing data loss and database corruption. Once
you upgraded a background task was probably trying to make up for
the lack of timely maintenance, so that you would not experience
those problems. Downgrading may be a little faster for a little
while, but you're almost certain to regret doing it very soon....
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: kgrittn@ymail.com, sushant@indiankanoon.com
Subject: Re: Stalled post to pgsql-bugs
In-Reply-To: <566568884.1151081.1437667172831.JavaMail.yahoo@mail.yahoo.com>
References: <CAK=sinUB9_KDFeNcbHvAnP9QEQBN+zfkmwXHZFPrpKWhN2uDxQ@mail.gmail.com> <566568884.1151081.1437667172831.JavaMail.yahoo@mail.yahoo.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