sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget8/translations/zh_CN/admin-guide/device-mapper/statisticsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget8/translations/zh_TW/admin-guide/device-mapper/statisticsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget8/translations/it_IT/admin-guide/device-mapper/statisticsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget8/translations/ja_JP/admin-guide/device-mapper/statisticsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget8/translations/ko_KR/admin-guide/device-mapper/statisticsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget8/translations/sp_SP/admin-guide/device-mapper/statisticsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h DM statisticsh]h DM statistics}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhR/var/lib/git/docbuild/linux/Documentation/admin-guide/device-mapper/statistics.rsthKubh paragraph)}(hDevice Mapper supports 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.h]hDevice Mapper supports 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.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hEach user-defined region specifies a starting sector, length and step. Individual statistics will be collected for each step-sized area within the range specified.h]hEach user-defined region specifies a starting sector, length and step. Individual statistics will be collected for each step-sized area within the range specified.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hXThe I/O statistics counters for each step-sized area of a region are in the same format as `/sys/block/*/stat` or `/proc/diskstats` (see: Documentation/admin-guide/iostats.rst). But two extra counters (12 and 13) are provided: total time spent reading and writing. When the histogram argument is used, the 14th parameter is reported that represents the histogram of latencies. All these counters may be accessed by sending the @stats_print message to the appropriate DM device via dmsetup.h](h[The I/O statistics counters for each step-sized area of a region are in the same format as }(hhhhhNhNubhtitle_reference)}(h`/sys/block/*/stat`h]h/sys/block/*/stat}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh or }(hhhhhNhNubh)}(h`/proc/diskstats`h]h/proc/diskstats}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubhXi (see: Documentation/admin-guide/iostats.rst). But two extra counters (12 and 13) are provided: total time spent reading and writing. When the histogram argument is used, the 14th parameter is reported that represents the histogram of latencies. All these counters may be accessed by sending the @stats_print message to the appropriate DM device via dmsetup.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hThe reported times are in milliseconds and the granularity depends on the kernel ticks. When the option precise_timestamps is used, the reported times are in nanoseconds.h]hThe reported times are in milliseconds and the granularity depends on the kernel ticks. When the option precise_timestamps is used, the reported times are in nanoseconds.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXuEach region has a corresponding unique identifier, which we call a region_id, that is assigned when the region is created. The region_id must be supplied when querying statistics about the region, deleting the region, etc. Unique region_ids enable multiple userspace programs to request and process statistics for the same DM device without stepping on each other's data.h]hXwEach region has a corresponding unique identifier, which we call a region_id, that is assigned when the region is created. The region_id must be supplied when querying statistics about the region, deleting the region, etc. Unique region_ids enable multiple userspace programs to request and process statistics for the same DM device without stepping on each other’s data.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hThe 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:h]hThe 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:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hhhhubh block_quote)}(h [ ...] [ []] Create a new region and return the region_id. "-" whole device "+" a range of 512-byte sectors starting with . "" the range is subdivided into areas each containing sectors. "/" the range is subdivided into the specified number of areas. The number of optional arguments The following optional arguments are supported: precise_timestamps use precise timer with nanosecond resolution instead of the "jiffies" variable. When this argument is used, the resulting times are in nanoseconds instead of milliseconds. Precise timestamps are a little bit slower to obtain than jiffies-based timestamps. histogram:n1,n2,n3,n4,... collect histogram of latencies. The numbers n1, n2, etc are times that represent the boundaries of the histogram. If precise_timestamps is not used, the times are in milliseconds, otherwise they are in nanoseconds. For each range, the kernel will report the number of requests that completed within this range. For example, if we use "histogram:10,20,30", the kernel will report four numbers a:b:c:d. a is the number of requests that took 0-10 ms to complete, b is the number of requests that took 10-20 ms to complete, c is the number of requests that took 20-30 ms to complete and d is the number of requests that took more than 30 ms to complete. An optional parameter. A name that uniquely identifies the userspace owner of the range. This groups ranges together so that userspace programs can identify the ranges they created and ignore those created by others. The kernel returns this string back in the output of @stats_list message, but it doesn't use it for anything else. If we omit the number of optional arguments, program id must not be a number, otherwise it would be interpreted as the number of optional arguments. An optional parameter. A word that provides auxiliary data that is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything. @stats_delete Delete the region with the specified id. region_id returned from @stats_create @stats_clear Clear all the counters except the in-flight i/o counters. region_id returned from @stats_create @stats_list [] List all regions registered with @stats_create. An optional parameter. If this parameter is specified, only matching regions are returned. If it is not specified, all regions are returned. Output format: : + precise_timestamps histogram:n1,n2,n3,... The strings "precise_timestamps" and "histogram" are printed only if they were specified when creating the region. @stats_print [ ] Print counters for each step-sized area of a region. region_id returned from @stats_create The index of the starting line in the output. If omitted, all lines are returned. The number of lines to include in the output. If omitted, all lines are returned. Output format for each step-sized area of a region: + counters The first 11 counters have the same meaning as `/sys/block/*/stat or /proc/diskstats`. Please refer to Documentation/admin-guide/iostats.rst for details. 1. the number of reads completed 2. the number of reads merged 3. the number of sectors read 4. the number of milliseconds spent reading 5. the number of writes completed 6. the number of writes merged 7. the number of sectors written 8. the number of milliseconds spent writing 9. the number of I/Os currently in progress 10. the number of milliseconds spent doing I/Os 11. the weighted number of milliseconds spent doing I/Os Additional counters: 12. the total time spent reading in milliseconds 13. the total time spent writing in milliseconds @stats_print_clear [ ] Atomically print and then clear all the counters except the in-flight i/o counters. Useful when the client consuming the statistics does not want to lose any statistics (those updated between printing and clearing). region_id returned from @stats_create The index of the starting line in the output. If omitted, all lines are printed and then cleared. The number of lines to process. If omitted, all lines are printed and then cleared. @stats_set_aux Store auxiliary data aux_data for the specified region. region_id returned from @stats_create The string that identifies data which is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything. h]hdefinition_list)}(hhh](hdefinition_list_item)}(hX @stats_create [ ...] [ []] Create a new region and return the region_id. "-" whole device "+" a range of 512-byte sectors starting with . "" the range is subdivided into areas each containing sectors. "/" the range is subdivided into the specified number of areas. The number of optional arguments The following optional arguments are supported: precise_timestamps use precise timer with nanosecond resolution instead of the "jiffies" variable. When this argument is used, the resulting times are in nanoseconds instead of milliseconds. Precise timestamps are a little bit slower to obtain than jiffies-based timestamps. histogram:n1,n2,n3,n4,... collect histogram of latencies. The numbers n1, n2, etc are times that represent the boundaries of the histogram. If precise_timestamps is not used, the times are in milliseconds, otherwise they are in nanoseconds. For each range, the kernel will report the number of requests that completed within this range. For example, if we use "histogram:10,20,30", the kernel will report four numbers a:b:c:d. a is the number of requests that took 0-10 ms to complete, b is the number of requests that took 10-20 ms to complete, c is the number of requests that took 20-30 ms to complete and d is the number of requests that took more than 30 ms to complete. An optional parameter. A name that uniquely identifies the userspace owner of the range. This groups ranges together so that userspace programs can identify the ranges they created and ignore those created by others. The kernel returns this string back in the output of @stats_list message, but it doesn't use it for anything else. If we omit the number of optional arguments, program id must not be a number, otherwise it would be interpreted as the number of optional arguments. An optional parameter. A word that provides auxiliary data that is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything. h](hterm)}(hq@stats_create [ ...] [ []]h]hq@stats_create [ ...] [ []]}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKfhjiubh definition)}(hhh](h)}(h-Create a new region and return the region_id.h]h-Create a new region and return the region_id.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjubjc)}(hhh](jh)}(h "-" whole device "+" a range of 512-byte sectors starting with . h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK3hjubj~)}(hhh]jc)}(hhh](jh)}(h"-" whole deviceh](jn)}(h"-"h]h“-”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK/hjubj~)}(hhh]h)}(h whole deviceh]h whole device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhK/hjubjh)}(h]"+" a range of 512-byte sectors starting with . h](jn)}(h"+"h]h“+”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK3hjubj~)}(hhh]h)}(hBa range of 512-byte sectors starting with .h]hBa range of 512-byte sectors starting with .}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhK3hjubeh}(h]h ]h"]h$]h&]uh1jbhjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhK3hjubjh)}(h "" the range is subdivided into areas each containing sectors. "/" the range is subdivided into the specified number of areas. h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK;hjubj~)}(hhh]jc)}(hhh](jh)}(hU"" the range is subdivided into areas each containing sectors.h](jn)}(h ""h]h“”}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK7hj3ubj~)}(hhh]h)}(hGthe range is subdivided into areas each containing sectors.h]hGthe range is subdivided into areas each containing sectors.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjEubah}(h]h ]h"]h$]h&]uh1j}hj3ubeh}(h]h ]h"]h$]h&]uh1jghhhK7hj0ubjh)}(hQ"/" the range is subdivided into the specified number of areas. h](jn)}(h"/"h]h“/”}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK;hjbubj~)}(hhh]h)}(h;the range is subdivided into the specified number of areas.h]h;the range is subdivided into the specified number of areas.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjtubah}(h]h ]h"]h$]h&]uh1j}hjbubeh}(h]h ]h"]h$]h&]uh1jghhhK;hj0ubeh}(h]h ]h"]h$]h&]uh1jbhj-ubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhK;hjubjh)}(h@ The number of optional arguments h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK>hjubj~)}(hhh]h)}(h The number of optional argumentsh]h The number of optional arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK>hjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhK>hjubjh)}(hXh The following optional arguments are supported: precise_timestamps use precise timer with nanosecond resolution instead of the "jiffies" variable. When this argument is used, the resulting times are in nanoseconds instead of milliseconds. Precise timestamps are a little bit slower to obtain than jiffies-based timestamps. histogram:n1,n2,n3,n4,... collect histogram of latencies. The numbers n1, n2, etc are times that represent the boundaries of the histogram. If precise_timestamps is not used, the times are in milliseconds, otherwise they are in nanoseconds. For each range, the kernel will report the number of requests that completed within this range. For example, if we use "histogram:10,20,30", the kernel will report four numbers a:b:c:d. a is the number of requests that took 0-10 ms to complete, b is the number of requests that took 10-20 ms to complete, c is the number of requests that took 20-30 ms to complete and d is the number of requests that took more than 30 ms to complete. h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKUhjubj~)}(hhh](h)}(h/The following optional arguments are supported:h]h/The following optional arguments are supported:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhjubjc)}(hhh](jh)}(hXprecise_timestamps use precise timer with nanosecond resolution instead of the "jiffies" variable. When this argument is used, the resulting times are in nanoseconds instead of milliseconds. Precise timestamps are a little bit slower to obtain than jiffies-based timestamps.h](jn)}(hprecise_timestampsh]hprecise_timestamps}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKGhjubj~)}(hhh]h)}(hXuse precise timer with nanosecond resolution instead of the "jiffies" variable. When this argument is used, the resulting times are in nanoseconds instead of milliseconds. Precise timestamps are a little bit slower to obtain than jiffies-based timestamps.h]hXuse precise timer with nanosecond resolution instead of the “jiffies” variable. When this argument is used, the resulting times are in nanoseconds instead of milliseconds. Precise timestamps are a little bit slower to obtain than jiffies-based timestamps.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhj ubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKGhjubjh)}(hXhistogram:n1,n2,n3,n4,... collect histogram of latencies. The numbers n1, n2, etc are times that represent the boundaries of the histogram. If precise_timestamps is not used, the times are in milliseconds, otherwise they are in nanoseconds. For each range, the kernel will report the number of requests that completed within this range. For example, if we use "histogram:10,20,30", the kernel will report four numbers a:b:c:d. a is the number of requests that took 0-10 ms to complete, b is the number of requests that took 10-20 ms to complete, c is the number of requests that took 20-30 ms to complete and d is the number of requests that took more than 30 ms to complete. h](jn)}(hhistogram:n1,n2,n3,n4,...h]hhistogram:n1,n2,n3,n4,...}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKUhj'ubj~)}(hhh]h)}(hXcollect histogram of latencies. The numbers n1, n2, etc are times that represent the boundaries of the histogram. If precise_timestamps is not used, the times are in milliseconds, otherwise they are in nanoseconds. For each range, the kernel will report the number of requests that completed within this range. For example, if we use "histogram:10,20,30", the kernel will report four numbers a:b:c:d. a is the number of requests that took 0-10 ms to complete, b is the number of requests that took 10-20 ms to complete, c is the number of requests that took 20-30 ms to complete and d is the number of requests that took more than 30 ms to complete.h]hXcollect histogram of latencies. The numbers n1, n2, etc are times that represent the boundaries of the histogram. If precise_timestamps is not used, the times are in milliseconds, otherwise they are in nanoseconds. For each range, the kernel will report the number of requests that completed within this range. For example, if we use “histogram:10,20,30”, the kernel will report four numbers a:b:c:d. a is the number of requests that took 0-10 ms to complete, b is the number of requests that took 10-20 ms to complete, c is the number of requests that took 20-30 ms to complete and d is the number of requests that took more than 30 ms to complete.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhj9ubah}(h]h ]h"]h$]h&]uh1j}hj'ubeh}(h]h ]h"]h$]h&]uh1jghhhKUhjubeh}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKUhjubjh)}(hX An optional parameter. A name that uniquely identifies the userspace owner of the range. This groups ranges together so that userspace programs can identify the ranges they created and ignore those created by others. The kernel returns this string back in the output of @stats_list message, but it doesn't use it for anything else. If we omit the number of optional arguments, program id must not be a number, otherwise it would be interpreted as the number of optional arguments. h](jn)}(h h]h }(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK`hjhubj~)}(hhh]h)}(hXAn optional parameter. A name that uniquely identifies the userspace owner of the range. This groups ranges together so that userspace programs can identify the ranges they created and ignore those created by others. The kernel returns this string back in the output of @stats_list message, but it doesn't use it for anything else. If we omit the number of optional arguments, program id must not be a number, otherwise it would be interpreted as the number of optional arguments.h]hXAn optional parameter. A name that uniquely identifies the userspace owner of the range. This groups ranges together so that userspace programs can identify the ranges they created and ignore those created by others. The kernel returns this string back in the output of @stats_list message, but it doesn’t use it for anything else. If we omit the number of optional arguments, program id must not be a number, otherwise it would be interpreted as the number of optional arguments.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhjzubah}(h]h ]h"]h$]h&]uh1j}hjhubeh}(h]h ]h"]h$]h&]uh1jghhhK`hjubjh)}(h An optional parameter. A word that provides auxiliary data that is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything. h](jn)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKfhjubj~)}(hhh]h)}(hAn optional parameter. A word that provides auxiliary data that is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything.h]hAn optional parameter. A word that provides auxiliary data that is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn’t use this value for anything.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKchjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKfhjubeh}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j}hjiubeh}(h]h ]h"]h$]h&]uh1jghhhKfhjdubjh)}(hx@stats_delete Delete the region with the specified id. region_id returned from @stats_create h](jn)}(h@stats_delete h]h@stats_delete }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKlhjubj~)}(hhh](h)}(h(Delete the region with the specified id.h]h(Delete the region with the specified id.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihjubjc)}(hhh]jh)}(h2 region_id returned from @stats_create h](jn)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKlhjubj~)}(hhh]h)}(h%region_id returned from @stats_createh]h%region_id returned from @stats_create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKlhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKlhjdubjh)}(h@stats_clear Clear all the counters except the in-flight i/o counters. region_id returned from @stats_create h](jn)}(h@stats_clear h]h@stats_clear }(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKrhj?ubj~)}(hhh](h)}(h9Clear all the counters except the in-flight i/o counters.h]h9Clear all the counters except the in-flight i/o counters.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKohjQubjc)}(hhh]jh)}(h2 region_id returned from @stats_create h](jn)}(h h]h }(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKrhjeubj~)}(hhh]h)}(h%region_id returned from @stats_createh]h%region_id returned from @stats_create}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhjwubah}(h]h ]h"]h$]h&]uh1j}hjeubeh}(h]h ]h"]h$]h&]uh1jghhhKrhjbubah}(h]h ]h"]h$]h&]uh1jbhjQubeh}(h]h ]h"]h$]h&]uh1j}hj?ubeh}(h]h ]h"]h$]h&]uh1jghhhKrhjdubjh)}(hX@stats_list [] List all regions registered with @stats_create. An optional parameter. If this parameter is specified, only matching regions are returned. If it is not specified, all regions are returned. Output format: : + precise_timestamps histogram:n1,n2,n3,... The strings "precise_timestamps" and "histogram" are printed only if they were specified when creating the region. h](jn)}(h@stats_list []h]h@stats_list []}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh](h)}(h/List all regions registered with @stats_create.h]h/List all regions registered with @stats_create.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKuhjubjc)}(hhh](jh)}(h An optional parameter. If this parameter is specified, only matching regions are returned. If it is not specified, all regions are returned. h](jn)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhK{hjubj~)}(hhh]h)}(hAn optional parameter. If this parameter is specified, only matching regions are returned. If it is not specified, all regions are returned.h]hAn optional parameter. If this parameter is specified, only matching regions are returned. If it is not specified, all regions are returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhK{hjubjh)}(hOutput format: : + precise_timestamps histogram:n1,n2,n3,... h](jn)}(hOutput format:h]hOutput format:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]jc)}(hhh]jh)}(hn: + precise_timestamps histogram:n1,n2,n3,... h](jn)}(hC: + h]hC: + }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]h)}(h)precise_timestamps histogram:n1,n2,n3,...h]h)precise_timestamps histogram:n1,n2,n3,...}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj%ubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubah}(h]h ]h"]h$]h&]uh1jbhj ubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubeh}(h]h ]h"]h$]h&]uh1jbhjubh)}(hrThe strings "precise_timestamps" and "histogram" are printed only if they were specified when creating the region.h]hzThe strings “precise_timestamps” and “histogram” are printed only if they were specified when creating the region.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjdubjh)}(hX@stats_print [ ] Print counters for each step-sized area of a region. region_id returned from @stats_create The index of the starting line in the output. If omitted, all lines are returned. The number of lines to include in the output. If omitted, all lines are returned. Output format for each step-sized area of a region: + counters The first 11 counters have the same meaning as `/sys/block/*/stat or /proc/diskstats`. Please refer to Documentation/admin-guide/iostats.rst for details. 1. the number of reads completed 2. the number of reads merged 3. the number of sectors read 4. the number of milliseconds spent reading 5. the number of writes completed 6. the number of writes merged 7. the number of sectors written 8. the number of milliseconds spent writing 9. the number of I/Os currently in progress 10. the number of milliseconds spent doing I/Os 11. the weighted number of milliseconds spent doing I/Os Additional counters: 12. the total time spent reading in milliseconds 13. the total time spent writing in milliseconds h](jn)}(h<@stats_print [ ]h]h<@stats_print [ ]}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjtubj~)}(hhh](h)}(h4Print counters for each step-sized area of a region.h]h4Print counters for each step-sized area of a region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjc)}(hhh](jh)}(h2 region_id returned from @stats_create h](jn)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]h)}(h%region_id returned from @stats_createh]h%region_id returned from @stats_create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubjh)}(hb The index of the starting line in the output. If omitted, all lines are returned. h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]h)}(hQThe index of the starting line in the output. If omitted, all lines are returned.h]hQThe index of the starting line in the output. If omitted, all lines are returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubjh)}(hd The number of lines to include in the output. If omitted, all lines are returned. h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]h)}(hQThe number of lines to include in the output. If omitted, all lines are returned.h]hQThe number of lines to include in the output. If omitted, all lines are returned.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubeh}(h]h ]h"]h$]h&]uh1jbhjubh)}(h3Output format for each step-sized area of a region:h]h3Output format for each step-sized area of a region:}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj4)}(hX+ counters The first 11 counters have the same meaning as `/sys/block/*/stat or /proc/diskstats`. Please refer to Documentation/admin-guide/iostats.rst for details. 1. the number of reads completed 2. the number of reads merged 3. the number of sectors read 4. the number of milliseconds spent reading 5. the number of writes completed 6. the number of writes merged 7. the number of sectors written 8. the number of milliseconds spent writing 9. the number of I/Os currently in progress 10. the number of milliseconds spent doing I/Os 11. the weighted number of milliseconds spent doing I/Os Additional counters: 12. the total time spent reading in milliseconds 13. the total time spent writing in milliseconds h](jc)}(hhh]jh)}(h!+ counters h](jn)}(h+h]h+}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjBubj~)}(hhh]h)}(hcountersh]hcounters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjTubah}(h]h ]h"]h$]h&]uh1j}hjBubeh}(h]h ]h"]h$]h&]uh1jghhhKhj?ubah}(h]h ]h"]h$]h&]uh1jbhj;ubh)}(hVThe first 11 counters have the same meaning as `/sys/block/*/stat or /proc/diskstats`.h](h/The first 11 counters have the same meaning as }(hjwhhhNhNubh)}(h&`/sys/block/*/stat or /proc/diskstats`h]h$/sys/block/*/stat or /proc/diskstats}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubh.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhj;ubh)}(hBPlease refer to Documentation/admin-guide/iostats.rst for details.h]hBPlease refer to Documentation/admin-guide/iostats.rst for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;ubhenumerated_list)}(hhh](h list_item)}(hthe number of reads completedh]h)}(hjh]hthe number of reads completed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hthe number of reads mergedh]h)}(hjh]hthe number of reads merged}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hthe number of sectors readh]h)}(hjh]hthe number of sectors read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h(the number of milliseconds spent readingh]h)}(hjh]h(the number of milliseconds spent reading}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hthe number of writes completedh]h)}(hj h]hthe number of writes completed}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hthe number of writes mergedh]h)}(hj!h]hthe number of writes merged}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hthe number of sectors writtenh]h)}(hj8h]hthe number of sectors written}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj6ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h(the number of milliseconds spent writingh]h)}(hjOh]h(the number of milliseconds spent writing}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjMubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h(the number of I/Os currently in progressh]h)}(hjfh]h(the number of I/Os currently in progress}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjdubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h+the number of milliseconds spent doing I/Osh]h)}(hj}h]h+the number of milliseconds spent doing I/Os}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj{ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h5the weighted number of milliseconds spent doing I/Os h]h)}(h4the weighted number of milliseconds spent doing I/Osh]h4the weighted number of milliseconds spent doing I/Os}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix.uh1jhj;ubh)}(hAdditional counters:h]hAdditional counters:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;ubj)}(hhh](j)}(h,the total time spent reading in millisecondsh]h)}(hjh]h,the total time spent reading in milliseconds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h-the total time spent writing in milliseconds h]h)}(h,the total time spent writing in millisecondsh]h,the total time spent writing in milliseconds}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jjjhjjstartK uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1j3hhhKhjubeh}(h]h ]h"]h$]h&]uh1j}hjtubeh}(h]h ]h"]h$]h&]uh1jghhhKhjdubjh)}(hX3@stats_print_clear [ ] Atomically print and then clear all the counters except the in-flight i/o counters. Useful when the client consuming the statistics does not want to lose any statistics (those updated between printing and clearing). region_id returned from @stats_create The index of the starting line in the output. If omitted, all lines are printed and then cleared. The number of lines to process. If omitted, all lines are printed and then cleared. h](jn)}(hB@stats_print_clear [ ]h]hB@stats_print_clear [ ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh](h)}(hAtomically print and then clear all the counters except the in-flight i/o counters. Useful when the client consuming the statistics does not want to lose any statistics (those updated between printing and clearing).h]hAtomically print and then clear all the counters except the in-flight i/o counters. Useful when the client consuming the statistics does not want to lose any statistics (those updated between printing and clearing).}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubjc)}(hhh](jh)}(h2 region_id returned from @stats_create h](jn)}(h h]h }(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhj4ubj~)}(hhh]h)}(h%region_id returned from @stats_createh]h%region_id returned from @stats_create}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjFubah}(h]h ]h"]h$]h&]uh1j}hj4ubeh}(h]h ]h"]h$]h&]uh1jghhhKhj1ubjh)}(hr The index of the starting line in the output. If omitted, all lines are printed and then cleared. h](jn)}(hh]h}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjcubj~)}(hhh]h)}(haThe index of the starting line in the output. If omitted, all lines are printed and then cleared.h]haThe index of the starting line in the output. If omitted, all lines are printed and then cleared.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjuubah}(h]h ]h"]h$]h&]uh1j}hjcubeh}(h]h ]h"]h$]h&]uh1jghhhKhj1ubjh)}(hf The number of lines to process. If omitted, all lines are printed and then cleared. h](jn)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]h)}(hSThe number of lines to process. If omitted, all lines are printed and then cleared.h]hSThe number of lines to process. If omitted, all lines are printed and then cleared.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhj1ubeh}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjdubjh)}(hX|@stats_set_aux Store auxiliary data aux_data for the specified region. region_id returned from @stats_create The string that identifies data which is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything. h](jn)}(h%@stats_set_aux h]h%@stats_set_aux }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh](h)}(h7Store auxiliary data aux_data for the specified region.h]h7Store auxiliary data aux_data for the specified region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubjc)}(hhh](jh)}(h2 region_id returned from @stats_create h](jn)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhjubj~)}(hhh]h)}(h%region_id returned from @stats_createh]h%region_id returned from @stats_create}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubjh)}(h The string that identifies data which is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything. h](jn)}(h h]h }(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jmhhhKhj( ubj~)}(hhh]h)}(hThe string that identifies data which is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn't use this value for anything.h]hThe string that identifies data which is useful to the client program that created the range. The kernel returns this string back in the output of @stats_list message, but it doesn’t use this value for anything.}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj: ubah}(h]h ]h"]h$]h&]uh1j}hj( ubeh}(h]h ]h"]h$]h&]uh1jghhhKhjubeh}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j}hjubeh}(h]h ]h"]h$]h&]uh1jghhhKhjdubeh}(h]h ]h"]h$]h&]uh1jbhj^ubah}(h]h ]h"]h$]h&]uh1j3hhhK+hjMhhubeh}(h]messagesah ]h"]messagesah$]h&]uh1hhhhhhhhK)ubh)}(hhh](h)}(hExamplesh]hExamples}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj} hhhhhKubh)}(hWSubdivide the DM device 'vol' into 100 pieces and start collecting statistics on them::h]hZSubdivide the DM device ‘vol’ into 100 pieces and start collecting statistics on them:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj} hhubh literal_block)}(h*dmsetup message vol 0 @stats_create - /100h]h*dmsetup message vol 0 @stats_create - /100}hj sbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1j hhhKhj} hhubh)}(hSet the auxiliary data string to "foo bar baz" (the escape for each space must also be escaped, otherwise the shell will consume them)::h]hSet the auxiliary data string to “foo bar baz” (the escape for each space must also be escaped, otherwise the shell will consume them):}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj} hhubj )}(h6dmsetup message vol 0 @stats_set_aux 0 foo\\ bar\\ bazh]h6dmsetup message vol 0 @stats_set_aux 0 foo\\ bar\\ baz}hj sbah}(h]h ]h"]h$]h&]j j uh1j hhhKhj} hhubh)}(hList the statistics::h]hList the statistics:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj} hhubj )}(h!dmsetup message vol 0 @stats_listh]h!dmsetup message vol 0 @stats_list}hj sbah}(h]h ]h"]h$]h&]j j uh1j hhhKhj} hhubh)}(hPrint the statistics::h]hPrint the statistics:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj} hhubj )}(h$dmsetup message vol 0 @stats_print 0h]h$dmsetup message vol 0 @stats_print 0}hj sbah}(h]h ]h"]h$]h&]j j uh1j hhhKhj} hhubh)}(hDelete the statistics::h]hDelete the statistics:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj} hhubj )}(h%dmsetup message vol 0 @stats_delete 0h]h%dmsetup message vol 0 @stats_delete 0}hj sbah}(h]h ]h"]h$]h&]j j uh1j hhhKhj} hhubeh}(h]examplesah ]h"]examplesah$]h&]uh1hhhhhhhhKubeh}(h] dm-statisticsah ]h"] dm statisticsah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjQ error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j+ j( jz jw j# j u nametypes}(j+ jz j# uh}(j( hjw jMj j} u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]hsystem_message)}(hhh]h)}(h