A large file called "sleepimage" under /private/var/vm/

I have a 2GB file called "sleepimage" under /private/var/vm/

does anyone know what it is?/ How to delete it?/Should I delete it?

Looking for a master/genius/Einstein to solve my question

MacBook Pro, Mac OS X (10.5.4)

Posted on Jul 30, 2008 3:32 AM

Reply
5 replies

Jul 30, 2008 9:19 PM in response to dongcarl

As has already been said, it saves the entire contents of your RAM to the hard drive so that if the power goes out you don't lose your work. You can change your default sleep settings so that safe sleep is off using Terminal, but it's generally not a good idea. It will prevent that sleep image from being created so you can delete it and recover some space on your hard drive, but if your laptop loses power during sleep nothing will be saved and it will just shut off (like yanking the power cord out on a desktop).

If you're pretty confident you're never going to let your battery get to down to 0% and would rather have that extra space, open Terminal and type "sudo pmset -a hibernatemode 0" (without the quotes) and hit enter. Then you can delete the file and empty the trash. If you want to change it back, it's the same command, but replace 0 with 3.

Jul 30, 2008 3:47 AM in response to dongcarl

No Einstein... but a little googling goes a long way!

There is no need to touch it.

The sleepimage is the contents of RAM saved to disk every time your Mac is put to sleep. Thus, if you battery gets critically low, you Mac can go into hibernate mode (turns off all power to RAM). When you restart (hopefully attached to a power cord), then it reads the sleepimage to restore you to the exact point you were before the computer went to sleep.

Cheers,

Rodney

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

A large file called "sleepimage" under /private/var/vm/

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.