pcp
[Top] [All Lists]

Patch: gfs2 PMDA additional metrics for review/inclusion

To: pcp@xxxxxxxxxxx
Subject: Patch: gfs2 PMDA additional metrics for review/inclusion
From: Paul Evans <pevans@xxxxxxxxxx>
Date: Tue, 30 Apr 2013 13:47:31 +0100
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4
Hi,

Please consider the patch adding additional metrics for the gfs2 PMDA in pcp.git.

Changed the location on where the indom cache located mounted file-system names to /sys/fs/gfs2/ this allows the additional query for the device id of the file-systems, this is needed for the gfs2_glock_lock_time trace-point metrics. Added the required code changes to support the additional metrics.

Added metrics for glstats "/sys/kernel/debug /gfs2/<fs>/glstats" these metrics can count the number of glocks that exists currently for the file-system and give how many locks per each type of glock.

Added metrics for the gfs2_glock_lock_time trace-point. These metrics determine the current *worst* glock for each file-system at the time of query. The data is fetched from "/sys/kernel/debug/tracing/trace_pipe" which gives the values of glocks for all file-systems live. We read through the pipe reading all of the buffered values and calculate which is the worst glock, the device id for each file-system allows the separation of locks per each file-system mounted.

Created some additional qa tests in "qa/654" and all corresponding help text.

Available at git://github.com/pauljevans/pcp.git dev

Paul.

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