Re: 2.5.44 io accounting weirdness, bi & bo swapped?

From: bert hubert (
Date: Wed Oct 23 2002 - 07:48:19 EST

On Wed, Oct 23, 2002 at 02:13:47PM +0200, bert hubert wrote:
> It appears as if the kernel does its accounting wrong in some places. For
> example, with procps 3.0.4, dd if=/dev/zero of=/mnt/100mb bs=1024
> count=100000 causes large 'bi' readings:

My bad. In this case, what I thought of as sane:

> However, mmapping a file and touching 100mb of pages does the following,
> which looks sane:
> r b w swpd free buff cache si so bi bo in cs us sy id
> 1 0 1 14320 7972 1952 146560 0 0 0 1912 1279 277 2 53 45

Is not. Touching a page entails reading it. In Albert's procps with 2.5.44,
bi and bo are reversed. Rik's vmstat does report things correctly.

Because I saw vmstat sometimes being right and sometimes being wrong, I
derived that is was the kernel that was at fault.

Perhaps Albert's procps isn't ready for 2.5.44?


bert hubert

--          Versatile DNS Software & Services           Linux Advanced Routing & Traffic Control HOWTO
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:01:03 EST