mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
docs: Add more information of hugepages.
Add missing option of hugepage_size in argument of memory, and add some details about lacking huge pages. Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
This commit is contained in:
parent
f063346de3
commit
9106afae38
@ -24,7 +24,7 @@ struct MemoryConfig {
|
||||
```
|
||||
|
||||
```
|
||||
--memory <memory> Memory parameters "size=<guest_memory_size>,mergeable=on|off,shared=on|off,hugepages=on|off,hotplug_method=acpi|virtio-mem,hotplug_size=<hotpluggable_memory_size>,hotplugged_size=<hotplugged_memory_size>"
|
||||
--memory <memory> Memory parameters "size=<guest_memory_size>,mergeable=on|off,shared=on|off,hugepages=on|off,hugepage_size=<hugepage_size>,hotplug_method=acpi|virtio-mem,hotplug_size=<hotpluggable_memory_size>,hotplugged_size=<hotplugged_memory_size>"
|
||||
```
|
||||
|
||||
### `size`
|
||||
@ -87,7 +87,9 @@ the guest will allocate hugepages as well. Another interesting use case is VFIO
|
||||
as it speeds up the VM's boot time since the amount of IOMMU mappings are
|
||||
reduced.
|
||||
|
||||
The user is responsible for ensuring there are sufficient huge pages of the specified size for the VMM to use. Failure to do so may result in strange VMM behaviour.
|
||||
The user is responsible for ensuring there are sufficient huge pages of the specified size for the VMM to use.
|
||||
Failure to do so may result in strange VMM behaviour, e.g. error with `ReadKernelImage` is common.
|
||||
If there is a strange error with `hugepages` enabled, just disable it or check whether there are enough huge pages.
|
||||
|
||||
By default this option is turned off.
|
||||
|
||||
@ -469,4 +471,4 @@ _Example_
|
||||
Cloud Hypervisor supports only one PCI bus, which is why it has been tied to
|
||||
the NUMA node 0 by default. It is the user responsibility to organize the NUMA
|
||||
nodes correctly so that vCPUs and guest RAM which should be located on the same
|
||||
NUMA node as the PCI bus end up on the NUMA node 0.
|
||||
NUMA node as the PCI bus end up on the NUMA node 0.
|
||||
|
Loading…
x
Reference in New Issue
Block a user