OSX/iOS Memory management

developer.apple.com/library/archive/documentation/Performance/Conceptual/ManagingMemory/Articles/AboutMemory.html#//apple_ref/doc/uid/20001880-BCICIHAB


I found this approach to memory management intriguing because of how much it differed from standard Linux/Windows use of swap and virtual memory
The tl;dr is this;
The advantage to this approach is obvious, superior system responsiveness at any given time while avoiding core OS out of memory conditions avoiding system instability and also improving the life of solid state storage. The disadvantage is that it doesn’t favor many background processes and puts extra burden on application developers beyond simple garbage collection.

Would you ever want to see a comparable solution on GNU/Linux for mainstream user experience focused distros?

Attached: 3C61C22B-AB5E-414D-8049-AF9965825918.gif (300x300, 2.71K)

Other urls found in this thread:

manpages.ubuntu.com/manpages/artful/man8/swapspace.8.html
multicians.org/daley-dennis.html
multicians.org/multics-vm.html
twitter.com/NSFWRedditVideo

You mean like hiding a swap inside GRUB?

How is that any different then just having a swap partition? OSX doesn't have swap or a swap partition. Virtual memory is automatically granted to applications by the OS and applications basically have to manage their own "swap" memory

I'm pretty sure you can use a swap file fine without needing a dedicated partition.
Hell, i'm doing this right now on my laptop.

It does sound interesting, I must have been confused I guess.

You don't seem to understand. OSX has no swap file nor does it have a swap partition. It just has the entire disk

It would be even nicer if the "backing store" was strictly a temp format instead of written to disk, like an autoremove temp file. Not sure if I'm truly understanding the full depth of it's inner workings though.

That sounds disgusting.

The backing store is temportary. The biggest difference here is that while swap files have a fixed size and location on the disc the backing store doesn't. OSX can get away with this because of how memory management works, the backing store will never be used for active data or dynamic application assets, its purely cache so we don't have to worry about swap slowing down the system

does it? Or does it only sound disgusting through the scope of someone used to having to manage swap space because the OS was too dumb to prevent page thrashing?

Attached: 1316824354488.jpg (383x362, 89.55K)