Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 18, 2009, 10:47 PM   #1
sammich
macrumors 601
 
sammich's Avatar
 
Join Date: Sep 2006
Location: Sarcasmville.
Allocate contiguous hard drive space for swap space?

After some messing about on my computer (short story:inf loop, loop writes to container in memory), I've built up large chunks of swap space on my computer. The problem isn't space that's been used up, rather the locking up of the system when switching to another application. Since the hard drive IO is flooded by calls, and that the swap space is invariably fragmented across the entire drive (iDefrag currently shows 2 1GB swapfiles: 984 and 3873 pieces).

When I went back to working in Numbers (1 400kb document open), I got a beachball for about 5-6 minutes while the app was being read back into memory from the thousands of bits on my hard drive.

Now, as my thread topic suggests: is there a way to dedicate a portion of the drive (preferably not a partition) of contiguous space ONLY for swap space usage? Googling turned up a few *nix related methods, but the link below has a stack of comments titled 'stupid idea'.

Can anyone break down the method (and why they think it's a stupid idea) in the link below?
http://www.macosxhints.com/article.p...11226102423514

Thoughts? Suggestions? Or is it just not possible?
__________________
Official MR IRC
Look at me, I'm own a bunch of things and everyone must know about every single one.

Last edited by sammich; Apr 18, 2009 at 10:53 PM.
sammich is offline   0 Reply With Quote
Old Apr 19, 2009, 06:22 AM   #2
snowmoon
macrumors 6502a
 
Join Date: Oct 2005
Location: Albany, NY
Send a message via AIM to snowmoon
I think you are over thinking this problem. I would start with something like applejack run in full auto mode. One of the things it does is clean up the swap files.

http://applejack.sourceforge.net/

Defragmenting is usually not the solution.
__________________
UMBP 2.4 15" replacement for a MBP2,2 with a boatload of issues.
snowmoon is offline   0 Reply With Quote
Old Apr 19, 2009, 03:35 PM   #3
Amdahl
macrumors 65816
 
Join Date: Jul 2004
Mac OS will only use contiguous space for swap chunks. Typically, the problem is that it can't find large enough chunks, and a full defrag opens up large spaces.

A reboot resets the swap chunks, I believe.

The link you included may not be relevant, considering it was based on very old OS X.
Amdahl is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How much space should I allocate to Boot Camp? Drewbonics Windows, Linux & Others on the Mac 2 Mar 14, 2014 11:47 PM
Hard drive space Trentmichael MacBook 2 Sep 14, 2013 03:26 AM
Space on hard drive disappears after delete of files / no start up disk space AlakaDan OS X 15 Aug 28, 2013 10:26 PM
Missing hard drive space and used space keeps increasing? poisoncoyote OS X 10.8 Mountain Lion 0 Dec 10, 2012 02:16 PM
How much free space to allocate in external HDD? dcslacker Digital Video 2 Aug 5, 2012 04:21 AM

Forum Jump

All times are GMT -5. The time now is 05:53 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC