pcp
[Top] [All Lists]

Re: [pcp] Processing cgroup subdirectories in linux_proc pmda

To: Joseph White <jpwhite4@xxxxxxxxxxx>
Subject: Re: [pcp] Processing cgroup subdirectories in linux_proc pmda
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 24 Sep 2013 00:35:53 -0400 (EDT)
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <FD8A80B9-C5E9-4380-9C42-BE94BBEB668A@xxxxxxxxxxx>
References: <FD8A80B9-C5E9-4380-9C42-BE94BBEB668A@xxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: Ac62DG5L6Wvq5CADSxWjm3k7vhjxu3nQZjuS
Thread-topic: Processing cgroup subdirectories in linux_proc pmda

----- Original Message -----
> ...
> I have attached a patch with my suggested fix for this problem. The change
> enables the pmda to parse cgroup subdirectories and create metrics for all
> the child cgroups. I'd be grateful if you could review my proposed changes.

Looks good to me, and some simple testing confirms it works nicely here too -
thanks Joseph.

BTW, working with cgroups you might find the recent extensions to pmdaproc
to allow the process metrics to be restricted to a cgroup of interest.  For
details see "pminfo -T proc.control.perclient.cgroups" (pcp dev branch code).
We're planning on introducing this concept into tools like pmatop(1) so that,
for example, a top(1)-alike tool for just the processes within a cgroup would
exist.

cheers.

--
Nathan

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