Re: Check memory inside a container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
Rudy Godoy
http://stone-head.org

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux