Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-15 Thread Daniel Veillard
On Fri, Jun 12, 2009 at 03:44:50PM +0100, Daniel P. Berrange wrote: On Thu, Jun 11, 2009 at 02:37:57PM -0400, Hany Fahim wrote: Thanks Daniel, Is it fair to assume this fix may appear in the next release of libvirt? If you want to build from source, I'd appreciate feedback on whether the

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-12 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 02:37:57PM -0400, Hany Fahim wrote: Thanks Daniel, Is it fair to assume this fix may appear in the next release of libvirt? If you want to build from source, I'd appreciate feedback on whether the following patch fixes the problem diff -r f204769dd197 src/xen_internal.c

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-12 Thread Hany Fahim
Hey Daniel, I just patched the source and compiled. It properly reports the free memory now: [r...@node1 ~]# python Python 2.4.3 (#1, Jan 21 2009, 01:10:13) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type help, copyright, credits or license for more information. import libvirt conn =

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Daniel P. Berrange
On Wed, Jun 10, 2009 at 07:28:51PM -0400, Hany Fahim wrote: Hey Daniel, Here is the output of 'xm list' from both machines: I wanted the 'xm info' output actually Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o-

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Hany Fahim
My apologies. Here it is: Xen 3.3: [r...@node1 ~]# xm info host : node1 release: 2.6.18-128.1.10.el5xen version: #1 SMP Thu May 7 11:51:15 EDT 2009 machine: i686 nr_cpus: 2 nr_nodes : 1

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Daniel P. Berrange
On Thu, Jun 11, 2009 at 02:13:17PM -0400, Hany Fahim wrote: My apologies. Here it is: Xen 3.3: [r...@node1 ~]# xm info total_memory : 3063 free_memory: 128 node_to_cpu: node0:0-1 node_to_memory : node0:128 xen_major : 3 xen_minor

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-11 Thread Hany Fahim
Thanks Daniel, Is it fair to assume this fix may appear in the next release of libvirt? Hany On Thu, Jun 11, 2009 at 2:28 PM, Daniel P. Berrange berra...@redhat.comwrote: On Thu, Jun 11, 2009 at 02:13:17PM -0400, Hany Fahim wrote: My apologies. Here it is: Xen 3.3: [r...@node1 ~]# xm

Re: [libvirt] getFreeMemory reporting incorrectly?

2009-06-10 Thread Daniel P. Berrange
On Tue, Jun 09, 2009 at 06:00:29PM -0400, Hany Fahim wrote: Hi, I'm currently running 2 CentOS 5.3 systems, one running Xen 3.3 and libvirt 0.6.4 (called node1) and the other running Xen 3.0.3 (stock CentOS) and libvirt 0.6.4 (called node2). The machines are practically identical except for