What Is This File: Private->var->vm->sleepimage? - MacRumors Forums
Maybe your like
- Front Page
- Roundups
- Guides
- How Tos
- Reviews
- Buyer's Guide
- Forums Home New Posts Forum List Trending New Threads New Media Spy New posts Forum list WikiPost Latest summaries Watched WikiPosts Support FAQ and Rules Contact Us
Search
Everywhere Threads This forum This thread Search titles only Note Search Advanced search… Everywhere Threads This forum This thread Search titles only By: Search Advanced… Toggle sidebar Toggle sidebar- Home New Posts Forum List Trending New Threads New Media Spy
- New posts
- Forum list
- WikiPost Latest summaries Watched WikiPosts
- Support FAQ and Rules Contact Us
Search
Everywhere Threads This forum This thread Search titles only Note Search Advanced search… Everywhere Threads This forum This thread Search titles only By: Search Advanced… Toggle sidebar Toggle sidebar Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums. Menu Install the app Install How to install the app on iOSFollow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What is this file: Private->var->vm->sleepimage?- Thread starter Thread starter rockinrocker
- Start date Start date Feb 25, 2014
- Sort by reaction score
- Forums
- Macs
- macOS
- macOS
rockinrocker
macrumors 65816
Original poster Aug 21, 2006 1,323 4 Can someone tell me what this is and if anything will happen if I delete it? It's taking up a pretty good chunk of my SSD. Thanks
mfram
Contributor
Jan 23, 2010 1,394 451 San Diego, CA USA That's for storing your system state (RAM) when you sleep the computer. Tough to tell in the picture. I think it says 17G. Do you have 16GB of RAM? That's why it's so large.rockinrocker
macrumors 65816
Original poster Aug 21, 2006 1,323 4 Yep, sure do. I s'pose there's nothing to be done about it eating up that much space? Possible to off load it to another drive?jorgk
macrumors regular
Mar 20, 2013 118 45rockinrocker said: I s'pose there's nothing to be done about it eating up that much space? Possible to off load it to another drive? Click to expand...Search for 'hibernate mode mac disable' or something like that. You can set this to 0 (in the terminal) and then delete the huge RAM-sleepimage file (as pointed out by mfram). The file should be as big as your RAM. Have a look for some background info (just picked via google) here. The only disadvantage is that if your laptop battery runs out of power while asleep, you will do a normal restart and loose everything that was only in RAM (unsaved windows etc.). With the hibernate file still there, OSX would restore the situation to as before, at the moment the system went to sleep. The advantage when having inactivated hibernation is that there's not each time 16 GB written to your SSD when you send the system to sleep. Because of being afraid of wear-out of their SSD, many change this setting accordingly. In brief: To set to No-hibernation (not writing RAM to disk when going into sleep), go to terminal and type: sudo pmset -a hibernatemode 0 Confirm by typing your password (the cursor will not change), then press enter. If you feel to change back: Same command, but set it to 3. Once inactivated hibernation, you can delete the sleepimage file in /var/vm (In there will also be the swap files. I guess this is RAM swapped to disk - thus it should not be deleted). Last edited: Feb 26, 2014
rockinrocker
macrumors 65816
Original poster Aug 21, 2006 1,323 4 Thanks a lot for the detailed response. I think I will go ahead and disable this since I'm not really concerned about that feature. Sorry if this is a dumb question, but I've never done anything in Terminal before- So I type "sudo pmset -a hibernatemode 0"- should I leave a space or start a new line or anything before entering my password? Thanks BBruno09
macrumors 68020
Aug 24, 2013 2,202 153 Far from here Launch the Terminal. Copy/paste : sudo pmset -a hibernatemode 0 Hit the Enter key. The Terminal asks : "Password" ? Enter your admin password (won't show up, that is normal). Hit the Enter key. Now to check it worked : Copy/paste : pmset -g | grep hibernatemode Hit the Enter key. Answer should be : "hibernatemode 0".rockinrocker
macrumors 65816
Original poster Aug 21, 2006 1,323 4 Ah, ok. Thanksrockinrocker
macrumors 65816
Original poster Aug 21, 2006 1,323 4 So if I wanted to return it to the default setting in the future I'm guessing I'd just enter that same command with the zero changed to a 16 or something?jorgk
macrumors regular
Mar 20, 2013 118 45rockinrocker said: So if I wanted to return it to the default setting in the future I'm guessing I'd just enter that same command with the zero changed to a 16 or something? Click to expand...No, I believe the default value is 3. You can check your system in this way: Open Terminal.app (in Utilities), type as shown here (pmset -g): MacXXXXXX:~ YourUserNameHere$ pmset -g Active Profiles: Battery Power -1 AC Power -1* Currently in use: standbydelay 4200 standby 0 womp 0 halfdim 1 hibernatefile /var/vm/sleepimage gpuswitch 2 sms 1 networkoversleep 0 disksleep 0 sleep 45 hibernatemode 0 ttyskeepawake 1 displaysleep 8 acwake 0 lidwake 0 MacXXXXXX:~ YourUserNameHere $ You see, I have inactivated hibernation (hibernate mode being 0) apart from other changes (e.g. I don't want that my Mac comes out of sleep just by opening the lid - that's done by lidwake set to 0). You can get some info on those things by typing: man pmset in terminal. To scroll through the output use arrows or the space bar. To leave the output just type q (quit). Hope that helps.
rockinrocker
macrumors 65816
Original poster Aug 21, 2006 1,323 4 Interesting. I didn't even know you could change that wake from sleep setting. That actually sounds like kind of a cool idea . You must log in or register to reply here. Share: Facebook X Bluesky LinkedIn Reddit Email Share Link Register on MacRumors! This sidebar will go away, and you'll see fewer ads. Sign Up- Forums
- Macs
- macOS
- macOS
Tag » What Is Sleepimage On Mac
-
Sleepimage – The Mac OS X Sleepimage File Explained - OSXDaily
-
Q: A Large File Called "sleepimage" Under /private/var/vm
-
How To Delete Sleepimage On MacOS
-
How To Remove The Disk-hogging Sleepimage File From Your Mac
-
Removing The Sleepimage File In /var/vm In MacOS Permanently
-
Troubleshooting A Corrupted Sleepimage File - The X Lab
-
How To Delete Sleepimage On MacOS High Sierra - Christian Varga
-
비공개 게시물입니다. - 네이버 블로그
-
What Is "sleepimage"? | Mac Support
-
[Mac]privateフォルダに生成される Sleepimage を削除する方法
-
How To Delete A Space-Hogging Sleep File Sleepimage
-
Sleepimage Just 1 GB Insize By 16 GB RAM? - MacRumors Forums
-
[MacOS] Catalina 카탈리나 BigFile 줄이기 - 지훈현서 - 이글루스
-
What I Can Delete From /private/var/vm?