blkio: Add io_merged stat
authorDivyesh Shah <dpshah@google.com>
Fri, 9 Apr 2010 04:14:23 +0000 (21:14 -0700)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 9 Apr 2010 06:36:07 +0000 (08:36 +0200)
commit812d402648f4fc1ab1091b2172a46fc1b367c724
tree9dc52d5bfdbc170559169a0157ed3295d551e9cf
parent84c124da9ff50bd71fab9c939ee5b7cd8bef2bd9
blkio: Add io_merged stat

This includes both the number of bios merged into requests belonging to this
cgroup as well as the number of requests merged together.
In the past, we've observed different merging behavior across upstream kernels,
some by design some actual bugs. This stat helps a lot in debugging such
problems when applications report decreased throughput with a new kernel
version.

This needed adding an extra elevator function to capture bios being merged as I
did not want to pollute elevator code with blkiocg knowledge and hence needed
the accounting invocation to come from CFQ.

Signed-off-by: Divyesh Shah<dpshah@google.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Documentation/cgroups/blkio-controller.txt
block/blk-cgroup.c
block/blk-cgroup.h
block/blk-core.c
block/cfq-iosched.c
block/elevator.c
include/linux/elevator.h