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

Four iPhone 18 Pro Colors Mock Feature

iPhone 18 Pro: Pre-Orders and Release Date

Thursday August 20, 2026 8:00 am PDT by
Apple has yet to reveal when the iPhone 18 Pro and iPhone Ultra will be announced and released, but the dates usually follow a familiar pattern. As usual, the iPhone event is expected to take place in the first half of September. Labor Day falls on September 7 this year. The last time the holiday was on that day was in 2020, but the iPhone event that year was delayed until October due to...
Foldable iPhone 2023 Feature 1

Gurman: iPhone Ultra Wows Early Testers, Except for Its Camera

Sunday August 23, 2026 11:19 am PDT by
Apple's upcoming foldable iPhone Ultra is winning over the few people who have had hands-on time with the device, though the camera setup may leave some users wanting, according to Bloomberg's Mark Gurman. Writing in his latest Power On newsletter, Gurman says people who have used the device – which is reportedly referred to internally as the iPhone Ultra – like how it fits in your...
macOS 27 next to MacBook Pro Running macOS 27

macOS Golden Gate Marks the End of an Era

Thursday August 20, 2026 2:19 pm PDT by
macOS 27 Golden Gate is not compatible with any Macs with Intel processors, marking the end of an era. The update, which is currently in beta ahead of a release later this year, is limited to Apple silicon Macs with an M1 chip or newer. Last year, Apple said that macOS 26 Tahoe would be the final macOS release compatible with Intel-based Macs, so this was an expected development. Intel...