image
image

|


Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old September 30th, 2001, 11:17 PM
ilo ilo is offline
Registered User
 
Join Date: Sep 2001
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
ilo is on a distinguished road
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?
Reply With Quote
  #2  
Old September 30th, 2001, 11:39 PM
swizcore's Avatar
Help Guide Coordinator
 
Join Date: Sep 2001
Location: Michigan USA
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
swizcore is on a distinguished road
Re: Changing swapfile location to separate disk in 10.1

Quote:
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
Reply With Quote
  #3  
Old October 1st, 2001, 04:28 AM
efoivx's Avatar
Registered User
 
Join Date: Aug 2001
Location: NYC
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
efoivx is on a distinguished road
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
Reply With Quote
  #4  
Old October 13th, 2001, 02:32 AM
Registered User
 
Join Date: Sep 2001
Location: Tokyo, Japan
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
legacyb4 is on a distinguished road
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
Reply With Quote
  #5  
Old October 13th, 2001, 02:51 AM
Solaris's Avatar
Official something...
 
Join Date: Mar 2001
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris is on a distinguished road
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!
Reply With Quote
  #6  
Old October 13th, 2001, 02:55 AM
efoivx's Avatar
Registered User
 
Join Date: Aug 2001
Location: NYC
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
efoivx is on a distinguished road
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
Reply With Quote
  #7  
Old October 13th, 2001, 03:01 AM
Solaris's Avatar
Official something...
 
Join Date: Mar 2001
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris is on a distinguished road
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!
Reply With Quote
  #8  
Old October 13th, 2001, 03:42 AM
Registered User
 
Join Date: Sep 2001
Location: Tokyo, Japan
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
legacyb4 is on a distinguished road
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.

Quote:
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
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Authoritative Partitioning Discussion mr. k Mac OS X System & Mac Software 13 November 11th, 2003 06:26 PM
10.22 and CD Mounting emh_alpha1 Mac OS X System & Mac Software 5 December 5th, 2002 03:13 PM
How to do clean install with 10.1 update disk? whodiini Mac OS X System & Mac Software 5 July 22nd, 2002 10:00 PM
New OS 10.1 Installation: disk won't spin up moppet Mac OS X System & Mac Software 1 December 5th, 2001 11:28 PM
disk copy image of 10.1 drive philby85 Mac OS X System & Mac Software 0 October 7th, 2001 07:38 AM


All times are GMT -5. The time now is 04:46 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.