public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RAID0 & diskstats.
@ 2015-03-04 21:09 Dave Jones
  2015-03-04 21:31 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Jones @ 2015-03-04 21:09 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Neil Brown

Hi Neil,
   According to Documentation/iostats.txt, the 9th column of
/proc/diskstats (and its modern replacement in sysfs) should go to 0
as IO completes.

I assembled a RAID0 stripe using two SSD's, and saw this..

# mdadm --assemble /dev/md0
mdadm: /dev/md0 has been started with 2 drives.
# cat /sys/block/md0/stat
     167        0     5656        0        5        0     4096        0     172     3408   582825
# cat /sys/block/md0/stat
     167        0     5656        0        5        0     4096        0     172   231469 39809317

The 10th & 11th fields constantly increase, as field 9 remains non-zero.
If I mount and umount a filesystem on that volume, it works as expected,
but the 9th 'IOs inflight' field continues to rise and never decreases even
though the IO has obviously completed.

# umount /mnt/ssd
# cat /sys/block/md0/stat
     167        0     5656        0        9        0     4225        0     176   571384 98278615

The underlying disks have their respective stats entries behaving as
expected, it only seems to affect the upper md layer.

Some missing accounting somewhere in md ?

(Only tested on 4.0rc2 so far, and only on RAID0)

	Dave


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-04 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 21:09 RAID0 & diskstats Dave Jones
2015-03-04 21:31 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox