cloud-hypervisor/vmm
Sean Banko 7633d47293 vmm: prefault memory in parallel to optimize boot time
On guests with large amounts of memory, using the `prefault` option can
lead to a very long boot time. This commit implements the strategy
taken by QEMU to prefault memory in parallel using multiple threads,
decreasing the time to allocate memory for large guests by
an order of magnitude or more.

For example, this commit reduces the time to allocate memory for a
guest configured with 704 GiB of memory on 1 NUMA node using 1 GiB
hugepages from 81.44134669s to just 6.865287881s.

Signed-off-by: Sean Banko <sbanko@crusoeenergy.com>
2024-02-07 08:59:03 -08:00
..
src vmm: prefault memory in parallel to optimize boot time 2024-02-07 08:59:03 -08:00
Cargo.toml build: Bump futures from 0.3.28 to 0.3.30 2024-02-07 10:10:40 +00:00