<div dir="ltr">Hello CDR, ..<div><br></div><div>If your containers are accessible over ssh, you can iterate through the containers and run a top or top-like command in each of them. You might need unique users though.</div>
<div><br></div><div><div> for C in $(lxc-ls)</div><div> do</div><div> ssh $C "top -n 1"</div></div><div> sleep 1</div><div> done</div><div><br></div><div>On the other hand, yes, it would be practical to see this directly on the top of the host.</div>
<div>I think with a proper UID and GID mapping that should be possible somehow.</div><div><br></div><div>As long we do not have unprivileged containers, and GID / UID mappings, we are still in development IMO.</div><div><br>
</div><div><br></div><div><a href="https://github.com/LaKing/Fedora-scripts">https://github.com/LaKing/Fedora-scripts</a><br></div><div><br></div><div>greetings, ...</div><div><br></div><div><br></div><div><br></div><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 21, 2014 at 2:07 AM, CDR <span dir="ltr"><<a href="mailto:venefax@gmail.com" target="_blank">venefax@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Friends<br>
I have 20+ containers with the same programs running. All of them are<br>
cpu-intensive. But one of them is eating way more CPU than the<br>
average. With "top" I have no idea which container "owns" that<br>
program. Perhaps we need a new "lxc-top" that would identify the<br>
process and the container, and maybe allow to sort by container-cpu or<br>
memory, or show cpu-container, memory-container, etc.<br>
<br>
Philip<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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="text-align:left">
<font size="4">Király </font><span style="font-size:large">István</span></div><div style="text-align:left"><font>+36 209 753 758</font></div><div style="text-align:left"><font><a href="mailto:LaKing@D250.hu" target="_blank">LaKing@D250.hu</a></font></div>
<div style="text-align:left"><a href="http://d250.hu" target="_blank"><img src="http://laking.d250.hu/lab.png"></a><br></div></div>
</div>