pcp
[Top] [All Lists]

Linux PMDA fd count metric

To: pcp@xxxxxxxxxxx
Subject: Linux PMDA fd count metric
From: David Disseldorp <ddiss@xxxxxxx>
Date: Mon, 25 Jul 2011 11:59:23 +0200
Hi,

The following patch adds a proc.fd.count metric to the Linux PMDA,
using the contents of /proc/<pid>/fd as its data source. This metric may
be useful in watching for application file descriptor leaks.

Version 2:
- Unconditionally count all /proc/<pid>/fd entries, then subtract two
- rename metric from proc.fd.numopen

Cheers, David
--

The following changes since commit 4889dd72ed9e4d45042df419d8a9a4c01176fc9c:

  Resolve spaces-in-SIM_ABI related build issue on IA64 SLES11SP1. (2011-07-23 
10:01:35 +1000)

are available in the git repository at:
  git://oss.sgi.com/ddiss/pcp dev_linux_pmda_fd_numopen_v2

David Disseldorp (1):
      Add open file-descriptor count metric to the Linux PMDA

 src/pmdas/linux/clusters.h |    1 +
 src/pmdas/linux/help       |    3 +++
 src/pmdas/linux/pmda.c     |   19 ++++++++++++++++++-
 src/pmdas/linux/proc_pid.c |   38 ++++++++++++++++++++++++++++++++++++++
 src/pmdas/linux/proc_pid.h |   14 ++++++++++++++
 src/pmdas/linux/root_linux |    7 ++++++-
 6 files changed, 80 insertions(+), 2 deletions(-)

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