PDA

View Full Version : 10.8 Sleepimage/Swap Files




Silverrune
Nov 26, 2012, 12:54 PM
I have tried multiple times to stop the creation of Sleep Image but it hasn't worked any help? I also have noticed 6 swapfiles that have popped up on my HDD what are they?



GGJstudios
Nov 26, 2012, 12:59 PM
I have tried multiple times to stop the creation of Sleep Image but it hasn't worked any help?
How to Remove the Disk-hogging Sleepimage File from Your Mac | Mac|Life (http://www.maclife.com/article/howtos/how_remove_diskhogging_sleepimage_file_your_mac)
I also have noticed 6 swapfiles that have popped up on my HDD what are they?
Swap files are created by OS X when you've exceeded your physical RAM. Don't delete them, as OS X manages them automatically. Restarting your Mac should remove most or all of them, but they will be rebuilt as needed.

To determine if you can benefit from more RAM, launch Activity Monitor and click the System Memory tab at the bottom to check your page outs. Page outs are cumulative since your last restart, so the best way to check is to restart your computer and track page outs under your normal workload (the apps, browser pages and documents you normally would have open). If your page outs are significant (say 1GB or more) under normal use, you may benefit from more RAM. If your page outs are zero or very low during normal use, you probably won't see any performance improvement from adding RAM.

Using Activity Monitor to read System Memory and determine how much RAM is being used (http://support.apple.com/kb/HT1342)

Silverrune
Nov 26, 2012, 02:33 PM
How to Remove the Disk-hogging Sleepimage File from Your Mac | Mac|Life (http://www.maclife.com/article/howtos/how_remove_diskhogging_sleepimage_file_your_mac)

Swap files are created by OS X when you've exceeded your physical RAM. Don't delete them, as OS X manages them automatically. Restarting your Mac should remove most or all of them, but they will be rebuilt as needed.

To determine if you can benefit from more RAM, launch Activity Monitor and click the System Memory tab at the bottom to check your page outs. Page outs are cumulative since your last restart, so the best way to check is to restart your computer and track page outs under your normal workload (the apps, browser pages and documents you normally would have open). If your page outs are significant (say 1GB or more) under normal use, you may benefit from more RAM. If your page outs are zero or very low during normal use, you probably won't see any performance improvement from adding RAM.

Using Activity Monitor to read System Memory and determine how much RAM is being used (http://support.apple.com/kb/HT1342)

My page outs are currently at 10GB I am planning on getting 16 GB of Ram for January, overkill yes, that solves that. I tried using that tutorial I checked that it was at 0 but somehow it was created again. I deleted before and I know it was gone (triple checked using DaisyDisk) and now it is back.
Edit: Re-Read your comment, I believe I restarted yesterday. I will try again tonight and see what happens in terms of the Page Outs.
Edit 2: Terminal Commands like these in general don't seem to be working. (Sleepimage)

Silverrune
Nov 26, 2012, 05:14 PM
Set sleep mode in shell:
sudo pmset -a hibernatemode 0
Remove the image:
sudo rm /private/var/vm/sleepimage
Create a blanked file:
sudo touch /private/var/vm/sleepimage
Make file immutable:
sudo chflags uchg /private/var/vm/sleepimage

That should do it.
This worked so everything is settled as far as Sleepimage.