All of lore.kernel.org
 help / color / mirror / Atom feed
* Whats effect of EXTRA_MEM_RATIO
@ 2013-06-01 21:27 Rushikesh Jadhav
  2013-06-03 12:10 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 10+ messages in thread
From: Rushikesh Jadhav @ 2013-06-01 21:27 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 2342 bytes --]

Hi guys,

Im fairly new to the Xen Development & trying to understand ballooning.

While compiling a DomU kernel I'm trying to understand the e820 memory map
w.r.t Xen,

I have modified arch/x86/xen/setup.c  EXTRA_MEM_RATIO  to 1 and can see
that the guest can not balloon up more than 2GB. Below is the memory map of
DomU with max mem as 16GB.

for EXTRA_MEM_RATIO  = 1

BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 00000000000a0000 (usable)
 Xen: 00000000000a0000 - 0000000000100000 (reserved)
 Xen: 0000000000100000 - 0000000080000000 (usable)
 Xen: 0000000080000000 - 0000000400000000 (unusable)
NX (Execute Disable) protection: active
DMI not present or invalid.
e820 update range: 0000000000000000 - 0000000000010000 (usable) ==>
(reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
No AGP bridge found
last_pfn = 0x80000 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 0436c000
Base memory trampoline at [ffff88000009b000] 9b000 size 20480
init_memory_mapping: 0000000000000000-0000000080000000
 0000000000 - 0080000000 page 4k
kernel direct mapping tables up to 80000000 @ bfd000-1000000
xen: setting RW the range fd6000 - 1000000


for EXTRA_MEM_RATIO  = 10 the map is like below and can balloon up to 16GB.

BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 00000000000a0000 (usable)
 Xen: 00000000000a0000 - 0000000000100000 (reserved)
 Xen: 0000000000100000 - 0000000400000000 (usable)
NX (Execute Disable) protection: active
DMI not present or invalid.
e820 update range: 0000000000000000 - 0000000000010000 (usable) ==>
(reserved)
e820 remove range: 00000000000a0000 - 0000000000100000 (usable)
No AGP bridge found
last_pfn = 0x400000 max_arch_pfn = 0x400000000
last_pfn = 0x100000 max_arch_pfn = 0x400000000
initial memory mapped : 0 - 0436c000
Base memory trampoline at [ffff88000009b000] 9b000 size 20480
init_memory_mapping: 0000000000000000-0000000100000000
 0000000000 - 0100000000 page 4k
kernel direct mapping tables up to 100000000 @ 7fb000-1000000
xen: setting RW the range fd6000 - 1000000
init_memory_mapping: 0000000100000000-0000000400000000
 0100000000 - 0400000000 page 4k
kernel direct mapping tables up to 400000000 @ 601ef000-62200000
xen: setting RW the range 619fb000 - 62200000



Can someone please help me understand its behavior and importance ?

Thanks.

[-- Attachment #1.2: Type: text/html, Size: 3151 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-16 19:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-01 21:27 Whats effect of EXTRA_MEM_RATIO Rushikesh Jadhav
2013-06-03 12:10 ` Konrad Rzeszutek Wilk
2013-06-03 16:28   ` Rushikesh Jadhav
2013-06-03 17:50     ` Konrad Rzeszutek Wilk
2013-07-09 20:06       ` Rushikesh Jadhav
2013-07-16 15:42         ` Konrad Rzeszutek Wilk
2013-07-16 16:17           ` Rushikesh Jadhav
2013-07-16 16:28             ` Konrad Rzeszutek Wilk
2013-07-16 17:26               ` Rushikesh Jadhav
2013-07-16 19:49                 ` Rushikesh Jadhav

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.