Re:Apple Announces Foundation Models and Containerization fr...
by SkiFire13 on Tuesday June 10, 2025 @08:08AM
(#44235787)
> or just what the guest OS is actually using should depend on the hypervisor itself.
How can the hypervisor know which memory the guest OS is actually using? It might have used some memory in the past and now no longer needs it, but from the POV of the hypervisor it might as well be used.
This is a communication problem between hypervisor and guest OS, because the hypervisor manages the physical memory but only the guest OS known how much memory should actually be used.
Re:Apple Announces Foundation Models and Containerization fr...
by masklinn on Tuesday June 10, 2025 @08:28AM
(#44236003)
A generic vmm can not, but these are specific vmms so they can likely load dedicated kernel mode drivers into the well known guest to get the information back out.
Re:Apple Announces Foundation Models and Containerization fr...
by SkiFire13 on Tuesday June 10, 2025 @01:24PM
(#44239207)
The driver would still be part of the guest.
Re:Apple Announces Foundation Models and Containerization fr...
by masklinn on Tuesday June 10, 2025 @02:25PM
(#44239764)
If you control both the VMM and the guest through a driver you have an essentially infinite latitude to set up communications between the two: virtual devices, iommu, interrupts, ...
Re:Apple Announces Foundation Models and Containerization fr...
by torginus on Tuesday June 10, 2025 @05:59AM
(#44234776)
Just looked it up - and the answer is 'baloon drivers', which are special drivers loaded by the guest OS, which can request and return unused pages to the host hypervisor.
Apparently docker for Mac and Windows uses these, but in practice, docker containers tend to grow quite large in terms of memory, so not quite sure how well it works in practice, its certainly overallocates compared to running docker natively on a Linux host.
Isn't this an issue of the hypervisor? The guest OS is just told it has X amount of memory available, whether this memory exists or not (hence why you can overallocate memory for VMs), whether the hypervisor will allocate the entire amount or just what the guest OS is actually using should depend on the hypervisor itself.