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

Ricardo Galli (gallir@uib.es)
Wed, 7 May 2003 22:34:00 +0200


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/