On Wed, Mar 13, 2013 at 6:39 PM, Rudy Godoy <rudy(a)stone-head.org> wrote:
On Tue, Mar 12, 2013 at 06:14:55PM +0530, Saurabh Deochake wrote:
> Hi all,
>
Hi,
> I'm new to LXC and libvirt. I have created a LXC container using libvirt.
> In domain XML file I have mentioned "memory" and "current
memory" as 256
> MB.
>
> Now I want to check the memory inside the container, but whenever I run
top
> command or try to cat /proc/meminfo, it shows host machine's memory which
> is 3GB.
>
> So is there any command by which I can check containers memory?
>
>>You could use virsh commands such as dominfo or memtune.
>>virsh --connect lxc:// dominfo <vm-id>
>>regards,
>>Rudy
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.