QUESTION: 2.5 adds 1 to systats even for non I/O operations

From: Ricardo Galli (gallir@uib.es)
Date: Wed May 07 2003 - 15:34:00 EST


I'm working in a daemon to control cpufreq and devices
(http://freshmeat.net/projects/cpudyn/)

I've just noticed that kernel 2.5 always add one (1) to /proc/diskstats
and /sys/block/hdX/stat "reads" field for ioctl's requests that don't
generate data I/O.

For example for checking the status of the disk (standby, active, sleep)
or putting the disk in standby.

Is that correct? Do I have to take it in account always?

Thanks in advance.

-- 
  ricardo galli       GPG id C8114D34
-
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/



This archive was generated by hypermail 2b29 : Wed May 07 2003 - 22:00:33 EST