Bug 1286285
| Summary: | dmstats: allow mapping of files to stats regions | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Bryn M. Reeves <bmr> |
| Component: | lvm2 | Assignee: | Bryn M. Reeves <bmr> |
| lvm2 sub component: | dmsetup | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED ERRATA | Docs Contact: | Milan Navratil <mnavrati> |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | agk, cmarthal, heinzm, jbrassow, mnavrati, msnitzer, prajnoha, prockai, zkabelac |
| Version: | 7.2 | ||
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Release Note | |
| Doc Text: |
*dmstats* now supports mapping of files to `dmstats` regions
The "--filemap" option of the "dmstats" command now allows the user to easily configure *dmstats* regions to track I/O operations to a specified file in the file system. Previously, I/O statistics were only available for a whole device, or a region of a device, which limited administrator insight into I/O performance to a per-file basis. Now, the "--filemap" option enables the user to inspect file I/O performance using the same tools used for any *device-mapper* device.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 04:12:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Bryn M. Reeves
2015-11-27 18:26:53 UTC
The functionality for this bug is now complete (although still awaiting review & merge upstream): https://git.fedorahosted.org/cgit/lvm2.git/log/?h=dev-bmr-dmstats-filemap Once the infrastructure for creating and managing groups (bug 1282563) was complete the work to add this additional feature turned out to be less than anticipated. Some rough documentation on the feature: https://paste.fedoraproject.org/388858/66582146/ Verified that file maps can be created and monitored as I/O is running to those files. lvm2-2.02.165-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 lvm2-libs-2.02.165-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 lvm2-cluster-2.02.165-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 device-mapper-1.02.134-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 device-mapper-libs-1.02.134-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 device-mapper-event-1.02.134-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 device-mapper-event-libs-1.02.134-3.el7 BUILT: Wed Sep 21 08:26:18 CDT 2016 device-mapper-persistent-data-0.6.3-1.el7 BUILT: Fri Jul 22 05:29:13 CDT 2016 [root@host-118 ~]# dmstats list --group Name GrpID RgID ObjType RgStart RgSize #Areas ArSize ProgID host-118_load 0 0 group 9.00m 977.00k 1 977.00k dmstats [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 7.00 0 2.86m 418.50k 0.27 13.80 39.14 0.00 39.14 [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 0.00 0 0 0 0.00 0.00 0.00 0.00 0.00 [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 3.00 0 977.00k 325.50k 0.01 0.70 4.67 0.00 4.67 [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 0.00 0 0 0 0.00 0.00 0.00 0.00 0.00 [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 0.00 0 0 0 0.00 0.00 0.00 0.00 0.00 [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 0.00 0 0 0 0.00 0.00 0.00 0.00 0.00 [root@host-118 ~]# dmstats report --group Name GrpID RgID ObjType ArID ArStart ArSize RMrg/s WMrg/s R/s W/s RSz/s WSz/s AvgRqSz QSize Util% AWait RdAWait WrAWait host-118_load 0 0 group 0 9.00m 977.00k 0.00 0.00 0.00 3.00 0 977.00k 325.50k 0.01 0.60 3.67 0.00 3.67 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-1445.html |