Re: PostgreSQL I/O bottleneck

From: Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>
To: "Burgess, Freddie" <FBurgess(at)Radiantblue(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: PostgreSQL I/O bottleneck
Date: 2014-08-23 01:54:04
Message-ID: 53F7F43C.5020902@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 23/08/14 13:32, Burgess, Freddie wrote:
>
> Logged by: Freddie Burgess
> Email address: fburgess(at)radiantblue(dot)com
> PostgreSQL version: 9.3.4
> Operating system: Red_hat Linux 6.4
> Description:
>
> Server Monitoring is reporting the following problem on our Primary
> database server.
>
> Disk % of time device was busy Servicing a transfer request > 95% and
> outside all baselines for 15 mins
>
> No backup's were executed when this error was reported
>
> Does anyone know the possible causes for this i/o bottleneck to be reported?
>
>

On the basis of that single metric it is hard to be specific. There are
a number of possibilities e.g:

- more users active at that time
- your database has grown so it is now > ram
- autovacuum cleaning up some tables

We are going to need to see a bit more detail to help any more. E.g:

- reads or writes or both?
- wait time, queue length etc

..essentially detail from sar or iostat would be helpful.

Inspection of your postgres logs for the time period might be
informative (especially if you've set log_min_statement_duration,
log_connections etc).

BTW - this sounds like the sort of thing best discussed on the
-performance list.

Cheers

Mark

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Matheus de Oliveira 2014-08-23 16:12:49 Re: Postgresql concern of effect of invalid index
Previous Message Burgess, Freddie 2014-08-23 01:32:33 PostgreSQL I/O bottleneck