Re: ios_in_flight of CONFIG_BLK_STATS (still) negative in 2.4



Steffen Maier <smaier@xxxxxxxxxxxxxxxxxxxxx> writes:

Hello,

in this posting I would like to analyze and discuss a bug(?), that
causes the number of I/O requests in flight (ios_in_flight) of the
extended block device statistics (CONFIG_BLK_STATS) to become and stay
negative on various kernels of version 2.4. In turn, this leads to
erroneous display of 100% utilization for certain classes of harddisk
devices with 'iostat -x' and probably other statistic tools relying on
the 13th (last but two) field (ios_in_flight) of extended block device
statistics listed in /proc/partitions.

First I encountered the behavior with 2.4.24 but could reproduce it
with 2.4.33-rc3 (which is now the latest 2.4 kernel version 2.4.33).
There have been various postings concerning this problem in recent
years but to the best of my knowledge no ultimate fix has been merged
into the mainstream kernel so far.

Have you tried this patch: http://linux.inet.hr/iostat_patch_2.4.html

It was made against 2.4.24 so you'll probably need to tweak it a
little bit before applying it cleanly to a newer 2.4, but I think it
deserves it's chance.
--
Zlatko
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: what does "serialization" mean?
    ... statistics. ... The other 20% are caused by top posting. ... > Edward G. Nilges wrote: ...
    (comp.programming)
  • Re: Child Support Agency forced to pay back wrongly accused men
    ... >> One might assume from his posting address that Andre is referring to ... >> Canadian statistics, but you can't really tell since he cites no ... slurp a fellow loon troll. ...
    (soc.men)
  • Re: Suggesting a Poll
    ... That alone was the true motivation for collecting such statistics. ... And your motivation for posting them in public was what? ...
    (sci.math)
  • Re: OT- Is There A Way To Gauge Readership?
    ... Google Groups tell how many people go through their network? ... formula that says if X number of people are posting, ... They keep statistics on posting in Usenet, ... And, the statistics that are kept, have long been kept on posting, would ...
    (rec.arts.tv.soaps.cbs)
  • Re: OT- Is There A Way To Gauge Readership?
    ... Google Groups tell how many people go through their network? ... formula that says if X number of people are posting, ... They keep statistics on posting in Usenet, ... And, the statistics that are kept, have long been kept on posting, would ...
    (rec.arts.tv.soaps.cbs)