Files
kernel_xiaomi_sm8250/include/uapi/linux
Mikulas Patocka fd2ed4d252 dm: add statistics support
Support the collection of I/O statistics on user-defined regions of
a DM device.  If no regions are defined no statistics are collected so
there isn't any performance impact.  Only bio-based DM devices are
currently supported.

Each user-defined region specifies a starting sector, length and step.
Individual statistics will be collected for each step-sized area within
the range specified.

The I/O statistics counters for each step-sized area of a region are
in the same format as /sys/block/*/stat or /proc/diskstats but extra
counters (12 and 13) are provided: total time spent reading and
writing in milliseconds.  All these counters may be accessed by sending
the @stats_print message to the appropriate DM device via dmsetup.

The creation of DM statistics will allocate memory via kmalloc or
fallback to using vmalloc space.  At most, 1/4 of the overall system
memory may be allocated by DM statistics.  The admin can see how much
memory is used by reading
/sys/module/dm_mod/parameters/stats_current_allocated_bytes

See Documentation/device-mapper/statistics.txt for more details.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2013-09-05 20:46:06 -04:00
..
2013-04-26 16:08:16 +10:00
2013-09-05 20:46:06 -04:00
2013-03-27 14:37:47 +00:00
2013-06-24 16:39:05 -07:00
2013-02-14 00:54:17 -05:00
2013-03-28 01:20:42 -04:00
2013-06-13 17:51:04 -07:00
2013-07-01 18:20:33 -07:00
2013-06-26 18:01:46 +09:00
2013-07-09 10:33:25 -07:00
2013-02-27 19:10:22 -08:00
2013-04-19 14:57:57 -04:00
2012-11-16 10:15:35 -08:00
2013-03-06 15:40:53 -05:00
2013-03-17 14:35:13 -04:00
2013-03-22 16:19:59 -07:00
2013-03-21 12:36:33 -04:00
2013-05-02 13:40:15 +03:00