1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

doc: update dmstats.8.in for groups

This commit is contained in:
Bryn M. Reeves 2016-06-22 18:36:10 +01:00
parent cf6c1665f1
commit f403ac8bf0
2 changed files with 149 additions and 12 deletions

View File

@ -1,5 +1,10 @@
Version 1.02.129 - Version 1.02.129 -
================================= =================================
Update default dmstats field selections for groups.
Add 'obj_type', 'group_id', and 'statsname' fields to dmstats reports.
Add --area, --region, and --group to dmstats to control object selection.
Add --alias, --groupid, --regions to dmstats for group creation and deletion.
Add 'group' and 'ungroup' commands to dmstats.
Allow dm_stats_delete_group() to optionally delete all group members. Allow dm_stats_delete_group() to optionally delete all group members.
Add dm_stats_get_object_type() to return the type of object present. Add dm_stats_get_object_type() to return the type of object present.
Add dm_stats_walk_init() allowing control of objects visited by walks. Add dm_stats_walk_init() allowing control of objects visited by walks.

View File

@ -1,4 +1,4 @@
.TH DMSTATS 8 "Jul 25 2015" "Linux" "MAINTENANCE COMMANDS" .TH DMSTATS 8 "Jun 23 2016" "Linux" "MAINTENANCE COMMANDS"
.de OPT_PROGRAMS .de OPT_PROGRAMS
. RB \%[ \-\-allprograms | \-\-programid . RB \%[ \-\-allprograms | \-\-programid
@ -110,6 +110,20 @@ dmstats \(em device-mapper statistics management
. .
.HP .HP
.B dmstats .B dmstats
.de CMD_GROUP
. ad l
. BR group
. RI [ device_name ]
. RB [ \-\-alias
. IR name ]
. RB [ \-\-alldevices ]
. RB [ \-\-regions
. IR regions ]
. ad b
..
.CMD_GROUP
.HP
.B dmstats
.de CMD_HELP .de CMD_HELP
. ad l . ad l
. BR help . BR help
@ -126,6 +140,8 @@ dmstats \(em device-mapper statistics management
. RI [ device_name ] . RI [ device_name ]
. RB [ \-\-histogram ] . RB [ \-\-histogram ]
. OPT_PROGRAMS . OPT_PROGRAMS
. RB [ \-\-statstype
. IR type_list ]
. RB [ \-\-units . RB [ \-\-units
. IR units ] . IR units ]
. RB \%[ \-\-nosuffix ] . RB \%[ \-\-nosuffix ]
@ -167,6 +183,8 @@ dmstats \(em device-mapper statistics management
. IR sort_fields ] . IR sort_fields ]
. RB [ \-S | \-\-select . RB [ \-S | \-\-select
. IR selection ] . IR selection ]
. RB [ \-\-statstype
. IR type_list ]
. RB [ \-\-units . RB [ \-\-units
. IR units ] . IR units ]
. RB [ \-\-nosuffix ] . RB [ \-\-nosuffix ]
@ -174,6 +192,18 @@ dmstats \(em device-mapper statistics management
. ad b . ad b
.. ..
.CMD_REPORT .CMD_REPORT
.HP
.B dmstats
.de CMD_UNGROUP
. ad l
. BR ungroup
. RI [ device_name ]
. RB [ \-\-alldevices ]
. RB [ \-\-groupid
. IR id ]
. ad b
..
.CMD_UNGROUP
. .
.PD .PD
.ad b .ad b
@ -199,6 +229,12 @@ commands require the use of \fB\-\-alldevices\fP when used in this way.
.SH OPTIONS .SH OPTIONS
. .
.HP .HP
.BR \-\-alias
.IR name
.br
Specify an alias name for a group.
.
.HP
.BR \-\-alldevices .BR \-\-alldevices
.br .br
If no device arguments are given allow operation on all devices when If no device arguments are given allow operation on all devices when
@ -250,6 +286,12 @@ Specify the iteration count for repeating reports. If the count
argument is zero reports will continue to repeat until interrupted. argument is zero reports will continue to repeat until interrupted.
. .
.HP .HP
.BR \-\-groupid
.IR id
.br
Specify the group to operate on.
.
.HP
.BR \-\-bounds .BR \-\-bounds
.IR histogram_boundaries \c .IR histogram_boundaries \c
.RB [ ns | us | ms | s ] .RB [ ns | us | ms | s ]
@ -346,6 +388,14 @@ default program ID for dmstats-managed regions is "dmstats".
Specify the region to operate on. Specify the region to operate on.
. .
.HP .HP
.BR \-\-regions
.IR region_list
.br
Specify a list of regions to group. The group list is a comma-separated
list of region identifiers. Continuous sequences of identifiers may be
expressed as a hyphen separated range, for example: '1-10'.
.
.HP
.BR \-\-relative .BR \-\-relative
.br .br
If displaying the histogram report show relative (percentage) values If displaying the histogram report show relative (percentage) values
@ -379,6 +429,20 @@ device. This causes a separate region to be allocated for each segment
of the device. of the device.
. .
.HP .HP
.BR \-\-statstype
.IR type_list
.br
Filter the types of statistics object included in a report or listing
according to the provided list. A report may include areas, regions,
and user-defined groups of regions that report aggregate data for all
group members.
The list may be a single object type, a comma separated list of types,
or the special value 'all'.
The currently available object types are 'area', 'region' and 'group'.
.
.HP
.BR \-\-units .BR \-\-units
.RI [ units ] \c .RI [ units ] \c
.RB [ h | H | \c .RB [ h | H | \c
@ -461,6 +525,28 @@ All regions registered on a device may be removed using
To remove all regions on all devices both \fB\-\-allregions\fP and To remove all regions on all devices both \fB\-\-allregions\fP and
\fB\-\-alldevices\fP must be used. \fB\-\-alldevices\fP must be used.
If a \fB\-\-groupid\fP is given instead of a \fB\-\-regionid\fP the
command will attempt to delete the group and all regions that it
contains.
If a deleted region is the first member of a group of regions the group
will also be removed.
.
.HP
.CMD_GROUP
.br
Combine one or more statistics regions on the specified device into a
group.
The list of regions to be grouped is specified with \fB\-\-regions\fP
and an optional alias may be assigned with \fB\-\-alias\fP. The set of
regions is given as a comma-separated list of region identifiers. A
continuous range of identifers spanning from \fBR1\fP to \fBR2\fP may
be expressed as '\fBR1\fP-\fBR2\fP'.
On success the group list and newly created \fBgroup_id\fP are
printed to stdout.
. .
.HP .HP
.CMD_HELP .CMD_HELP
@ -471,16 +557,23 @@ the list of report fields.
.HP .HP
.CMD_LIST .CMD_LIST
.br .br
List the statistics regions registered on the device. If the List the statistics regions, areas, or groups registered on the device.
\fB\-\-allprograms\fP switch is given all regions will be listed If the \fB\-\-allprograms\fP switch is given all regions will be listed
regardless of region program ID values. regardless of region program ID values.
If \fB\-v\fP or \fB\-\-verbose\fP is given the report will include By default only regions and groups are included in list output. If
a row of information for each area contained in each region displayed. \fB\-v\fP or \fB\-\-verbose\fP is given the report will also include a
row of information for each configured group and for each area contained
in each region displayed (regions that contain a single area are by
default omitted from the verbose list since their properties are
identical to the area that they contain - to view all regions regardless
of the number of areas they contain use \fB\-\-statstype\fP).
Specific combinations of objects may be selected using the
\fB\-\-statstype\fP option.
If \fB\-\-histogram\fP is given the report will include the bin count If \fB\-\-histogram\fP is given the report will include the bin count
and latency boundary values for any configured histograms. and latency boundary values for any configured histograms.
.
.HP .HP
.CMD_PRINT .CMD_PRINT
.br .br
@ -490,7 +583,7 @@ present regions.
.HP .HP
.CMD_REPORT .CMD_REPORT
.br .br
Start a report for the specified region or for all present regions. If Start a report for the specified object or for all present objects. If
the count argument is specified, the report will repeat at a fixed the count argument is specified, the report will repeat at a fixed
interval set by the \fB\-\-interval\fP option. The default interval is interval set by the \fB\-\-interval\fP option. The default interval is
one second. one second.
@ -503,19 +596,41 @@ values and latency boundaries.
If the \fB\-\-relative\fP is used the default histogram field displays If the \fB\-\-relative\fP is used the default histogram field displays
bin values as a percentage of the total number of I/Os. bin values as a percentage of the total number of I/Os.
Object types (areas, regions and groups) are selected using the
\fB\-\-statstype\fP option.
. .
.SH REGIONS AND AREAS .HP
.CMD_UNGROUP
.br
Remove an existing group and return all the group's regions to their
original state.
The group to be removed is specified using \fB\-\-groupid\fP.
.
.SH REGIONS, AREAS, AND GROUPS
. .
The device-mapper statistics facility allows separate performance The device-mapper statistics facility allows separate performance
counters to be maintained for arbitrary regions of devices. A region may counters to be maintained for arbitrary regions of devices. A region may
span any range: from a single sector to the whole device. A region may span any range: from a single sector to the whole device. A region may
be further sub-divided into a number of distinct areas (one or more), be further sub-divided into a number of distinct areas (one or more),
each with its own counter set. each with its own counter set. In this case a summary value for the
entire region is also available for use in reports.
In addition, one or more regions on one device can be combined into
a statistics group allowing reporting of aggregate values for all
regions and areas making up the group.
By default new regions span the entire device. The \fB\-\-start\fP and By default new regions span the entire device. The \fB\-\-start\fP and
\fB\-\-length\fP options allows a region of any size to be placed at any \fB\-\-length\fP options allows a region of any size to be placed at any
location on the device. location on the device.
Using offsets it is possible to create regions that map individual
objects within a block device (for example: partitions, files in a file
system, or stripes or other structures in a RAID volume). Groups allow
several non-contiguous regions to be assembled together for reporting
and data aggregation.
A region may be either divided into the specified number of equal-sized A region may be either divided into the specified number of equal-sized
areas, or into areas of the given size by specifying one of areas, or into areas of the given size by specifying one of
\fB\-\-areas\fP or \fB\-\-areasize\fP when creating a region with the \fB\-\-areas\fP or \fB\-\-areasize\fP when creating a region with the
@ -531,6 +646,19 @@ values).
Depending on the sequence of create and delete operations, gaps may Depending on the sequence of create and delete operations, gaps may
exist in the sequence of \fBregion_id\fP values for a particular device. exist in the sequence of \fBregion_id\fP values for a particular device.
The \fBregion_id\fP should be treated as an opaque identifier used to
reference the region.
.
.P
.B Group identifiers
.P
Groups are also assigned an integer identifier at creation time;
like region identifiers, group identifiers are unique within the
containing device.
The \fBgroup_id\fP should be treated as an opaque identifier used to
reference the group.
. .
.SH REPORT FIELDS .SH REPORT FIELDS
. .
@ -591,10 +719,10 @@ Percentage of CPU time during which I/O requests were issued to the
device (bandwidth utilization for the device). Device saturation occurs device (bandwidth utilization for the device). Device saturation occurs
when this value is close to 100%. when this value is close to 100%.
. .
.SS Region and area meta fields .SS Group, region and area meta fields
. .
Meta fields provide information about the region or area that the Meta fields provide information about the groups, regions, or areas that
statistics values relate to. This includes the region and area the statistics values relate to. This includes the region and area
identifier, start, length, and counts, as well as the program ID and identifier, start, length, and counts, as well as the program ID and
auxiliary data values. auxiliary data values.
.TP .TP
@ -636,6 +764,10 @@ The program ID value associated with this region.
.B aux_data .B aux_data
The auxiliary data value associated with this region. The auxiliary data value associated with this region.
.TP .TP
.B group_id
Group identifier. This is a non-negative integer returned by the dmstats
\fBgroup\fP command when a statistics group is created.
.TP
.B interval_ns .B interval_ns
The estimated interval over which the current counter values have The estimated interval over which the current counter values have
accumulated. The value is reported as an interger expressed in units accumulated. The value is reported as an interger expressed in units