Re:Lightweight Alpine VMs on macOS
by sqlcommando on Sunday November 27, 2022 @11:51PM
(#33769936)
I dunno about the m1 aspect of this but postgres and redis for typical dev work shouldn't require more than a gigabyte or two of RAM when running together. 32-64GB is more like heavy traffic enterprise DB territory...
guess the parent is annoyed at spending 2-3GiB of ram on the VM itself.
even if the containers themselves only use 128MiB total: the VM will cordon off everything it's told to; which most people are unlikely to change until there's an issue, and is configurable down to 1GiB as a minimum.
FWIW Docker Desktop on my machine (M2 Macbook Air; 24GiB Ram) defaulted to using 8GiB of RAM.
They're also trivial to install without virtualization. Postgres has been one of the first things I install on a new laptop for over a decade now.
Re:Lightweight Alpine VMs on macOS
by happymellon on Monday November 28, 2022 @06:03AM
(#33772126)
Also, stop using a Mac if they aren't suitable for your usecase. There are just so many layers of emulation for this, it's an absolute waste of resources.
This is the right answer.
Scratching my head as to why devs are buying up these new macs knowing up front that they will not work well for the job they were bought for.
Why not make it easier for yourself and have your dev machine match up with prod?
Also, are you using AMD or ARM images for those?