From 7b88e5e0bdf25a3c7d7b6efd5caa54cbcdfec861 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 2 Oct 2002 22:58:25 -0700 Subject: [PATCH] "io wait" process accounting Patch from Rik adds "I/O wait" statistics to /proc/stat. This allows us to determine how much system time is being spent awaiting IO completion. This is an important statistic, as it tends to directly subtract from job completion time. procps-2.0.9 is OK with this, but doesn't report it. --- include/linux/blkdev.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/linux/blkdev.h') diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index ee1171a3ae67..187213441ee7 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -401,4 +401,8 @@ static inline void put_dev_sector(Sector p) page_cache_release(p.v); } +extern atomic_t nr_iowait_tasks; +void io_schedule(void); +void io_schedule_timeout(long timeout); + #endif -- cgit v1.2.3