pcp
[Top] [All Lists]

Re: PCP 3.10.5

To: henry c <hc3249@xxxxxxxxx>
Subject: Re: PCP 3.10.5
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Thu, 30 Apr 2015 19:09:38 -0400 (EDT)
Cc: pcp developers <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <CABMF9cuiVbz83dHNMb2kyBUG=SBc8=hMtnH3=c52YwP=ONasaw@xxxxxxxxxxxxxx>
References: <CABMF9cuiUXe3Sss+ZUZn4oh1Stsp43u1G1ib_DQhZ58v1FimdA@xxxxxxxxxxxxxx> <513687800.9959776.1430348643936.JavaMail.zimbra@xxxxxxxxxx> <CABMF9cuiVbz83dHNMb2kyBUG=SBc8=hMtnH3=c52YwP=ONasaw@xxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: 1ILkrSbpioaTjOk/QI4Ecg7d8jJcZA==
Thread-topic: PCP 3.10.5
Hi there Henry,

(CC'ing the PCP list in case others come across this phenomenon too)

----- Original Message -----
> Hey Nathan,
> 
> Thanks for the quick response!
> 
> I was able to install the new code, and get data from those 3 new metrics.
> 
> However the cgroup.memory.limit looks weird to me, i dont think this is in
> bit or bytes since it would be too large.

Thanks for trying it out!  These values are sourced from the kernel via the
cgroup pseudo-filesystem, and we pass back (unmodified) the contents of the
statistics files for each cgroup.

You should be able to find these files and check what limits/usage the kernel
is applying.  For cgroups that are used in Docker containers, you should see
things like:

$ cat 
/sys/fs/cgroup/memory/system.slice/docker-c4f1a5c72ee11e819c1560b6a3be752d3dd6486f84df8322647ad96a184f1f4d.scope/memory.max_usage_in_bytes
 
14336000
$ cat 
/sys/fs/cgroup/memory/system.slice/docker-c4f1a5c72ee11e819c1560b6a3be752d3dd6486f84df8322647ad96a184f1f4d.scope/memory.usage_in_bytes
 
528384

$ docker ps | grep c4f1a5c72ee
c4f1a5c72ee1        fedora:20           "/bin/bash"         18 hours ago        
Up 18 hours                             jovial_galileo      

$ pminfo --fetch --container=jovial_galileo cgroup.memory.usage

cgroup.memory.usage
    inst [0 or 
"/system.slice/docker-c4f1a5c72ee11e819c1560b6a3be752d3dd6486f84df8322647ad96a184f1f4d.scope"]
 value 528384


cheers.

--
Nathan

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