Re: Tracking disk writes?

From: Jim Nasby <decibel(at)decibel(dot)org>
To: Erik Jones <erik(at)myemma(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Tracking disk writes?
Date: 2007-03-24 18:06:59
Message-ID: A6ED5594-FFA3-4929-9CDF-D521395CF7FD@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mar 10, 2007, at 4:33 AM, Erik Jones wrote:
> I've seen that I can get the total number of blocks read from disk
> over the lifetime of a database via the pg_stat_database view, and
> by taking successive readings I can track reads over time. How can
> I track disk writes?

Hey Erik...

That's not currently tracked anywhere, but it would be good
information to have. I suspect it could be added without a great deal
of difficulty by looking at what's done for tracking blocks read, as
well as another patch that added new statistics (I know there was one
for vacuum stats back last summer).

Also, someone on -hackers was recently looking into some stuff with
the bgwriter and added some logging code; I don't remember if they
also added some statistics.
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-24 18:08:31 Re: automatic value conversion
Previous Message Jim Nasby 2007-03-24 18:01:45 Re: Bitmap AND multicolumn index used !