zlacker

[return to "We replaced Firecracker with QEMU"]
1. london+f4[view] [source] 2023-07-10 14:33:11
>>hugodu+(OP)
I really want VM's to integrate 'smarter' with the host.

For example, if I'm running 5 VM's, there is a good chance that many of the pages are identical. Not only do I want those pages to be deduplicated, but I want them to be zero-copy (ie. not deduplicated after-the-fact by some daemon).

To do that, the guest block cache needs to be integrated with the host block-cache, so that whenever some guest application tries to map data from disk, the host notices that another virtual machine has already caused this data to be loaded, so we can just map the same page of already loaded data into the VM that is asking.

◧◩
2. jarym+Q5[view] [source] 2023-07-10 14:40:05
>>london+f4
Well that's all nice, but that would also need to be compute-efficient for it to be worthwhile and near-real-time dedupe of memory pages would be a REALLY tough challenge.
◧◩◪
3. london+uh[view] [source] 2023-07-10 15:30:08
>>jarym+Q5
Pretty straightforward for disk blocks. Many VM disks are already de-duped, either through snapshopping or through copy on write host filesystems.

The host block cache will end up deduplicating it automatically because all the 'copies' lead back to the same block on disk.

[go to top]