[libvirt-users] Check memory inside a container

Saurabh Deochake saurabh.d04 at gmail.com
Thu Mar 14 04:49:29 UTC 2013


On Wed, Mar 13, 2013 at 6:39 PM, Rudy Godoy <rudy at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130314/630de78b/attachment.htm>


More information about the libvirt-users mailing list