<div dir="ltr">Hi Stéphane,<div><br></div><div>thank you for your help. I didn't know about cgmanager. We implemented a perl tool to get LXC metrics. Is there an easy way to get those metrics from the cgmanager socket?</div>
<div>At the cmdl I tried to talk to the socket via "socat": <br></div><div><br></div><div>echo "getvalue memory '/lxc/galera01-jobs-prodm' memory.limit_in_bytes" | socat unix-connect:/sys/fs/cgroup/cgmanager/sock stdio</div>
<div><br></div><div>But this did not work. After reading "<a href="https://cgmanager.linuxcontainers.org/">https://cgmanager.linuxcontainers.org/</a>" I am still not sure how to to talk to the socket. "cgm" works fine</div>
<div><br></div><div>cgm getvalue memory '/lxc/containername' memory.limit_in_bytes <br></div><div><br></div><div>but I would like to "talk" directly to the socket.</div><div><br></div><div>Regards,</div>
<div>Flo</div><div><br></div><div>PS: Thank you for your GREAT work!!!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 22, 2014 at 3:15 PM, Stéphane Graber <span dir="ltr"><<a href="mailto:stgraber@ubuntu.com" target="_blank">stgraber@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Apr 22, 2014 at 10:08:29AM +0200, Flo wrote:<br>
> Hi,<br>
><br>
> since we upgraded to the latest ubuntu release (14.04 developement -><br>
> 14.04. 22. Apr 2014) those cgroups mounted inside the container via<br>
> "lxc.mount.auto = cgroup:mixed" do not exist anmyore?<br>
><br>
><br>
> root@app01-xxxxxx:~# ls -la /sys/fs/cgroup/<br>
> total 0<br>
> drwxr-xr-x 3 root root 60 Apr 22 09:58 .<br>
> drwxr-xr-x 7 root root  0 Apr 22 09:58 ..<br>
> drwxr-xr-x 2 root root 60 Apr 22 09:56 cgmanager<br>
><br>
><br>
> Any idea what changed?<br>
><br>
> Regards,<br>
> Flo<br>
<br>
It's actually working as expected in that cgroup:mixed will either<br>
bind-mount all independent cgroups when LXC uses cgroupfs or the<br>
cgmanager socket when using cgmanager. Ubuntu 14.04 uses cgmanager so<br>
the latter case was used and only the cgmanager socket was bind-mounted.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Stéphane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
</font></span><br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>