From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chu Rui Subject: PoD with Windows Balloon Date: Tue, 30 Nov 2010 19:05:30 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0716784852==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xen-devel@lists.xensource.com" , George Dunlap List-Id: xen-devel@lists.xenproject.org --===============0716784852== Content-Type: multipart/alternative; boundary=000e0cd1a1fcb3bfa00496432aba --000e0cd1a1fcb3bfa00496432aba Content-Type: text/plain; charset=ISO-8859-1 Hi, I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is RHEL 5.4/kernel 2.6.31, and DomainU is Windows 2003. It does not work well as in Linux/HVM. The primary problem looks in the balloon driver, which was obtained from http://xenbits.xensource.com/ext/win-pvdrivers.hg In my configuration, memory=512M, and maxmem=2G. After booted, I want to inflate the balloon with the target=390M, but the balloon driver does not work correctly. It becomes clear after I get the debug messges from the balloon driver as this: 00000000 0.00000000 XenPCI --> XenPci_BalloonHandler 00000001 0.00153629 XenPCI target memory value = 390 (400000) 00000002 0.00619057 XenPCI <-- XenPci_BalloonHandler 00000003 0.00619715 XenPCI Got balloon event, current = 512, target = 390 00000004 0.00858740 XenPCI Trying to give 122 MB to Xen 00000005 0.00968578 XenPCI Calling HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count = 256 00000006 0.02019652 XenPCI decreased 256 pages ...... Obviously, the balloon driver thinks that the system has(target) only 512M memory when booted, thus the balloon size was 122MB, not 2G-390M. Is it a bug of the Windows balloon driver? Does it work if I simply modify the source code to make the initial target value as 2G? Thanks. --000e0cd1a1fcb3bfa00496432aba Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is RHEL = 5.4/kernel 2.6.31, and DomainU is Windows 2003.
It does not work well as in Linux/HVM. The primary problem=A0looks in = the balloon driver, which was obtained from http://xenbits.xensource.com/ex= t/win-pvdrivers.hg
=A0
= In my configuration, memory=3D512M, and maxmem=3D2G. After booted,=A0I want= to inflate the balloon with the target=3D390M, but the balloon driver does= not work correctly.
= It becomes clear after I get the debug messges from the balloon driver as t= his:
= =A0
00000000=A00.00000000=A0= XenPCI --> XenPci_BalloonHandler=A0
00000001=A00.00153629=A0XenPCI=A0= =A0=A0=A0 target memory value =3D 390 (400000)=A0
00000002=A00.00619057= =A0XenPCI <-- XenPci_BalloonHandler=A0
00000003=A00.00619715=A0XenPCI=A0=A0=A0=A0 Got balloon event, current =3D 5= 12, target =3D 390=A0
00000004=A00.00858740=A0XenPCI=A0=A0=A0=A0 Trying = to give 122 MB to Xen=A0
00000005=A00.00968578=A0XenPCI=A0=A0=A0=A0 Call= ing HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count =3D 256= =A0
00000006=A00.02019652=A0XenPCI=A0=A0=A0=A0 decreased 256 pages=A0
......
=A0
= Obviously, the balloon driver thinks that the system has(target) only 512M = memory when booted, thus the balloon size was 122MB, not 2G-390M. Is it a b= ug of the Windows balloon driver? Does it work if I simply modify the sourc= e code to make the initial target value as 2G?
= =A0
= Thanks.
= =A0
--000e0cd1a1fcb3bfa00496432aba-- --===============0716784852== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0716784852==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: PoD with Windows Balloon Date: Tue, 30 Nov 2010 11:15:18 +0000 Message-ID: <4CF4DCC6.8080800@eu.citrix.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chu Rui Cc: Paul Durrant , "Xen-devel@lists.xensource.com" , James Harper List-Id: xen-devel@lists.xenproject.org It looks like possibly the GPLPV baloon driver is using the wrong value to calculate how much memory it's starting with (and thus how big it needs to make the balloon)? The Citrix Windows PV drivers (which you can get free-as-in-beer from the XCP distribution) work properly with PoD on open-source last time I checked (probably a month ago). -George On 30/11/10 11:05, Chu Rui wrote: > Hi, > I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is RHEL > 5.4/kernel 2.6.31, and DomainU is Windows 2003. > It does not work well as in Linux/HVM. The primary problem looks in the > balloon driver, which was obtained from > http://xenbits.xensource.com/ext/win-pvdrivers.hg > In my configuration, memory=512M, and maxmem=2G. After booted, I want to > inflate the balloon with the target=390M, but the balloon driver does > not work correctly. > It becomes clear after I get the debug messges from the balloon driver > as this: > 00000000 0.00000000 XenPCI --> XenPci_BalloonHandler > 00000001 0.00153629 XenPCI target memory value = 390 (400000) > 00000002 0.00619057 XenPCI <-- XenPci_BalloonHandler > 00000003 0.00619715 XenPCI Got balloon event, current = 512, target > = 390 > 00000004 0.00858740 XenPCI Trying to give 122 MB to Xen > 00000005 0.00968578 XenPCI Calling > HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count = 256 > 00000006 0.02019652 XenPCI decreased 256 pages > ...... > Obviously, the balloon driver thinks that the system has(target) only > 512M memory when booted, thus the balloon size was 122MB, not 2G-390M. > Is it a bug of the Windows balloon driver? Does it work if I simply > modify the source code to make the initial target value as 2G? > Thanks. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Durrant Subject: RE: PoD with Windows Balloon Date: Tue, 30 Nov 2010 11:25:21 +0000 Message-ID: <291EDFCB1E9E224A99088639C47620228CF938A23F@LONPMAILBOX01.citrite.net> References: <4CF4DCC6.8080800@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4CF4DCC6.8080800@eu.citrix.com> Content-Language: en-US List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap , Chu Rui Cc: James, "Xen-devel@lists.xensource.com" , Harper List-Id: xen-devel@lists.xenproject.org The balloon driver should read memory/static-max and memory/target from xen= store. The balloon size should be the former minus the latter. Paul > -----Original Message----- > From: George Dunlap > Sent: 30 November 2010 11:15 > To: Chu Rui > Cc: Xen-devel@lists.xensource.com; James Harper; Paul Durrant > Subject: Re: PoD with Windows Balloon >=20 > It looks like possibly the GPLPV baloon driver is using the wrong > value > to calculate how much memory it's starting with (and thus how big it > needs to make the balloon)? >=20 > The Citrix Windows PV drivers (which you can get free-as-in-beer > from > the XCP distribution) work properly with PoD on open-source last > time I > checked (probably a month ago). >=20 > -George >=20 > On 30/11/10 11:05, Chu Rui wrote: > > Hi, > > I have tried PoD in Windows/HVM. My VMM is XEN 4.0.0, Domain0 is > RHEL > > 5.4/kernel 2.6.31, and DomainU is Windows 2003. > > It does not work well as in Linux/HVM. The primary problem looks > in the > > balloon driver, which was obtained from > > http://xenbits.xensource.com/ext/win-pvdrivers.hg > > In my configuration, memory=3D512M, and maxmem=3D2G. After booted, I > want to > > inflate the balloon with the target=3D390M, but the balloon driver > does > > not work correctly. > > It becomes clear after I get the debug messges from the balloon > driver > > as this: > > 00000000 0.00000000 XenPCI --> XenPci_BalloonHandler > > 00000001 0.00153629 XenPCI target memory value =3D 390 (400000) > > 00000002 0.00619057 XenPCI <-- XenPci_BalloonHandler > > 00000003 0.00619715 XenPCI Got balloon event, current =3D 512, > target > > =3D 390 > > 00000004 0.00858740 XenPCI Trying to give 122 MB to Xen > > 00000005 0.00968578 XenPCI Calling > > HYPERVISOR_memory_op(XENMEM_decrease_reservation) - pfn_count =3D > 256 > > 00000006 0.02019652 XenPCI decreased 256 pages > > ...... > > Obviously, the balloon driver thinks that the system has(target) > only > > 512M memory when booted, thus the balloon size was 122MB, not 2G- > 390M. > > Is it a bug of the Windows balloon driver? Does it work if I > simply > > modify the source code to make the initial target value as 2G? > > Thanks.