Hi,
I’ve tried latest stable kernel 3.6.3 without any luck ):
Thanks for your attention in advance.
Huaxiang
From: xen-devel-bounces@xxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxx]
On Behalf Of Fan, Huaxiang
Sent: Friday, October 19, 2012 11:40 AM
To: xen-devel@xxxxxxxxxxxxx
Cc: xen-users@xxxxxxxxxxxxx
Subject: [Xen-devel] e820_host and 3G limit
Hi,
I was told e820_host is used to solve 3G limit on domu problem when PCI passthru happens. But I failed to tackle this problem using xen 4.2 and kernel 3.4.4
Here is my environment:
Xen hypervisor and tools: 4.2
Dom0 kernel 2.6.32.57
Domu kernel 3.4.4
All above is 64bit
Here is my domu cfg:
kernel = "/root/domainWCG.kernel"
ramdisk = "/root/domainWCG.initrd.img"
e820_host=1
memory=5120
name = "wcg"
vif = [ 'ip=169.254.254.1,vifname=wcg.0' ]
disk = ['phy:/dev/lv_appliance/wcg,xvda1,w',
'phy:/dev/sdb,xvdb,w']
root = "/dev/xvda1 ro"
extra="iommu=soft printk.printk_time=1 console=hvc0"
#pci=['01:00.0','01:00.1']
vcpus=4
cpus="4,5,6,7"
Here is the output on dom0:
# xl list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1677 2 r----- 2237.9
wcg 72 4086 4 -b---- 34.9
My question#1:
Dom0 memory has been shrink from 2048 to 1677. Wcg domu only allocated with 4086 even I assigned 5120. Why?
Here is the output on wcg domu:
# cat /proc/meminfo | head -10
MemTotal: 2999156 kB
MemFree: 2919760 kB
Buffers: 4000 kB
Cached: 40656 kB
SwapCached: 0 kB
Active: 22852 kB
Inactive: 31776 kB
Active(anon): 10080 kB
Inactive(anon): 12 kB
Active(file): 12772 kB
My question#2:
Why the domu kernel only recognizes 3G memory even I actually allocate 5G to it?
Appendix
E820 memory map on wcg domu
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable)
[ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved)
[ 0.000000] Xen: 0000000000100000 - 00000000bf699000 (usable)
[ 0.000000] Xen: 00000000bf699000 - 00000000bf6af000 (reserved)
[ 0.000000] Xen: 00000000bf6af000 - 00000000bf6ce000 (ACPI data)
[ 0.000000] Xen: 00000000bf6ce000 - 00000000c0000000 (reserved)
[ 0.000000] Xen: 00000000e0000000 - 00000000f0000000 (reserved)
[ 0.000000] Xen: 00000000fe000000 - 0000000100000000 (reserved)
E820 memory map on dom0
BIOS-provided physical RAM map:
Oct 18 05:26:34 localhost kernel: BIOS-e820: 0000000000000000 - 000000000009d000 (usable)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 0000000000100000 - 00000000bf699000 (usable)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 00000000bf699000 - 00000000bf6af000 (reserved)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 00000000bf6af000 - 00000000bf6ce000 (ACPI data)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 00000000bf6ce000 - 00000000c0000000 (reserved)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 00000000fe000000 - 0000000100000000 (reserved)
Oct 18 05:26:34 localhost kernel: BIOS-e820: 0000000100000000 - 0000000240000000 (usable)
I am looking forward your reply. Thanks in advance.
HUAXIANG FAN
Software Engineer II
WEBSENSE NETWORK SECURITY TECHNOLOGY R&D (BEIJING) CO. LTD.
ph: +8610.5884.4327
fax: +8610.5884.4727
www.websense.cn
Websense TRITON™
For Essential Information Protection™
Web Security |
Data Security |
Email Security
Protected by Websense Hosted Email Security —
www.websense.com
Click
here to report this email as spam.