What is hibernate?

Robert Peirce wrote on :

Every once in a while, like last night, my MBP will go to sleep after I log off and do absolutely nothing until I log back on. It is as if the computer were shut down. In fact, if I am trying to charge my iPod it actually discharges.

In perusing the console log prior to this happening I found references to "hibernate" which I don't recall seeing before.

One peculiarity. This time, periodic daily ran when the compute awakened. When the same thing happened a few days ago it did not run.

10/22/12 11:27:33.000 PM kernel[0] hibernate image path: /var/vm/sleepimage 10/22/12 11:27:33.000 PM kernel[0] sizeof(IOHibernateImageHeader) == 512 10/22/12 11:27:33.000 PM kernel[0] kern_open_file_for_direct_io(0) took 17 ms 10/22/12 11:27:33.000 PM kernel[0] Opened file /var/vm/sleepimage, size 4294967296, partition base 0x0, maxio 400000 ssd 0 10/22/12 11:27:33.000 PM kernel[0] hibernate image major 1, minor 0, blocksize 512, pollers 5 10/22/12 11:27:33.000 PM kernel[0] hibernate_alloc_pages flags 00000000, gobbling 0 pages 10/22/12 11:27:33.000 PM kernel[0] hibernate_setup(0) took 0 ms 10/22/12 11:27:34.000 PM kernel[0] en1: BSSID changed to 00:18:f8:be:44:6b 10/22/12 11:27:34.000 PM kernel[0] 13973.515167: setDISASSOC from ATH_INTERFACE_CLASS disconnectVap 10/22/12 11:27:34.000 PM kernel[0] AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving). 10/22/12 11:27:34.000 PM kernel[0] enet_event_func - vendor 1, class 1, subclass 2, event code 12 10/22/12 11:27:34.000 PM kernel[0]
en1::IO80211Interface::postMessage bssid changed 10/22/12 11:27:34.000 PM kernel[0] 13973.530954: setDISASSOCIATE ****STA SYNC DISASSOC SUCCESS
10/22/12 11:27:46.000 PM kernel[0] hibernate_page_list_setall start 0xffffff806d87d000, 0xffffff806d8e6000 10/22/12 11:27:46.000 PM kernel[0] hibernate_page_list_setall time: 249 ms 10/22/12 11:27:46.000 PM kernel[0] pages 474984, wire 119635, act 66276, inact 20, cleaned 1 spec 611, zf 24646, throt 0, could discard act 223633 inact 20259 purgeable 2808 spec 10850 cleaned 6245 10/22/12 11:27:46.000 PM kernel[0] hibernate_page_list_setall found pageCount 211189 10/22/12 11:27:46.000 PM kernel[0] IOHibernatePollerOpen, ml_get_interrupts_enabled 0 10/22/12 11:27:46.000 PM kernel[0] IOHibernatePollerOpen(0) 10/22/12 11:27:46.000 PM kernel[0] encryptStart 13230 10/22/12 11:27:46.000 PM kernel[0] writing 209636 pages 10/22/12 11:27:46.000 PM kernel[0] encryptEnd 82c7600 10/22/12 11:27:46.000 PM kernel[0] image1Size 0xc8c6e00, encryptStart1 0x13230, End1 0x82c7600 10/22/12 11:27:46.000 PM kernel[0] encryptStart c8c6e00 10/22/12 11:27:46.000 PM kernel[0] encryptEnd 181bf400 10/22/12 11:27:46.000 PM kernel[0] PMStats: Hibernate write took 10845 ms 10/22/12 11:27:46.000 PM kernel[0] all time: 10845 ms, comp bytes: 859000832 time: 1185 ms 690 Mb/s, crypt bytes: 331008464 time: 2693 ms 117 Mb/s, 10/22/12 11:27:46.000 PM kernel[0] image 404485120, uncompressed 859000832 (209717), compressed 397085488 (46%), sum1 deeb6032, sum2 6a9fdff 10/22/12 11:27:46.000 PM kernel[0] wired_pages_encrypted 66346, wired_pages_clear 51817, dirty_pages_encrypted 91554 10/22/12 11:27:46.000 PM kernel[0] hibernate_write_image done(0) 10/22/12 11:27:46.000 PM kernel[0] sleep 10/22/12 11:27:46.000 PM kernel[0] Wake reason: UHC3 10/22/12 11:27:46.000 PM kernel[0] [SendHCIRequestFormatted] ### ERROR: [0x0C3F] (Set AFH Host Channel Classification) -- Send request failed (err = 0xE00002ED (kIOReturnNotResponding)) 10/23/12 8:58:50.049 AM com.apple.usbmuxd[22] DeviceRequestAsync failed: 0xe0004057

Bob Harris replied on :

In article bob-DD2859.09251023102012@redacted.invalid, Robert Peirce bob@redacted.invalid wrote:

Every once in a while, like last night, my MBP will go to sleep after I log off and do absolutely nothing until I log back on. It is as if the computer were shut down. In fact, if I am trying to charge my iPod it actually discharges.

In perusing the console log prior to this happening I found references to "hibernate" which I don't recall seeing before.

One peculiarity. This time, periodic daily ran when the compute awakened. When the same thing happened a few days ago it did not run.

10/22/12 11:27:33.000 PM kernel[0] hibernate image path: /var/vm/sleepimage 10/22/12 11:27:33.000 PM kernel[0] sizeof(IOHibernateImageHeader) == 512 10/22/12 11:27:33.000 PM kernel[0] kern_open_file_for_direct_io(0) took 17 ms 10/22/12 11:27:33.000 PM kernel[0] Opened file /var/vm/sleepimage, size 4294967296, partition base 0x0, maxio 400000 ssd 0 10/22/12 11:27:33.000 PM kernel[0] hibernate image major 1, minor 0, blocksize 512, pollers 5 10/22/12 11:27:33.000 PM kernel[0] hibernate_alloc_pages flags 00000000, gobbling 0 pages 10/22/12 11:27:33.000 PM kernel[0] hibernate_setup(0) took 0 ms 10/22/12 11:27:34.000 PM kernel[0] en1: BSSID changed to 00:18:f8:be:44:6b 10/22/12 11:27:34.000 PM kernel[0] 13973.515167: setDISASSOC from ATH_INTERFACE_CLASS disconnectVap 10/22/12 11:27:34.000 PM kernel[0] AirPort: Link Down on en1. Reason 8 (Disassociated because station leaving). 10/22/12 11:27:34.000 PM kernel[0] enet_event_func - vendor 1, class 1, subclass 2, event code 12 10/22/12 11:27:34.000 PM kernel[0]
en1::IO80211Interface::postMessage bssid changed 10/22/12 11:27:34.000 PM kernel[0] 13973.530954: setDISASSOCIATE ****STA SYNC DISASSOC SUCCESS
10/22/12 11:27:46.000 PM kernel[0] hibernate_page_list_setall start 0xffffff806d87d000, 0xffffff806d8e6000 10/22/12 11:27:46.000 PM kernel[0] hibernate_page_list_setall time: 249 ms 10/22/12 11:27:46.000 PM kernel[0] pages 474984, wire 119635, act 66276, inact 20, cleaned 1 spec 611, zf 24646, throt 0, could discard act 223633 inact 20259 purgeable 2808 spec 10850 cleaned 6245 10/22/12 11:27:46.000 PM kernel[0] hibernate_page_list_setall found pageCount 211189 10/22/12 11:27:46.000 PM kernel[0] IOHibernatePollerOpen, ml_get_interrupts_enabled 0 10/22/12 11:27:46.000 PM kernel[0] IOHibernatePollerOpen(0) 10/22/12 11:27:46.000 PM kernel[0] encryptStart 13230 10/22/12 11:27:46.000 PM kernel[0] writing 209636 pages 10/22/12 11:27:46.000 PM kernel[0] encryptEnd 82c7600 10/22/12 11:27:46.000 PM kernel[0] image1Size 0xc8c6e00, encryptStart1 0x13230, End1 0x82c7600 10/22/12 11:27:46.000 PM kernel[0] encryptStart c8c6e00 10/22/12 11:27:46.000 PM kernel[0] encryptEnd 181bf400 10/22/12 11:27:46.000 PM kernel[0] PMStats: Hibernate write took 10845 ms 10/22/12 11:27:46.000 PM kernel[0] all time: 10845 ms, comp bytes: 859000832 time: 1185 ms 690 Mb/s, crypt bytes: 331008464 time: 2693 ms 117 Mb/s, 10/22/12 11:27:46.000 PM kernel[0] image 404485120, uncompressed 859000832 (209717), compressed 397085488 (46%), sum1 deeb6032, sum2 6a9fdff 10/22/12 11:27:46.000 PM kernel[0] wired_pages_encrypted 66346, wired_pages_clear 51817, dirty_pages_encrypted 91554 10/22/12 11:27:46.000 PM kernel[0] hibernate_write_image done(0) 10/22/12 11:27:46.000 PM kernel[0] sleep 10/22/12 11:27:46.000 PM kernel[0] Wake reason: UHC3 10/22/12 11:27:46.000 PM kernel[0] [SendHCIRequestFormatted] ### ERROR: [0x0C3F] (Set AFH Host Channel Classification) -- Send request failed (err = 0xE00002ED (kIOReturnNotResponding)) 10/23/12 8:58:50.049 AM com.apple.usbmuxd[22] DeviceRequestAsync failed: 0xe0004057

I'm guessing, but Hibernate is suppose to be a way to save your RAM contents to disk, so your Mac can totally power down, but still come back as if your Mac was sleeping.

When you Mac goes to sleep, a /private/var/vm/sleepimage file is created that is the same size as your RAM, and the contents of your RAM are written to this file.

If while sleeping, your battery drains to 0 (because you left it sleeping for a few weeks at a stretch) or the Mac is an iMac, Mac mini or Mac Pro and Duquesne Light has an outage while sleeping, then you can still continue where you left off after you unsleep your Mac, because hibernate mode has saved your RAM in sleepimage.

So I'm guessing that those messages in your log are just the Mac creating your sleepimage, and saving the contents of RAM before going to sleep as a precaution incase power is lost.

All of this is a guess.

Your Name replied on :

In article bob-DD2859.09251023102012@redacted.invalid, Robert Peirce bob@redacted.invalid wrote:

Every once in a while, like last night, my MBP will go to sleep after I log off and do absolutely nothing until I log back on. It is as if the computer were shut down. In fact, if I am trying to charge my iPod it actually discharges.

In perusing the console log prior to this happening I found references to "hibernate" which I don't recall seeing before.

One peculiarity. This time, periodic daily ran when the compute awakened. When the same thing happened a few days ago it did not run.

As the name suggests "Hibernation" is a deeper version of "Sleep" which uses even less power.

http://en.wikipedia.org/wiki/Hibernation_(computing)

http://carbonite.custhelp.com/app/answers/detail/a_id/1488/~/%5Bmac%5D-hibernation-and-sleep-mode

Robert Peirce replied on :

In article YourName-2410121625210001@redacted.invalid, YourName@redacted.invalid (Your Name) wrote:

As the name suggests "Hibernation" is a deeper version of "Sleep" which uses even less power.

Is this new in 10.8? I don't recall ever seeing it before. Could that affect things that startup when I log in?

nospam replied on :

In article bob-9EFF0F.08211124102012@redacted.invalid, Robert Peirce bob@redacted.invalid wrote:

As the name suggests "Hibernation" is a deeper version of "Sleep" which uses even less power.

Is this new in 10.8? I don't recall ever seeing it before. Could that affect things that startup when I log in?

definitely not. hibernate has officially been around since the intel transition, but the last couple of powerbooks could have it enabled.