* Balloon down memory failed in x86 PAE mode when memory size>4G
@ 2009-09-21 6:42 ANNIE LI
2009-09-21 8:58 ` Keir Fraser
0 siblings, 1 reply; 9+ messages in thread
From: ANNIE LI @ 2009-09-21 6:42 UTC (permalink / raw)
To: Xen-devel
Hi
I implemented balloon in windows pv driver, it works normally on x86 and
x64 OS.
However, i hit problem to balloon down memory on x86 PAE mode VM when
it's memory
size is larger than 4G.
Furthermore, i tested linux PVHVM too. Balloon driver also failed to
take effect
at the same situation.
So, is there anything missed in windows or linux PV driver when
ballooning down
memory on x86 PAE VM(memory>4G)? or is there a limitation in Xen for PAE
mode?
Thanks
Annie.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 6:42 Balloon down memory failed in x86 PAE mode when memory size>4G ANNIE LI
@ 2009-09-21 8:58 ` Keir Fraser
2009-09-21 9:15 ` ANNIE LI
0 siblings, 1 reply; 9+ messages in thread
From: Keir Fraser @ 2009-09-21 8:58 UTC (permalink / raw)
To: ANNIE LI, Xen-devel
We'd expect it to work. Please provide more details.
-- Keir
On 21/09/2009 07:42, "ANNIE LI" <annie.li@oracle.com> wrote:
> Hi
>
> I implemented balloon in windows pv driver, it works normally on x86 and
> x64 OS.
> However, i hit problem to balloon down memory on x86 PAE mode VM when
> it's memory
> size is larger than 4G.
>
> Furthermore, i tested linux PVHVM too. Balloon driver also failed to
> take effect
> at the same situation.
>
> So, is there anything missed in windows or linux PV driver when
> ballooning down
> memory on x86 PAE VM(memory>4G)? or is there a limitation in Xen for PAE
> mode?
>
> Thanks
> Annie.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 8:58 ` Keir Fraser
@ 2009-09-21 9:15 ` ANNIE LI
2009-09-21 9:25 ` Paul Durrant
2009-09-21 10:05 ` Keir Fraser
0 siblings, 2 replies; 9+ messages in thread
From: ANNIE LI @ 2009-09-21 9:15 UTC (permalink / raw)
To: Keir Fraser; +Cc: Xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1808 bytes --]
My xen version is Xen3.4.0, and i use el5u2 pvhvm to have test.
The memory size is 6114. "xm info" dose not show any change on
free_memory after command "xm mem-set domid 4096". It seems free_memory
will change after i set memory size less than 3083M, such as: free
memory will increase 1 after command "xm mem-set domid 3082".
The vm configure file is following:
name = "OVM_EL5U2_X86_PVHVM_4GB"
builder = "hvm"
memory = "6114"
disk = [
'file:/mnt/running_pool/OVM_EL5U2_X86_PVHVM_4GB/System.img,hda,w', ]
vif = [ 'type=netfront', ]
device_model = "/usr/lib/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
vncunused=1
vnclisten = '0.0.0.0'
timer_mode=0
apic=1
acpi=1
pae=1
vcpus=1
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
Thanks
Annie.
Keir Fraser wrote:
> We'd expect it to work. Please provide more details.
>
> -- Keir
>
> On 21/09/2009 07:42, "ANNIE LI" <annie.li@oracle.com> wrote:
>
>
>> Hi
>>
>> I implemented balloon in windows pv driver, it works normally on x86 and
>> x64 OS.
>> However, i hit problem to balloon down memory on x86 PAE mode VM when
>> it's memory
>> size is larger than 4G.
>>
>> Furthermore, i tested linux PVHVM too. Balloon driver also failed to
>> take effect
>> at the same situation.
>>
>> So, is there anything missed in windows or linux PV driver when
>> ballooning down
>> memory on x86 PAE VM(memory>4G)? or is there a limitation in Xen for PAE
>> mode?
>>
>> Thanks
>> Annie.
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
[-- Attachment #1.2: Type: text/html, Size: 2795 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 9:15 ` ANNIE LI
@ 2009-09-21 9:25 ` Paul Durrant
2009-09-21 9:41 ` ANNIE LI
2009-09-21 10:05 ` Keir Fraser
1 sibling, 1 reply; 9+ messages in thread
From: Paul Durrant @ 2009-09-21 9:25 UTC (permalink / raw)
To: ANNIE LI; +Cc: Xen-devel, Keir Fraser
ANNIE LI wrote:
>>> I implemented balloon in windows pv driver, it works normally on x86 and
>>> x64 OS.
>>> However, i hit problem to balloon down memory on x86 PAE mode VM when
>>> it's memory
>>> size is larger than 4G.
>>>
Which version of windows are you booting? It may not be using PAE; check
your boot flags.
Paul
--
===============================
Paul Durrant, Software Engineer
Citrix Systems (R&D) Ltd.
First Floor, Building 101
Cambridge Science Park
Milton Road
Cambridge CB4 0FY
United Kingdom
TEL: x35957 (+44 1223 225957)
===============================
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 9:25 ` Paul Durrant
@ 2009-09-21 9:41 ` ANNIE LI
2009-09-21 9:58 ` Paul Durrant
0 siblings, 1 reply; 9+ messages in thread
From: ANNIE LI @ 2009-09-21 9:41 UTC (permalink / raw)
To: Paul Durrant; +Cc: Xen-devel, Keir Fraser
Paul Durrant wrote:
> ANNIE LI wrote:
>>>> I implemented balloon in windows pv driver, it works normally on
>>>> x86 and
>>>> x64 OS.
>>>> However, i hit problem to balloon down memory on x86 PAE mode VM when
>>>> it's memory
>>>> size is larger than 4G.
>>>>
>
> Which version of windows are you booting? It may not be using PAE;
> check your boot flags.
I am using Srv2008 X86. The memory size in this VM shows as 5.97GB. And
I thought PAE mode was
enabled in this OS if the memory size is larger than 4G and pae was set
1 in vm configure file. right?
Following is my Srv2008 X86 configure file:
acpi = 1
apic = 1
boot = 'c'
builder = 'hvm'
bootloader = '/usr/bin/pygrub'
device_model = '/usr/lib/xen/bin/qemu-dm'
disk = [
'file:/mnt/running_pool/win2k8/System.img,hda,w',
]
kernel = '/usr/lib/xen/boot/hvmloader'
memory = '6114'
name = 'win2k8_32'
on_crash = ''
on_reboot = ''
pae = 1
#serial = 'pty'
timer_mode = 1
usbdevice = 'tablet'
vcpus = 1
vif = [
'mac=00:16:3E:5E:DF:29, bridge=xenbr0',
]
vnc = 1
vnclisten = '0.0.0.0'
vncunused = 1
Thanks
Annie.
>
> Paul
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 9:41 ` ANNIE LI
@ 2009-09-21 9:58 ` Paul Durrant
0 siblings, 0 replies; 9+ messages in thread
From: Paul Durrant @ 2009-09-21 9:58 UTC (permalink / raw)
To: ANNIE LI; +Cc: Xen-devel, Keir Fraser
ANNIE LI wrote:
> I am using Srv2008 X86. The memory size in this VM shows as 5.97GB. And
> I thought PAE mode was
> enabled in this OS if the memory size is larger than 4G and pae was set
> 1 in vm configure file. right?
>
Yes, PAE should be on in 2k8 by default and if Windows tells you it's
got 5.97G of RAM then everything should be ok.
Paul
--
===============================
Paul Durrant, Software Engineer
Citrix Systems (R&D) Ltd.
First Floor, Building 101
Cambridge Science Park
Milton Road
Cambridge CB4 0FY
United Kingdom
TEL: x35957 (+44 1223 225957)
===============================
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 9:15 ` ANNIE LI
2009-09-21 9:25 ` Paul Durrant
@ 2009-09-21 10:05 ` Keir Fraser
2009-09-21 10:14 ` ANNIE LI
1 sibling, 1 reply; 9+ messages in thread
From: Keir Fraser @ 2009-09-21 10:05 UTC (permalink / raw)
To: ANNIE LI; +Cc: Xen-devel
On 21/09/2009 10:15, "ANNIE LI" <annie.li@oracle.com> wrote:
> My xen version is Xen3.4.0, and i use el5u2 pvhvm to have test.
> The memory size is 6114. "xm info" dose not show any change on free_memory
> after command "xm mem-set domid 4096". It seems free_memory will change after
> i set memory size less than 3083M, such as: free memory will increase 1 after
> command "xm mem-set domid 3082".
And this is the exact same behaviour you see in a PAE Linux HVM guest with
PV drivers also? It's weird, seems like maybe for some reason the balloon
driver thinks the guest has 3083M and therefore doesn't balloon down until
it sees a target lower than that, and even then only by the difference
between 3083M and the target.
I suggest you add tracing to your PV drivers and see what the balloon driver
thinks is going on. This configuration really should work, so hopefully only
something simple and stupid is going wroing.
-- Keir
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 10:05 ` Keir Fraser
@ 2009-09-21 10:14 ` ANNIE LI
2009-09-22 3:25 ` ANNIE LI
0 siblings, 1 reply; 9+ messages in thread
From: ANNIE LI @ 2009-09-21 10:14 UTC (permalink / raw)
To: Keir Fraser; +Cc: Xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 1258 bytes --]
>> My xen version is Xen3.4.0, and i use el5u2 pvhvm to have test.
>> The memory size is 6114. "xm info" dose not show any change on free_memory
>> after command "xm mem-set domid 4096". It seems free_memory will change after
>> i set memory size less than 3083M, such as: free memory will increase 1 after
>> command "xm mem-set domid 3082".
>>
>
> And this is the exact same behaviour you see in a PAE Linux HVM guest with
> PV drivers also? It's weird, seems like maybe for some reason the balloon
> driver thinks the guest has 3083M and therefore doesn't balloon down until
> it sees a target lower than that, and even then only by the difference
> between 3083M and the target.
>
> I suggest you add tracing to your PV drivers and see what the balloon driver
> thinks is going on. This configuration really should work, so hopefully only
> something simple and stupid is going wroing.
Sorry the false alarm.
The linux template el5u2 i use can not manage memory larger than 4G even
if i set the
6G memory and PAE mode in vm configure file, because CONFIG_HIGHMEM4G is
set
when compiling the OS kernel.
I did more test on el4u8 with CONFIG_HIGHMEM64G enabled, balloon works
correctly.
I will check the windows pv driver again.
Thanks
Annie.
[-- Attachment #1.2: Type: text/html, Size: 1690 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Balloon down memory failed in x86 PAE mode when memory size>4G
2009-09-21 10:14 ` ANNIE LI
@ 2009-09-22 3:25 ` ANNIE LI
0 siblings, 0 replies; 9+ messages in thread
From: ANNIE LI @ 2009-09-22 3:25 UTC (permalink / raw)
To: Keir Fraser; +Cc: Xen-devel
Yes. My winpv balloon driver works properly on x86 PAE mode when memory
size > 4G now.
Thanks
Annie.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-09-22 3:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-21 6:42 Balloon down memory failed in x86 PAE mode when memory size>4G ANNIE LI
2009-09-21 8:58 ` Keir Fraser
2009-09-21 9:15 ` ANNIE LI
2009-09-21 9:25 ` Paul Durrant
2009-09-21 9:41 ` ANNIE LI
2009-09-21 9:58 ` Paul Durrant
2009-09-21 10:05 ` Keir Fraser
2009-09-21 10:14 ` ANNIE LI
2009-09-22 3:25 ` ANNIE LI
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.