

I want to create atleast 1.5G of swap area to have a total of 2.5G Vmem. # if not, create directory since disk should be mouned Swapdir=/disk-name/path_to_swap_directory I worked around the problem by skipping steps 6. The new directory is local on / and not on the desired physical Swapdir was on a previously umounted disk, then a new directory (with a numberĪppended) gets created. That swapdir does not exist, it both mounts the disk and creates the directory. The problem with the solution as presented above by robg is that, when the rc script detects patpro finishes with: "Thanx to Sven who helped me a lot figuring out what was wrong in my previous attempts." RebootThat should do it your swap file should now be on the drive and directory you specified.Save the file and quit with CTRL-X, Y, and ENTER.So the 'mount' line must follow this framework: mount -t (disk file format) /dev/(disk-reference) /(disk-name) # if not, create directory since disk should be mountedįi BE CAREFUL: If your preferred disk is NOT hfs you MUST provide the mount command with it's correct file format ( mount -t ufs, for example).


NOTE: This hint now reflects the additional functionality submitted by John in the comments With that said, here are patpro and Sven's instructions on relocating your swap file. He pointed out some important aspects of the boot process (mount especially)." Patpro writes: "Well, I'd be glad to help you with that, but in fact, Sven had a lot to do with my success as well:)). well worth the time if you have a spare, fast hard drive in your system! Read the rest of this article to see what he had to say.
Os x vm swapfile how to#
I asked if patpro, one of the users involved, would mind writing a step-by-step instruction set on how to transfer swap. Unfortunately, there's no built-in GUI for changing a swap drive location.Ī few days ago, there was a help request on swapping on another hard drive and subsequent comments that figured out how this could be done. For best performance, the swap file would ideally be located on the fastest drive in your machine, which may or may not be the same disk as your OS.
Os x vm swapfile mac os x#
By default, Mac OS X uses a swap file (for virtual memory) which is installed on the same drive as your operating system.
