Question

I am running Mac OS Catalina 10.15.6 with APFS formatted disk on an unsupported MAC using dosdude1 guide. My experience from windows is I had to make careful calculations on pagefile.sys and run into limits on swap and memory. Since I’m new to Mac, I wish to avoid any mistakes and learn how to manage things properly.

This is the view of my disk

Disk View

I have 4 Gigs of RAM on my system.

I want to increase the sizeof the Virtual Memory VM (which is 3.22 GB currently).

I have searched the internet in vain. Even a question in Ask Different has not been answered. My terms to solve this on windows aren’t helping me on Mac.

How do I achieve my goals and choose which size I should allocate?

Was it helpful?

Solution

The short answer, is you do nothing. The system decides what memory gets swapped to disk and allocates space as needed. The system allocates virtual memory addresses up to ~18 exabytes so that it can then swap as needed.

Note: Unlike most UNIX-based operating systems, OS X does not use a preallocated disk partition for the backing store. Instead, it uses all of the available space on the machine’s boot partition.

You may just have to choose programs that use macOS better if your system is in memory pressure and you can’t wait for things to work. Virtual memory and swap guarantee that programs eventually run when you over load the actual resources available. There is no need to change any tuning or limits on iOS or macOS.

Even better, containers let you share space and not get jammed with pagefile.sys blocking space. I recommend exactly what you propose, APFS containers to share all possible space. Add an inexpensive external drive and let time machine back everything up so you are free to experiment without losing any games or data.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top