Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 6 Sep 2002 12:45:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 6 Sep 2002 12:45:11 -0400 Received: from vasquez.zip.com.au ([203.12.97.41]:48907 "EHLO vasquez.zip.com.au") by vger.kernel.org with ESMTP id ; Fri, 6 Sep 2002 12:45:10 -0400 Message-ID: <3D78DFC9.26BF8CC5@zip.com.au> Date: Fri, 06 Sep 2002 10:03:05 -0700 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.5.33 i686) X-Accept-Language: en MIME-Version: 1.0 To: Rik van Riel CC: linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: [PATCH] iowait stats for 2.5.33 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 858 Lines: 30 Rik van Riel wrote: > > Hi, > > the following patch, against 2.5.33-mm4, implements iowait > statistics in /proc/stat. trivial: I'd be inclined to use: void iowait_schedule() { atomic_inc(...); schedule(); atomic_dec(...); } less trivial: there are times when an io wait is deliberate: in the context of balance_dirty_pages(), and (newly) in the context of page reclaim when current->backing_dev_info is non-zero. Given that this is a deliberate throttling sleep, perhaps it should not be included in the accounting? That way we only account for the accidental, undesirable sleeps, and reads and such. - 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/