public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] blkio: More IO controller stats - always-on and debug-only
@ 2010-04-09  4:13 Divyesh Shah
  2010-04-09  4:14 ` [PATCH 1/3] blkio: Add io_merged stat Divyesh Shah
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Divyesh Shah @ 2010-04-09  4:13 UTC (permalink / raw)
  To: jens.axboe, vgoyal; +Cc: linux-kernel, nauman, ctalbott

The following patchset implements additional per-cgroup IO controller stats.
Some of these should be enabled for debugging only.

These stats have helped us debug issues with earlier IO controller
versions and should be useful now as well.
We've been using these stats for monitoring and debugging problems after the
fact as these stats can be collected and stored for later use.

The stats added in this patchset are:
1) io_merged - 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.
2) io_queued
3) avg_queue_size
   These 2 stats are useful for getting a feel for the IO pattern of the cgroup,
   i.e., how filled up its queues are at a given instant and over the existence
   of the cgroup. This ability is useful when debugging problems in the wild as
   it helps understand the application's IO pattern w/o having to read through
   the userspace code (coz its tedious or just not available) or w/o the ability
   to run blktrace (since you may not have root access and/or not want to
   disturb performance).
4) group_wait_time - This is the amount of time the cgroup had to wait since it
   became busy (i.e., went from 0 to 1 request queued) to get a timeslice for
   one of its queues. This is different from the io_wait_time which is the
   cumulative total of the amount of time spent by each IO in that cgroup
   waiting in the scheduler queue. This stat is a great way to find out any jobs
   in the fleet that are being starved or waiting for longer than what is
   expected (due to an IO controller bug or any other issue).
5) empty_time - This is the amount of time a cgroup spends w/o any pending
   requests. This stat is useful when a job does not seem to be able to use its
   assigned disk share by helping check if that is happening due to an IO
   controller bug or because the job is not submitting enough IOs.
6) idle_time - This is the amount of time spent by the IO scheduler idling
   for a given cgroup in anticipation of a better request than the exising ones
   from other queues/cgroups.

The last 4 stats are enabled only when CONFIG_DEBUG_CFQ_IOSCHED=y which in turn
enables CONFIG_DEBUG_BLK_CGROUP.
---

Divyesh Shah (3):
      Add more debug-only per-cgroup stats for IO contoller
      Add io_queued and avg_queue_size stats for IO controller.
      Add io_merged stat. This includes both the number of bios merged into requests


 Documentation/cgroups/blkio-controller.txt |   45 +++++
 block/blk-cgroup.c                         |  264 ++++++++++++++++++++++++++++
 block/blk-cgroup.h                         |   80 ++++++++
 block/blk-core.c                           |    2 
 block/cfq-iosched.c                        |   72 ++++++--
 block/elevator.c                           |    9 +
 include/linux/elevator.h                   |    6 +
 7 files changed, 456 insertions(+), 22 deletions(-)

-- 
Divyesh

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

end of thread, other threads:[~2010-04-12 18:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09  4:13 [PATCH 0/3] blkio: More IO controller stats - always-on and debug-only Divyesh Shah
2010-04-09  4:14 ` [PATCH 1/3] blkio: Add io_merged stat Divyesh Shah
2010-04-09  4:15 ` [PATCH 2/3] blkio: Add io_queued and avg_queue_size stats Divyesh Shah
2010-04-09 15:32   ` Vivek Goyal
2010-04-09 20:44     ` Divyesh Shah
2010-04-10  2:34     ` Divyesh Shah
2010-04-09  4:15 ` [PATCH 3/3] blkio: Add more debug-only per-cgroup stats Divyesh Shah
2010-04-09 19:21   ` Vivek Goyal
2010-04-10  0:09     ` Divyesh Shah
2010-04-12 14:04       ` Vivek Goyal
2010-04-12 18:37         ` Divyesh Shah
2010-04-09  6:36 ` [PATCH 0/3] blkio: More IO controller stats - always-on and debug-only Jens Axboe

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