[tools] dstat -fd semi-broken on latest kernels

Dag Wieers dag at wieers.com
Wed Oct 29 00:15:30 CET 2008


On Tue, 28 Oct 2008, Peter Rabbitson wrote:

> Yesterday I upgraded from 2.6.23 to 2.6.27. Now dstat -fd shows all
> disks _and_ all their partitions as well, requiring a super-wide
> terminal to operate. As I have 7 physical drives, enumerating them to -D
> is problematic. Is there some workaround for this (and what exactly is
> causing it anyway)?

In the pasts partitions did not have the same counters as disks. So it was 
very easy to ignore partitions: remove all devices that have no (or zero) 
counters.

Apparently we finally have counters for partitions, so I guess we'll have 
to look at another way to get rid of the partitions ;-) Care to send me 
the output of /proc/diskstats ?

It will not be easy to make the distinction unless I assume that only 
certain block devices that are enumerated are partitions (eg. sda1, hda2) 
but not others (eg. ram1, md1).

Thanks for reporting !
-- 
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]


More information about the tools mailing list