Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 10
  1. #1
    ilo
    ilo is offline Registered User
    Join Date
    Sep 2001
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Changing swapfile location to separate disk in 10.1

    Well you all probably know the trick of changing the swapfile location in 10.0.x in order to squeeze a bit more speed out... I've tried the same trick, and it seems it doesn't work in 10.1. Has anyone pulled this off yet?

  2. #2
    swizcore's Avatar
    swizcore is offline Help Guide Coordinator
    Join Date
    Sep 2001
    Location
    Michigan USA
    Posts
    336
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Changing swapfile location to separate disk in 10.1

    Originally posted by ilo
    Well you all probably know the trick of changing the swapfile location in 10.0.x in order to squeeze a bit more speed out... I've tried the same trick, and it seems it doesn't work in 10.1. Has anyone pulled this off yet?
    Well I tried it also with 10.1 and saw no improvement but figured it was because I had 1.5g of ram. Did a little searching around and discovered an overview on the process at www.resexcellence.com which states that the swapfile operation is likely to not work with 10.1 due to its optimization of code and such.
    http://www.swizcore.com - My communication design effort(...constantly in progress)
    http://callingallheroes.com
    Great Lakes Sincerity

    Dual 1 ghz Quicksilver : 17" Apple LCD : 100% Jaguar
    Sony DCR-TRV830 DV Cam

  3. #3
    efoivx's Avatar
    efoivx is offline Registered User
    Join Date
    Aug 2001
    Location
    NYC
    Posts
    145
    Thanks
    0
    Thanked 0 Times in 0 Posts

    swap

    moving the swap in any case has little to do with speed you'll notice unless you have less than 128 meg of ram. the swap is paged memory that steps in when real ram is not avaiable... it's much more optimized than classic VM but similar. You WILL notice it if you run ALOT of apps at once like me
    my system load at almost all times

    Audion 2
    Internet Explorer
    Entourage
    Fire
    Notebook (notepad)
    ASM
    Photoshop
    Fireworks
    Dreamweaver
    Transmit
    Terminal
    Netscape
    Addressbook

    I do also have 640 megs of ram so it rarely touches the swap but when it does having my swap on a seperate CLEAN drive keep the spinning beachball from poping up... if my swap was on the same drive it would be up more often... so while you don't see it in "speed" you will gain performance by not having to wait for the beachball of death all the time.

    cheers

    ps moving the swap on OS X 10.1 absolutly still works

    simple steps

    partition your drive
    one of partitions call swap it should be no larger than 500 meg no smaller than 100 meg
    create any other partitions you like

    open terminal
    type df -k
    you will see some text look for one that end with the name swap
    /dev/disk0s9 1038096 86448 951648 8% /Volumes/swap

    you are interested in the first part /dev/disk0s9 copy it yours will be different so dont copy mine from here.

    in the terminal type
    sudo pico -w /etc/fstab (hit enter)
    type
    /dev/disk0s9 /Volumes/swap/ hfs rw 1 2
    hit control x then hit the letter y for yes and then enter to save the file
    now type
    sudo pico -w /etc/rc
    be careful don't mess anything up in here
    hit control w then type swap and hit enter
    you will be placed at aline of text that looks like this
    swapdir=/private/var/vm
    comment this line out by adding a # in front of it
    it will look like this
    #swapdir=/private/var/vm
    move to the line below it and type
    swapdir=/Volumes/swap/vm
    place a carrage return after this line
    hit control x then hit y then hit enter
    resart
    you should now see a vm folder in the swap drive if not something went wrong

    I'm not responable if you blow up you mac... you should become familiar with unix just a wee bit before doing system level mods it's better if you understand why you are doing it and what it will do and how it affects you. before you do things like this. a good unix admin will always have a back up plan you always know where to go next to quickly fix something you try.

    cheers

  4. #4
    legacyb4 is offline Registered User
    Join Date
    Sep 2001
    Location
    Tokyo, Japan
    Posts
    245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can anyone who is versed in Unix explain the difference between the tweak mentioned above and the one here?

    Alternate Swap File Relocation Technique

    The latter doesn't seem to involved modification of the fstab file; is there a 'correct' or 'safer' configuration?

    Cheers.
    Macbook (Black) C2D/120GB/2GB | G5/1.6 250GBx2/1.25GB
    Free Mobile Phone Ringtone, Application, & Screensaver Uploader

  5. #5
    Solaris's Avatar
    Solaris is offline Official something...
    Join Date
    Mar 2001
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The link you provided runs the manual mount command from the /etc/rc file.

    It is a function of unix to mount file systems from the fstab. I'd use the method described by efoivx in this thread. It shows a better understanding of the unix subsystem.
    Soon to be...
    Dual 2 GHz PowerMac G5
    512 MB RAM
    2 x 250 GB
    ATI Radeon 9800
    23" Cinema Display
    My $0.02 will be about all I have left!

  6. #6
    efoivx's Avatar
    efoivx is offline Registered User
    Join Date
    Aug 2001
    Location
    NYC
    Posts
    145
    Thanks
    0
    Thanked 0 Times in 0 Posts
    long story but to keep it simple

    running mount from /etc/rc is not the correct way to do it. although it will work. It's just a more standard practice to mount from fstab.

    not going to go into all the details but just trust me do it the way I described.

    Cheers

  7. #7
    Solaris's Avatar
    Solaris is offline Official something...
    Join Date
    Mar 2001
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Agreed. The other method is more of a 'hack' than solution
    Soon to be...
    Dual 2 GHz PowerMac G5
    512 MB RAM
    2 x 250 GB
    ATI Radeon 9800
    23" Cinema Display
    My $0.02 will be about all I have left!

  8. #8
    legacyb4 is offline Registered User
    Join Date
    Sep 2001
    Location
    Tokyo, Japan
    Posts
    245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the prompt replies!

    So the command lines*

    ConsoleMessage "mounting directories"
    mount -t hfs /dev/disk**** /disk-name

    force a manual mount within the /etc/rc file rather than from fstab which is the conventional way of mounting drives.

    Guess it's kinda like ejecting CD's in the old OS without dragging the icon to the trash; while it worked, it wasn't the correct way?

    So many new things to learn about the Unix sub-system... <sigh>

    Cheers.

    Originally posted by Solaris
    The link you provided runs the manual mount command from the /etc/rc file.

    It is a function of unix to mount file systems from the fstab. I'd use the method described by efoivx in this thread. It shows a better understanding of the unix subsystem.
    Macbook (Black) C2D/120GB/2GB | G5/1.6 250GBx2/1.25GB
    Free Mobile Phone Ringtone, Application, & Screensaver Uploader

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. The Authoritative Partitioning Discussion
    By mr. k in forum Mac OS X System & Mac Software
    Replies: 15
    Last Post: January 9th, 2009, 07:19 AM
  2. 10.22 and CD Mounting
    By emh_alpha1 in forum Mac OS X System & Mac Software
    Replies: 5
    Last Post: December 5th, 2002, 03:13 PM
  3. How to do clean install with 10.1 update disk?
    By whodiini in forum Mac OS X System & Mac Software
    Replies: 5
    Last Post: July 22nd, 2002, 10:00 PM
  4. New OS 10.1 Installation: disk won't spin up
    By moppet in forum Mac OS X System & Mac Software
    Replies: 1
    Last Post: December 5th, 2001, 11:28 PM
  5. disk copy image of 10.1 drive
    By philby85 in forum Mac OS X System & Mac Software
    Replies: 0
    Last Post: October 7th, 2001, 07:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •