How fast is a macOS VM, and how small could it be?
51–60 of 111 posts
Re: How fast is a macOS VM, and how small could it be?
#52Re: How fast is a macOS VM, and how small could it be?
#53My only experience with VMs on macOS is colima+docker, and it's relatively painful and inefficient (but usable).
Try Apple's container CLI. I moved a project of mine from colima+docker to it relatively easily, a couple of weekends ago. https://github.com/apple/container
Re: How fast is a macOS VM, and how small could it be?
#54Honestly macOS probably can go much lower than that if you turn off some stuff that's not strictly necessary for a VM. The first iPhones only had 128 MiB of RAM and they ran a trimmed down version of macOS Tiger I believe. It's just that RAM has been quite abundant so far, so there was no real reason to try to trim it down, but it's definitely possible, and probably not that hard either, we just need to start trying…
Re: How fast is a macOS VM, and how small could it be?
#55Earlier quoted context omitted.
Even NT4 handles memory pressure than modern day Linux. It's just not a fair comparison; Linux has never dealt with userspace OOM well. As for macOS... https://old.reddit.com/r/MacOS/comments/1njf1aj/bravo_apple_... https://old.reddit.com/r/MacOS/comments/1nxh08n/impressive_m... https://old.reddit.com/r/MacOS/comments/1jo5pnq/passwords_ap... https://old.reddit.com/r/MacOS/comments/1gkwxe4/how_is_memor... https://old.…
Seeing there are thousands running those apps (incl. Freeform) without memory leaks, it could be something else at play here.
Or Apple doesn't really care, though I doubt that's the case.
Re: How fast is a macOS VM, and how small could it be?
#56>Starting with 4 virtual cores and 8 GB vRAM, where the VM ran perfectly briskly with around 5 GB of memory used, I stepped down to 3 cores and 6 GB, to discover that memory usage fell to 3.9 GB and everything worked well. With just 2 cores and 4 GB of memory only 3.1 GB of that was used, and the VM continued to handle those lightweight tasks normally. Good reminder that there's a certain amount of memory tied up wit…
I'd bet for the null hypothesis: the memory behaviour changes would hold if the core count was kept constant and only the VM's memory size was adjusted.
Re: How fast is a macOS VM, and how small could it be?
#57>Starting with 4 virtual cores and 8 GB vRAM, where the VM ran perfectly briskly with around 5 GB of memory used, I stepped down to 3 cores and 6 GB, to discover that memory usage fell to 3.9 GB and everything worked well. With just 2 cores and 4 GB of memory only 3.1 GB of that was used, and the VM continued to handle those lightweight tasks normally. Good reminder that there's a certain amount of memory tied up wit…
As a general rule, also the amount of physical memory installed in a computer should be proportional with the number of hardware threads provided by its CPU. Besides the fact that the operating system may allocate some memory for each thread, when you launch a multi-threaded application that is able to use all available threads, for instance the compilation of a big software project, it frequently will allocate some…
Re: How fast is a macOS VM, and how small could it be?
#58Re: How fast is a macOS VM, and how small could it be?
#59Earlier quoted context omitted.
What will that help with if the host and guest combined need > physical ram?
If guest memory can be reclaimed, it doesn't need to be paged to disk once you hit RAM contention. It's mostly saving accounting overhead, but it'll have some effect on latency, which you're more likely to perceive under contention.
Re: How fast is a macOS VM, and how small could it be?
#60Earlier quoted context omitted.
Not really. Larger page sizes mean more potential for wasted memory and it has had a long standing memory leak in some core component to where even Calculator can cause an OOM event.
I mean if there are faulty apps, but where do you get this idea from? The amount of IDE's, docker containers, all kinds of stuff you can run on macOS in just 16GB is astounding. And I've used this OS on the desktop for 23 years.
See my other post for just a tiny amount of references to OOTB faulty apps.