<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 13, 2013 at 6:39 PM, Rudy Godoy <span dir="ltr"><<a href="mailto:rudy@stone-head.org" target="_blank">rudy@stone-head.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Mar 12, 2013 at 06:14:55PM +0530, Saurabh Deochake wrote:<br>
> Hi all,<br>
><br>
<br>
Hi,<br>
<div><div class="h5"><br>
<br>
> I'm new to LXC and libvirt. I have created a LXC container using libvirt.<br>
> In domain XML file I have mentioned "memory" and "current memory" as 256<br>
> MB.<br>
><br>
> Now I want to check the memory inside the container, but whenever I run top<br>
> command or try to cat /proc/meminfo, it shows host machine's memory which<br>
> is 3GB.<br>
><br>
> So is there any command by which I can check containers memory?<br>
><br>
<br>
</div></div>>>You could use virsh commands such as dominfo or memtune.<br>
<br>
>>virsh --connect lxc:// dominfo <vm-id><br>
<br>
>>regards,<br>
>>Rudy<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Thanks Rudy, I used dominfo but I'm just curious to know if there is any way to check the physical memory inside the container without using virsh commands.<br>
</div></div>