pcp
[Top] [All Lists]

Thin Provisioning (dm-thin) PMDA

To: Nathan Scott <nathans@xxxxxxxxxx>, pcp@xxxxxxxxxxx
Subject: Thin Provisioning (dm-thin) PMDA
From: Paul Evans <pevans@xxxxxxxxxx>
Date: Fri, 20 Mar 2015 17:29:56 +0000
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
Hi,

I have been working towards adding coverage for thin-provisioning (dm-thin)
to PCP to compliment the already existing dm-cache coverage. Please find
below the initial version of a dmthin PMDA for review/inclusion, likewise
with the dmcache PMDA this makes use of the dmsetup tool's status switch
for the targets thin-pool and thin.

Changes committed to git://github.com/pauljevans/pcp.git dev

 qa/657                        |  86 ++++++++
 qa/657.out                    |  96 +++++++++
 qa/group                      |   1 +
 src/pmdas/GNUmakefile         |   3 +-
 src/pmdas/dmthin/.gitignore   |   3 +
 src/pmdas/dmthin/GNUmakefile  |  60 ++++++
 src/pmdas/dmthin/Install      |  34 ++++
 src/pmdas/dmthin/README       |  64 ++++++
 src/pmdas/dmthin/Remove       |  24 +++
 src/pmdas/dmthin/help         |  64 ++++++
src/pmdas/dmthin/pmda.c | 441 ++++++++++++++++++++++++++++++++++++++++++
 src/pmdas/dmthin/pmdadmthin.1 |  70 +++++++
 src/pmdas/dmthin/pmdadmthin.h |  47 +++++
 src/pmdas/dmthin/pmns         |  34 ++++
 src/pmdas/dmthin/root         |   9 +
 src/pmdas/dmthin/stats.c      | 201 +++++++++++++++++++
 src/pmdas/dmthin/stats.h      |  59 ++++++
 src/pmns/stdpmid.pcp          |   1 +
 18 files changed, 1296 insertions(+), 1 deletion(-)

commit 2aae265d83153ee21cd14b31f1722616ce58031e
Author: Paul Evans <pevans@xxxxxxxxxx>
Date:   Fri Mar 20 17:16:23 2015 +0000

    pmdadmthin: Initial PMDA Code

    Initial Thin Provisioning PMDA code making use of the stats given by
dmsetup status for both the thin-pool and thin targets. Exports statistics given for thin-pools and thin provisioned volumes by the dmsetup tool into
    PCP.

Currently providing metrics from the information as described in the kernel documentation/device-mapper/thin-provisioning.txt and will expand to give
    further metrics with future updates.

QA is given by qa/657 which tests the PMDA without the need thin-pools or
    thin provisioned volumes locally (Although the dmsetup tool is required
    for the PMDA to install).

    Code checked with Coverity and has no reported issues.

All of the patches have been tested and have had covscan run on them. As
always please let me know if there are any issues and feedback is welcome
especially as this is my first attempt of a PMDA which utilises more than
one instance.

Cheers,

Paul

<Prev in Thread] Current Thread [Next in Thread>