ballon driver interaction with native page allocator.
hi all
if Balloon driver is not present in the guest OS then how xen control the memory of the that Guest OS
or there is some other mechanism also with which the guest OS page allocator can inftate or deflate the balloon.
thanks
TEJ
Quoted 2 lines
if Balloon driver is not present in the guest OS then how xen control the memory of the that Guest OS
It can't; Xen depends on guest OS co-operation in order to resize the guest's physical memory footprint.
Quoted 2 lines
or there is some other mechanism also with which the guest OS page allocator can inftate or deflate the balloon.
The balloon can be controlled from outside Xen using xm mem-set. It can also be controlled within the guest by echoing something into a special file. If there's no balloon driver, there's no way to change the memory footprint (as of 3.1 the balloon driver can work in HVM, though).
Other hypervisors / virtual machine software is able to page guest memory out to disk in order to vary the machine RAM allocation used by each guest; Xen doesn't do this.
Cheers,
Mark
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!
Quoted 6 lines · Mark Williamson
Quoted 2 lines
if Balloon driver is not present in the guest OS then how xen control the memory of the that Guest OS
It can't; Xen depends on guest OS co-operation in order to resize the guest's physical memory footprint.
ok it means if during domU creation if config file says memory is 64MB then it can't be resize.
Quoted 4 lines
Quoted 2 lines
or there is some other mechanism also with which the guest OS page allocator can inftate or deflate the balloon.
The balloon can be controlled from outside Xen using xm mem-set. It can also
outside xen means guest OS can use xm-mem set tool to inflate and deflate the ballon.
Quoted 4 lines
be controlled within the guest by echoing something into a special file. If there's no balloon driver, there's no way to change the memory footprint (as of 3.1 the balloon driver can work in HVM, though).
Quoted 8 lines
Other hypervisors / virtual machine software is able to page guest memory out to disk in order to vary the machine RAM allocation used by each guest; Xen doesn't do this.
Cheers,
Mark
I think so many control for the ballon driver may cause the conflit if xen and guest OS is simultaneously trying to resize the ballon.
Quoted 6 lines
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
Quoted 5 lines
Quoted 2 lines
It can't; Xen depends on guest OS co-operation in order to resize the guest's physical memory footprint.
ok it means if during domU creation if config file says memory is 64MB then it can't be resize.
As long as the guest has the balloon driver, then you can change the memory allocation using the command line tools in dom0 (or the domain can voluntarily change its allocation).
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
or there is some other mechanism also with which the guest OS page allocator can inftate or deflate the balloon.
The balloon can be controlled from outside Xen using xm mem-set. It can also
outside xen means guest OS can use xm-mem set tool to inflate and deflate the ballon.
xm mem-set is run in dom0 and sends messages to the guest, telling it to change its memory footprint (and by how much).
Quoted 2 lines
I think so many control for the ballon driver may cause the conflit if xen and guest OS is simultaneously trying to resize the ballon.
Correct - it does cause problems. It won't crash, or anything nasty like that. But if the guest does a voluntary resize on its balloon then the dom0 tools won't know about it, and may get confused about the current memory size of the domain.
Cheers,
Mark
Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!