Daniel,
My requirement is to get how much memory is free in the guest domain.
Can you please let me know, how can I do that?
And also, as you said it's quite easy to implement dommemstats for lxc
driver, is there any possibility to implement that?
Regards,
Srikanth.
-----Original Message-----
From: Daniel P. Berrange [mailto:berrange@redhat.com]
Sent: Wednesday, April 28, 2010 4:46 PM
To: Kumar L Srikanth-B22348
Cc: libvir-list(a)redhat.com
Subject: Re: 'dommemstat' is not working for LXC hypervisor.
On Wed, Apr 28, 2010 at 04:43:41PM +0530, Kumar L Srikanth-B22348 wrote:
Thanks for the reply Daniel.
Virsh dominfo dommand showing following results:
Id: 32473
Name: vm1
UUID: f13bc513-15f2-1dd1-74f6-18c47931ece9
OS Type: exe
State: running
CPU(s): 1
Max memory: 5000000 kB
Used memory: 5000000 kB
Autostart: disable
Though whatever services running on the domain, every time used memory
is showing as 5000000 kB. Is that result is correct?
The 'Max memory' 5000000 KB is the hard limit that is allocated to the
container. I thought that the 'used memory' field would be lower, but
its possible we don't have the actual stats for used memory so just set
both the same. I'd have to research the code again to answer for sure...
Daniel
--
|: Red Hat, Engineering, London -o-
http://people.redhat.com/berrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org -o-
http://deltacloud.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B
9505 :|