Increase OS X Performance: Swap Partition - MacRumors
Skip to Content

Increase OS X Performance: Swap Partition

As most OS X users are probably aware "virtual memory" (or paging, in OS X's case) is always "on," as is the case with any modern operating system. It is an integral part of the kernel's functionality. As a result, every time OS X is booted, a swapfile is written to the partition where OS X resides. When many apps are open and free physical RAM becomes scarce, more swapfiles (80MB each) are written to the disk at need. As far as OS's go, OS X has a particularly robust paging system--but it does suffer a speed hit due to OS X's default configuration of writing the swapfiles amidst the files on OS X's own partition. Inevitable file fragmentation forces the swapfile to be written to and read from all over the disk, imposing the seek-time limitations of the disk on OS X's attempt to swiftly page data.


The solution: create a dedicated swap partition (which is the method Linux uses by default) for OS X to page to. In searching the web to find out how to make this alteration, I found a number of sites with prodcedures to follow. The one I felt most comfortable using as a guide was setup by Andy Moraitis. In looking at his procedure and through back-and-forth e-mail with Andy, it's clear that he has a deep understanding of the mechanisms of OS X and its paging system (and that of its predecessor, NEXTSTEP). And lucky for those with a mind to increase OS X's performance, Andy has recently put out an even more detailed version of his procedure, which you can get from his iDisk. (Note this guide is in Tex-Edit Plus format--download this editor from VersionTracker.)


Truly, if you're even remotely comfortable with using the the OS X Terminal shell, this modification is time well spent.

Popular Stories

MacBook Pro Low Angle Wide Lens

Apple to Launch 'MacBook Ultra' With These Six New Features

Friday April 24, 2026 10:32 am PDT by
While the 14-inch and 16-inch MacBook Pro were just updated with M5 Pro and M5 Max chips last month, bigger changes are reportedly around the corner. According to Bloomberg's Mark Gurman, the higher-end MacBook Pro models will be receiving a major redesign by early 2027, and he said that Apple might use "MacBook Ultra" branding for them. If so, the MacBook Ultra would likely be a...
Apple TV Thumb 3

Here's What's Coming in the 2026 Apple TV

Thursday April 23, 2026 12:08 pm PDT by
There are a lot of folks waiting for a new version of the Apple TV because the set-top box hasn't been updated since 2022. There is an update coming this year, but people will need to wait a bit longer because Apple is holding the next Apple TV until the new version of Siri comes out this fall. Design Apple TV design updates don't happen often, and that's not changing in 2026. The next...
Apple Maps General

Tim Cook Calls Apple Maps Launch His 'First Really Big Mistake' as CEO

Thursday April 23, 2026 5:29 am PDT by
Outgoing Apple CEO Tim Cook has named the botched 2012 launch of Apple Maps as his "first really big mistake" in the role, according to a Bloomberg report covering the town hall meeting that was held Tuesday with his recently announced successor, John Ternus. The Maps app launched with mislabeled landmarks, faulty directions, and a user experience that fell well short of Google Maps at the...