Re:Podman vs. Docker: Comparing the two containerization tools
by maxmouchet on Thursday February 09, 2023 @12:25AM
(#34720101)
That's interesting! Would it work to have a process on macOS/Windows monitoring memory usage and communicating with another process inside the VM to drop the page cache when free host memory is low?
Re:Podman vs. Docker: Comparing the two containerization tools
by 3np on Thursday February 09, 2023 @12:18AM
(#34720065)
One coukd also put their VM root filesystem in ZFS, switching the Linux page cache for more tunable ARC.
Re:Podman vs. Docker: Comparing the two containerization tools
by MuffinFlavored on Thursday February 09, 2023 @12:54AM
(#34720246)
When you're right, you're right.
https://github.com/lima-vm/lima/blob/master/examples/default... 4gig default
~$ free -m total used free shared buff/cache available Mem: 3907 304 1446 1 2156 3431 Swap: 0
Thank you.
Re:Podman vs. Docker: Comparing the two containerization tools
by ecnahc515 on Thursday February 09, 2023 @08:44PM
(#34734555)
To add to this, the hypervisor can do more to integrate with the guest so that this issue is mitigated somewhat. For example, with KVM and a Linux guest there's a lot of optimizations to share memory pages between the two.
For reference: https://access.redhat.com/documentation/en-us/red_hat_enterp....
Re:Podman vs. Docker: Comparing the two containerization tools
by FooBarWidget on Thursday February 09, 2023 @01:19AM
(#34720366)
Does HyperV have a solution where the hypervisor integrates with the guest kernel, telling it to evict page caches when the host needs more memory?
Re:Podman vs. Docker: Comparing the two containerization tools
by pzmarzly on Thursday February 09, 2023 @08:12AM
(#34723416)
The mechanism is called balooning and technically doesn't need cooperation on guest kernel side (but it makes everything much smoother). Not idea about HyperV, but it is implemented e.g. in virtio https://pmhahn.github.io/virtio-balloon/ . You can google some failed experiments to add it to qemu
Re:Podman vs. Docker: Comparing the two containerization tools
by bloopernova on Thursday February 09, 2023 @07:21AM
(#34722890)
Interesting!
It looks like Fedora CoreOS inside podman maybe doesn't do this?
[root@localhost ~]# free -h
total used free shared buff/cache available
Mem: 7.8Gi 212Mi 7.2Gi 8.0Mi 333Mi 7.3Gi
Swap: 0B 0B 0B
And Activity Monitor says that qemu-system-x86_64 is using 1.27GB of real memory.
Re:Podman vs. Docker: Comparing the two containerization tools
by saynay on Thursday February 09, 2023 @07:52AM
(#34723202)
I remember VMWare solved this with a balloon driver, that basically asks the guest for a lot of memory at a very low priority, so it has precedence over the page cache, but under any program that actually needs it.
[0] https://www.linuxatemyram.com/
[1] https://news.ycombinator.com/item?id=26897095
[2] https://github.com/Feh/nocache