Re: Read/Write operation counts

From: "Rader, David" <davidr(at)openscg(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Read/Write operation counts
Date: 2017-01-18 21:18:33
Message-ID: CAABt7R60R9f7smDLSV4Wu2XL93kr0jd837ditR0Pj=SsvSNQ-w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 18, 2017 at 4:10 PM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

> On 1/18/2017 1:02 PM, Anirudh Jayakumar wrote:
>
>> Is there a way to retrieve the total read/write operations initiated by a
>> PG server. I'm looking for measuring the IOPS of a server over a period of
>> time.
>>
>
> postgres itself doesn't actually know how many physical disk operations
> are taking place as it only deals with files.
>
> if its unix/linux, you can use iostat or sar to track all the disk I/O
> over an interval of time.
>
>
Depending on your goal, you can use pg_stat_database to see blocks read and
blocks read from buffer cache as well as block read time and block write
time per database.

See: https://www.postgresql.org/docs/9.6/static/monitoring-stats.html

--
David Rader
davidr(at)openscg(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message William Ivanski 2017-01-18 22:24:20 Re: migrate Sql Server database to PostgreSql
Previous Message John R Pierce 2017-01-18 21:10:41 Re: Read/Write operation counts