From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 14 May 2002 18:38:54 -0300 (BRT) From: Rik van Riel Subject: Re: [RFC][PATCH] IO wait accounting In-Reply-To: <20020514124915.F21303@us.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: "Kurtis D. Rader" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Tue, 14 May 2002, Kurtis D. Rader wrote: > On the topic of how this is defined by other UNIXes ... > On each todclock() interrupt (100 times per second) the sum of the > > 1) number of processes currently waiting on the swap in queue, > 2) number of processes waiting for a page to be brought into memory, > 3) number of processes waiting on filesystem I/O, and > 4) number or processes waiting on physical/raw I/O > > is calculated. The smaller of that value and the number of CPUs > currently idle is added to the procstat.ps_cpuwait counter (sar's %wio). > This means that wait time is a subset of idle time. This is basically what my patch does, except that it doesn't take the minimum of the number of threads waiting on IO and the number of idle CPUs. I'm still thinking about a cheap way to make this work ... > The rationale for separating out I/O wait time is that since an I/O > operation may complete at any instant, and the process will be marked > runable and begin consuming CPU cycles, the CPUs should not really be > considered idle. The %wio metric most definitely does not tell you > anything about how busy the disk subsystem is or whether the disks are > overloaded. It can indicate whether or not the workload is I/O bound. Or, > to look at it another way, %wio is good for tracking how much busier the > CPUs would be if you could make the disk subsystem infinitely fast. Indeed, this would be a good paragraph to copy into the procps manual ;) kind regards, Rik -- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://distro.conectiva.com/ -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/