↝ OWC / MacSales.com... ↜
↝ diglloyd Deal Finder... ↜
Buy other stuff at Amazon.com...
OS X Mavericks: Compressed Virtual Memory (Big Win)
OS X Mavericks virtual memory compression is a big win for anyone on the margins of not quite enough memory.
Virtual memory compression is particularly valuable for users running systems with 4GB to 12GB of memory (systems likely to be suffering from virtual memory paging).
For example, even if only ~30% average compression savings are achieved, that means a 16GB memory system approaches 20+GB in usable “feel”.
Since many programs might allocate memory and store highly compressible data within that memory (text, white areas of an image, computer code instructions, repetetive data structures, zeroed memory blocks, etc), many things in memory can be compressed down to a fraction of their original size.
Further, the more memory the system has, the greater the chance that large chunks of it are compressible by 50% or even 90%. Thus, upgrading memory is still a big win, but doubly so; it’s almost like getting more than you pay for!
$1649 SAVE $150 = 8.0% Apple 13.3" MacBook Pro with Touch Bar (Late 2016, Space Gray) in All Other Categories
$1099 SAVE $300 = 21.0% Lenovo 14" ThinkPad X1 Yoga Multi-Touch 2-in-1 Notebook in Computers: PC Laptops
$1400 SAVE $149 = 9.0% NEC PA272W-BK-SV 27" 16:9 IPS Monitor with SpectraViewII in Computers: Displays
$899 SAVE $200 = 18.0% Olympus OM-D E-M5 Mark II Mirrorless (Body, Silver) in Cameras: Mirrorless
CPU utilization is a net gain, not a loss
Virtual memory compression takes CPU cycles, but on Macs with four fast CPU cores or more, the CPU cores are often idle.
But the situation is more complex: the apparent “overhead” of using CPU cycles to compress memory is in fact a huge win. In fact, this approach is not only not a loss of performance, but a massive gain.
With virtual memory paging to disk, the CPUs are forcibly idled until the virtual memory contents can be read or written to disk, a process which can be glacially slow compared to avoiding disk access (e.g. a factor of 10 or so
With virtual memory compression, there is no disk activity and the memory compression itself is extremely fast. Hence compressed virtual memory is a massive net win: while there is some CPU utilization for the compression but real work on all CPU cores gets back “on task” in far less time, rather than idling the CPU cores waiting for disk I/O to complete.
Furthemore, the very need for more memory often forcible idles CPU cores, so in a sense virtual memory compression is free, or
I ran the MemoryTester 'stress' command on my MacBook Pro to see how OS X would fare when all the memory is being actively used, and then launched several browsers, Photoshop and a few other things to “pile on”. I am impressed—the new VM system is clearly very robust in using memory. This feature alone makes Mavericks worthwhile for anyone on the edges of almost enough or not quite enough memory.
Shown below, this is a far more demanding scenario than 99.99% of uses cases most users might experience, but OS X 10.9 handles it quite well. There are delays in response, but the system is usable.