sleepimage 2GB file?

Discussion in 'macOS' started by glasserp, Aug 18, 2008.

  1. glasserp macrumors regular

    Joined:
    Apr 4, 2008
    Location:
    Detroit, MI
    #1
    Hi, I recently downloaded Disk Inventory X to see what kind of files were lurking around and I found a 2GB file called sleepimage in Mac HD>private>var>vm. I imagine it's probably something critical to the OS, but can anyone shed any light on it? What does it do? You find a lot weird (sometimes large) files when you go poking around deep in folders that you probably shouldn't be in.
     
  2. misterredman macrumors 6502a

    misterredman

    Joined:
    Oct 3, 2007
    #4
    That file is needed for the safe sleep function of your macbook. It should be exactly as big as your RAM memory. In fact when you put your mac to sleep the content of the RAM is written to that file on the hard drive, so that if the mac should run out of battery your session can be restored from there. Safe sleep also permit you to swap the battery while in sleep without loosing your current session (opened apps, ...).
     
  3. glasserp thread starter macrumors regular

    Joined:
    Apr 4, 2008
    Location:
    Detroit, MI
    #5
    Okay, cool. Thanks for the info. Will try do a little searching first next time :rolleyes:
     

Share This Page