Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

CFoss

macrumors 6502
Original poster
Feb 26, 2011
271
1
With 16GB of RAM, the sleep image takes up a lot of internal memory. However, I do not want to get rid of the hibernation feature. Is it possible how much space the sleep image takes, without getting rid of it entirely?
 

Stooby Mcdoobie

macrumors 6502a
Jun 26, 2012
834
45
Deleting the sleep image won't cause any problems because it will just be created again next time your Mac is put to sleep. I'm not sure if it's possible to reduce the size of it, though.
 

GGJstudios

macrumors Westmere
May 16, 2008
44,545
943
The only way to reduce the size is to reduce the amount of RAM, as the sleepimage is a copy of your RAM contents.
 

Blue Sun

macrumors 6502a
Feb 11, 2009
984
330
Australia
I've had my sleep image disabled for over a year on my MBP with an aftermarket SSD. It hasn't affected me in the slightest, save for the additional 8GB on my drive.

AFAIK, the only time it could become a problem is when the battery reaches complete depletion, as the machine would be unable to restore the state it was in prior to shutdown.

Below are some Terminal commands relating to the sleep image.

To view sleep image size:
ls -lh /private/var/vm/sleepimage

To prevent the creation of the sleep image:
sudo pmset -a hibernatemode 0

To delete the sleep image (thus regaining HD space):
sudo rm /private/var/vm/sleepimage

I can confirm that the above commands work for both Lion and Mountain Lion.
 

CFoss

macrumors 6502
Original poster
Feb 26, 2011
271
1
I've had my sleep image disabled for over a year on my MBP with an aftermarket SSD. It hasn't affected me in the slightest, save for the additional 8GB on my drive.

AFAIK, the only time it could become a problem is when the battery reaches complete depletion, as the machine would be unable to restore the state it was in prior to shutdown.

Below are some Terminal commands relating to the sleep image.

To view sleep image size:
ls -lh /private/var/vm/sleepimage

To prevent the creation of the sleep image:
sudo pmset -a hibernatemode 0

To delete the sleep image (thus regaining HD space):
sudo rm /private/var/vm/sleepimage

I can confirm that the above commands work for both Lion and Mountain Lion.

Thank you. I actually prefer to have that backup, so I'm going to leave the sleep image there. On the Windows partition, I have disabled the hiberfil.sys, as the extra 16GB of space is more valuable on a 40GB partition than resuming progress of a video game, etc.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.