Language and Page Formatting Options
23.8. Memory Allocation
In cases where the guest virtual machine crashes, the optional attribute
dumpCorecan be used to control whether the guest virtual machine's memory should be included in the generated core dump(
dumpCore='on') or not included (
dumpCore='off'). Note that the default setting is
on, so unless the parameter is set to
off, the guest virtual machine memory will be included in the core dumpfile.
<maxMemory>element determines maximum run-time memory allocation of the guest. The
slotsattribute specifies the number of slots available for adding memory to the guest.
<memory>element specifies the maximum allocation of memory for the guest at boot time. This can also be set using the NUMA cell size configuration, and can be increased by hot-plugging of memory to the limit specified by
<currentMemory>element determines the actual memory allocation for a guest virtual machine. This value can be less than the maximum allocation (set by
<memory>) to allow for the guest virtual machine memory to balloon as needed. If omitted, this defaults to the same value as the
<memory>element. The unit attribute behaves the same as for memory.
<domain> <maxMemory slots='16' unit='KiB'>1524288</maxMemory> <memory unit='KiB' dumpCore='off'>524288</memory> <!-- changes the memory unit to KiB and does not allow the guest virtual machine's memory to be included in the generated core dumpfile --> <currentMemory unit='KiB'>524288</currentMemory> <!-- makes the current memory unit 524288 KiB --> ... </domain>
Figure 23.10. Memory unit