From: Andres Freund <andres@anarazel.de>
To: harisankar.valiyattil@capitalone.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14831: Intermittent write blocks
Date: Wed, 27 Sep 2017 14:06:10 -0700
Message-ID: <20170927210610.7w6dn7swxiltp3ci@alap3.anarazel.de> (raw)
In-Reply-To: <20170927205933.28566.16411@wrigleys.postgresql.org>
References: <20170927205933.28566.16411@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
On 2017-09-27 20:59:33 +0000, harisankar.valiyattil@capitalone.com wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14831
> Logged by: Harisankar Valiyattil
> Email address: harisankar.valiyattil@capitalone.com
> PostgreSQL version: 9.4.7
> Operating system: linux
> Description:
>
> We use postgres on amazon RDS. We have a table with close to 15 million data
> now and an application is constantly firing some update(insert/update)
> operations to this table at around 25 transactions per second. the table has
> a jsonb column which has a gin index on it; the jonb data has appx 20-40
> attrinbutes in an average. The application keep on updating data on this
> jsonb column.
>
> While the traffic is running, we see that there is a sudden drop in the
> write operations (no write happening in DB) causing increase in RDS cpu,
> queue depth etc. after a few seconds (30 sec, 60 sec) things come back to
> normal. If the traffic is constant this repeats at constant intervals.
>
> Our work_mem is 4MB.
>
> What could be causing this? What kind of troubleshooting we can do? What is
> the process that runs in the background that causes this intermittant write
> delay?
Presumably it's the OS starting to flush dirty buffers to disk, which it
periodically does. Not sure if RDS allows you to monitor that, but the
Dirt and Writeback lines in /proc/meminfo would show that. 9.6+ have
code to limit the amount of dirty buffers in the kernel (enabled by
default for background processes, disabled by default for backends
themseleves).
Greetings,
Andres Freund
--
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: andres@anarazel.de, harisankar.valiyattil@capitalone.com
Subject: Re: BUG #14831: Intermittent write blocks
In-Reply-To: <20170927210610.7w6dn7swxiltp3ci@alap3.anarazel.de>
References: <20170927205933.28566.16411@wrigleys.postgresql.org> <20170927210610.7w6dn7swxiltp3ci@alap3.anarazel.de>
* 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