nomadtronic.blogg.se

Os x vm swapfile
Os x vm swapfile






os x vm swapfile
  1. Os x vm swapfile how to#
  2. Os x vm swapfile mac os x#

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).

os x vm swapfile

  • In the rc file, replace this swapdir=/private/var/vmĬonsoleMessage "Creating default swap directory"įiwith this swapdir=/disk-name/path_to_swap_directory.
  • To do this, we need to become root, transfer to the directory, and edit the file: su root So now we're going to edit /ect/rc so that our preferred swap disk is mounted before swap initializes.
  • During the boot process, mounting a disk other than local file system (MacOS X system drive) appears to occur after swap initialization.
  • Each row will look something like this: /dev/disk0s9 3134688 1970568 1164120 62% /appsThere will be one line for each volume in your system.
  • In the df output, choose your favorite disk/partition and remember its reference.
  • Print a partition map, which shows every device mounted on your system, by using df: df.
  • Backup the rc file into the current directory, which should be ~/ for the current user: cp /etc/rc.
  • os x vm swapfile

    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.








    Os x vm swapfile