Contribute
Register

Remove "sleepimage" and get many GBs back and faster sleep!

Status
Not open for further replies.
Joined
Aug 10, 2012
Messages
439
Motherboard
Asus Rog Strix Z370-G GAMING (WI-Fi AC)
CPU
i7-8700K
Graphics
RX 580
Mobile Phone
  1. iOS
I've removed the sleep image and disabled safe sleep mode using the terminal commands in post#1

Checked HD info and could se that the used space was decreased aprox. 8GB space
(from 32 gb to 24 gb)

I can put my comp to sleep and wake it and the used space on my HD info didn't change.

So far so good.

But when i reboot the used space is increased aprox. 2 GB ? :confused:

And there's generated a sleep image (2.15 GB) in the (hidden) Private/var/vm folder :problem:

I've checked if the sleep mode had changed but it's not.

Skærmbillede 2013-04-14 kl. 16.46.23.png


I thought that it had to do with the Chameleon SSD Optimizer and uninstalled it using CleenAp , rebooted but that didn't change anything.

???????????

UPDATE
I've found the solution post#21 here:

http://forums.macrumors.com/showthread.php?t=1480259

So if you got that "problem" i've described then do like this:

After running the two terminal commands in post#1

use this command:

sudo ln -s /dev/null /var/vm/sleepimage

I've tested this with a lot of sleep/wake and reboots an so far it's coursing no problems what so ever on my rig.

But if you regret this command you only have to delete the empty sleepimage file in (hidden) Private/var/vm folder
and reboot your comp.

Skærmbillede 2013-04-15 kl. 04.12.03.png

BTY i use the new CleanMyMac v.2.01
It's working really really Great freeing a lot of space by deleting lots of junk and unnecessary files.

http://macpaw.com/landings/land127?...1voLqzLYCFYJ3cAodjAsAXQ&siteID=&CJPID=&mpaid=

:D
 
Joined
Aug 10, 2012
Messages
439
Motherboard
Asus Rog Strix Z370-G GAMING (WI-Fi AC)
CPU
i7-8700K
Graphics
RX 580
Mobile Phone
  1. iOS
This is a little off topic but i'll take the chance as i find this very interesting.

It's about this Chameleon SSD Optimizer where i noticed that NOATIME tab and was wondering what that was.

I didn't found any info on allessandro's site about that feature.

http://chameleon.alessandroboschini.it/index.php

So i recearched a little and found this site.

http://mac-os-x.10953.n7.nabble.com/To-noatime-or-not-td25625.html

The Linux/Unix guru Ingo Molnar should have stated this about ATIME (default in OSX)

"It's also perhaps the most stupid Unix design idea of all times. Unix is really nice and well done, but think about this a bit: 'For every file that is read from the disk, lets do a ... write to the disk! And, for every file that is already cached and which we read from the cache ... do a write to the disk"

By changing ATIME to NOATIME you should
apparently increase the lifetime of your SSD disk due to preventing totally unnecessary write to the disk.
 

MacMan

Administrator
Staff member
Joined
Feb 2, 2010
Messages
8,462
Motherboard
ASUS TUF Z390-PRO GAMING - 2606 - UEFI
CPU
i9-9900K
Graphics
Vega 64
Mac
  1. MacBook Pro
  2. Mac Pro
Classic Mac
  1. Power Mac
  2. PowerBook
Mobile Phone
  1. iOS
Joined
Oct 13, 2011
Messages
22
Motherboard
10.7.4
CPU
Q6600
Graphics
GT6800
Mac
Classic Mac
Mobile Phone
How do we enable this in Maverivks?
 
Joined
Apr 18, 2013
Messages
36
Motherboard
Gigabyte GA-Z77X-UP5 TH
CPU
i7-3770K OC@4.7Ghz
Graphics
Titan X
Mac
  1. Mac Pro
Mobile Phone
  1. Android
I tried this but it still takes a long time for my mac to sleep. I'm not sure what the issue is. I have a samsung 840 evo 250gb and 4770k 32GB RAM and an h80i and it takes about 60 sec to sleep. I also have a few extra drives, AMD 7970ghz OC and a wifi card but unplugged all those to see if they were the culprits but it appears they aren't. It is faster for me to reboot the system then to put it to sleep... what is causing this issue?
 
Status
Not open for further replies.
Top