2 ms·
No idea about Java, but any C program will request memory using mmap, and may give it back using munmap. This doesn't work when the program is running inside a
by rwmj 3y ago
No idea about Java, but any C program will request memory using mmap, and may give it back using munmap. This doesn't work when the program is running inside a VM, but does work for containers (which are basically just regular processes).
- fragmede 3y agoWith VM balloning, VMs are also able to claim and release memory to the hypervisor/host OS.
- rwmj 3y agoNot driven by the guest application they don't. It's frustrating that I actually work in this area and know what I'm talking about. I worked on Katacontainers back when it was Intel's Clear Containers in the late 2010s. So many people in this thread do not have a clue.
- spockz 3y agoHow does this work in practice? If the application didn’t need this memory anymore because it is done with the work/data, shouldn’t it already have freed or munmapped it? Is there a signal that can be send to a process to free up and return memory?