I found a URL that you might find useful. http://sunsite.uakom.sk/sunworldonline/swol-08-1997/swol-08-insidesolaris.ht ml Simple and straight forward implementation of a per-cpu iowait statistics counter. Balbir |-----Original Message----- |From: linux-kernel-owner@vger.kernel.org |[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Rik van Riel |Sent: Monday, May 13, 2002 2:44 AM |To: Zlatko Calusic |Cc: Bill Davidsen; linux-mm@kvack.org; linux-kernel@vger.kernel.org |Subject: Re: [RFC][PATCH] IO wait accounting | | |On Sun, 12 May 2002, Zlatko Calusic wrote: |> Rik van Riel writes: |> > |> > And should we measure read() waits as well as page faults or |> > just page faults ? |> |> Definitely both. | |OK, I'll look at a way to implement these stats so that |every IO wait counts as iowait time ... preferably in a |way that doesn't touch the code in too many places ;) | |> Somewhere on the web was a nice document explaining |> how Solaris measures iowait%, I read it few years ago and it was a |> great stuff (quite nice explanation). |> |> I'll try to find it, as it could be helpful. | |Please, it would be useful to get our info compatible with |theirs so sysadmins can read their statistics the same on |both systems. | |kind regards, | |Rik |-- |Bravely reimplemented by the knights who say "NIH". | |http://www.surriel.com/ http://distro.conectiva.com/ | |- |To unsubscribe from this list: send the line "unsubscribe linux-kernel" in |the body of a message to majordomo@vger.kernel.org |More majordomo info at http://vger.kernel.org/majordomo-info.html |Please read the FAQ at http://www.tux.org/lkml/