gorn.ch

Tobias Ebnöther's personal blog

MacBook Pro Hibernatemodes

Tonight I got inspired by this article and started to play around a bit with the OS X hibernate modes. The first thing I did was to just try out both modes with all application I had opened at the moment. Then I wanted to know how the performance is when some applications were running. Those tests are very primitive since swap was still active and I didn't got a nice stopwatch, so here are the first results:

RAM Usage ~350MB
Hibernatemode 0: 35s
Hibernatemode 3: 40s

RAM Usage: ~1.4GB
Hibernatemode 0: 35s
Hibernatemode 3: 48s
I found it quite interesting that the safesleep mode didn't took more than a couple of seconds longer to go to sleep so I figured out a nicer test environment. I disabled the swap space and created a 1GB ramdisk. (In fact I tried to create more ramdisks but didn't manage to get more than ~1.3GB of memory active). The first test was just after booting up, the second with a full ramdisk. In both cases where very less programms running so the OS could go to sleep without interruption.

PhysMem:   124M wired,  134M active,  641M inactive,  900M used, 1.12G free
Hibernatemode 0: 35s
Hibernatemode 3: 38s

PhysMem: 132M wired, 1.23G active, 630M inactive, 1.98G used, 25.5M free
Hibernatemode 0: 35s
Hibernatemode 3: 40s

My final conclusion is to stick with the default safesleep hibernatemode 3 since the difference is very little and rarely I don't manage to get to a power-plug in time.
Related Entries:
xchat on OSX / Command as alt
Setting up relayhost for postfix on OSX (with ssl and authentication)
MacHeist Software Bundle
Leopard native apache with custom (64bit) PHP
Leopard PHP / Apache Package with pecl support
 Permalink

Comments

No new comments allowed (anymore) on this post.
Powered by Flux CMS