OK. Not exactly related to virtualization but I thought I’d share this anyways. I am always on the move and I’m usually bringing my Mac with me. One of my favorite things about the Mac is that I can really just close the lid and walk to a meeting and open the lid and it’s ready to work instantly. That’s just incredible to me. Sure, a PC can sleep and even hibernate but neither makes the thing come alive quickly. The one painful thing for me has been waiting for my Mac to sleep. I run a lot of stuff all the time. Right now I have 21 different apps open plus a VM running in VMware Fusion. That means that when my Mac goes to sleep I have to wait for it to write most of the 4 GB of RAM to disk. A fellow engineer just showed me a faster way to make the Mac sleep – adjust the hibernatemode variable.
The innovation in Apple’s “Safe Sleep” is that it goes ahead and writes out the disk image, but then suspends to RAM. If you just resume, everything’s already in RAM and you can avoid the delay from resuming the image. If you lose power (or change battery), then it resumes from the disk image. By comparison, Windows offers both suspend-to-RAM and suspend-to-disk, but not at the same time.
You can change the Mac’s hibernate behavior using pmset; here’s the reference for it:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pmset.1.html
“sudo pmset -a hibernatemode 0″ = suspend to RAM only (default on desktops)
“sudo pmset -a hibernatemode 1″ = suspend to disk only
“sudo pmset -a hibernatemode 3″ = suspend to disk + RAM (default on laptops)
To see your current hibernatemode: “pmset -g | grep hibernatemode”. Right now I have mine set to hibernatemode 0 and man do I love it. Instant sleep and instant recovery. This even works with 4 different VMs running in VMware Fusion with no hiccups. Can life get any sweeter?
I hope this helps some of you Mac lovers out there.
-
Louis Vuitton handbags
-
Buckie
-
Lucas
-
Mark
-
Martin
-
blah
-
carbonsink
-
Andy Lee
-
Lucas
-
Mike DiPetrillo
-
Oliver
-
alec
-
Mike DiPetrillo
-
Mr. Darcy
-
Chris Bulow
-
Ted Wood
-
Andrew Miller
-
Mike DiPetrillo
-
sfoskett
-
Bob Klaas
-
latoga
-
James
-
Mike DiPetrillo
-
Rob Uttley
-
Anonymous
