Power Nap and Safe Sleep "incompatibility" will KILL your SSD ?!

Hi!
This is a common pmset -g output from a ivy bridge Retina 15':
Barfly-i7:~ syd$ pmset -g
Active Profiles:
Battery Power -1*
AC Power -1
Currently in use:
standbydelay         4200
standby              1
halfdim              1
hibernatefile        /var/vm/sleepimage
darkwakes            1
gpuswitch            2
disksleep            10
sleep                10
autopoweroffdelay    14400
hibernatemode        3
autopoweroff         1
ttyskeepawake        1
displaysleep         5
acwake               0
lidwake              1
Barfly-i7:~ syd$
PREAMBLE:
I was trying to figure out (like many others on the net) the real difference between "standbydelay" and "autopoweroff delay" and I made some test that showed something that could be a SSD-Killer bug for many mac owners. (please note: I still don't fully understand why you need the 14400 delay if the standby one comes firsts and does same thing). (note 2: Mr. pmset man page editor, is very "funny" to read  "For your sake and mine, please don't use anything other 0, 3, or 25." in an official man page but you are not explaining the relevance of bits 3 and 4 with hybernate mode 25 and the use of them combined).
THE PROBLEM:
Because of "Safe Sleep" even when RAM is still refreshed when mac enters Stanby ( from Sleep mode also called Stop in the GUI - more mess ) the contents of the ram are written to disk in /var/vm/sleepimage. So when a power faiure happens ( low batt, batt is removed, etc.) nothing is lost. In theory if you don't lose your power source you will always resume from RAM.
Problem starts if you enable Power Nap / Darke wake. As you might have noticed when the mac wakes up every hour, every software was running is resumed ( not only apple specific tasks ). So you might find some trace in your syslog of programs not finding the net, for example.
During this period of time the file system will be written by softwares and they internal state will be modified, so every hour the sleepimage file HAS TO be updated and rewritten not to create a dicrepancy between filesystem and memory after wake up from disk.
by issuing this command, before closing my lid, I had the confirmation about that:
Barfly-i7:~ syd$ while true; do sleep 120; stat /var/vm/sleepimage; date; done > AppleSleepIsMess.log
that is the output:
Barfly-i7:~ syd$ cat fuckSleepMess.log
Gio 23 Ott 2014 13:25:43 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 13:35:17 2014" "Oct 23 13:35:17 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 14:26:44 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 14:26:45 2014" "Oct 23 14:26:45 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 14:28:44 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 15:28:59 2014" "Oct 23 15:28:59 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 15:30:20 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 16:31:13 2014" "Oct 23 16:31:13 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 16:31:59 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 17:33:27 2014" "Oct 23 17:33:27 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 17:33:39 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 17:33:27 2014" "Oct 23 17:33:27 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 17:35:39 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 18:35:42 2014" "Oct 23 18:35:42 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 18:37:18 CEST
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 19:37:56 2014" "Oct 23 19:37:56 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Gio 23 Ott 2014 19:38:59 CEST
Barfly-i7:~ syd$ stat /var/vm/sleepimage
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 22:23:30 2014" "Oct 23 22:23:30 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
Barfly-i7:~ syd$ stat /var/vm/sleepimage
16777218 28067575 ---------- 1 root wheel 0 1073741824 "Oct 23 13:35:17 2014" "Oct 23 22:23:30 2014" "Oct 23 22:23:30 2014" "Oct 23 13:35:17 2014" 4096 2097152 0 /var/vm/sleepimage
So it confirms that EVERY HOUR, after every wake up,  the content of your ram is written to disk!!! I will try also with AC connected later today.
NOTE3: the stat output is: date of creation, modification, accesstime (no atime mount for me), attributes modification but the output format IS NOT written in the stat command manual making the man page useless. (we have another man ed here!)
Thanks to the hilarious writer of the pmset manpage we know that Hybernate mode 3 is using bits 0 and 1 so without bits 2 and 3 set there should not be any page out for memory footprint before hynernating. My MBPr shoud write 16GB not 1.0 !
Any comment, please?
Alex

Hi,
We are aware of this problem where the setting for "Battery Health Mode" does not work in the following case:
1.  the setting is changed while the system is undocked
2.  then, the system is docked.
The dock battery will not know that the setting for "Battery Health Mode" has been changed.
The work-around is to toggle the setting for "Battery Health Mode" while the system is docked, as you noted.

Similar Messages

  • Any one had problems with IPOD Nano getting wet from sweating while exercising. It will kill your Ipod so beware.

    Ipod nano will stop operating if it gets wet from sweating while exercising. Beware, sweat will kill your nano and apple will not cover it under warranty. So don't let it get wet.

    Sweat bands works!

  • These power settings will kill your keyboard dock

    This scenario will kill the power in your keyboard dock, rendering it lifeless:
    * Go to the "Lenovo Settings" Windows 8 app
    * Enable "30 Day Standby" (may not matter)
    * "Battery Stretch" On or Off (doesn't matter)
    * Go to "Battery Health Mode" and choose "Automatically optimize for battery life"
    Leave your laptop plugged in for a few hours.  Battery #2 (the keyboard portion of your Helix) will drain to 0%, and won't resume charging on its own.
    At first, I thought my Helix keyboard had lived a really short life.  But it turns out you can go back to "Battery Health Mode", change the option to "Always fully charge" and then close the lid to make the Helix sleep.  Eventually, your Helix will recognize that Battery #2 is dead and start charging it again.
    This is obviously a problem with the software, and should be able to be resolved easily by Lenovo once they see this message.  Please comment on this post to draw attention to the matter.
    Thanks!

    Hi,
    We are aware of this problem where the setting for "Battery Health Mode" does not work in the following case:
    1.  the setting is changed while the system is undocked
    2.  then, the system is docked.
    The dock battery will not know that the setting for "Battery Health Mode" has been changed.
    The work-around is to toggle the setting for "Battery Health Mode" while the system is docked, as you noted.

  • Calibrate Battery for Mid 2010 MBP 15" and "safe" sleep

    Ok, I have read various posts on what is suppose to happen. I know Apple changed the way the "computer will goto sleep when battery is drained after warning message" function from the earlier non-clam-shell MBP's did. But, I have gotten mixed messages on that as well.
    What happens on my MBP when I run the battery down is that a warning message pops up, then if I do not put it to sleep or plug power in, it shuts down into safe sleep mode with the result being NOT a pulsating sleep light like the non-clam shell MBP's.
    If you read:
    http://support.apple.com/kb/HT1490
    I am assuming safe sleep is not like normal sleep in that no pulsating light is present? From the link above... (but doesn't mention that "safe sleep" is a non-pulsating light version..
    *Tip: When the battery reaches "empty", the computer is forced into sleep mode. The battery actually keeps back a reserve beyond "empty", to maintain the computer in sleep for a period of time. Once the battery is truly exhausted, the computer is forced to shut down. At this point, with the safe sleep function introduced in the PowerBook G4 (15-inch Double-Layer SD) computers, the computer's memory contents have been saved to the hard drive. When power is restored, the computer returns itself to its pre-sleep state using the safe sleep image on the hard drive.*
    So, is this what others with this model are seeing?

    I'm using the early 2011 model of the MBP 15". I experienced the same thing. I used the battery until it got to 0% and then the display turned off. The sleep light only glowed once and then faded and did not pulsate. When I pressed the Power Button, that brought up a grayed version of the desktop. And then after a few seconds, I was back to the normal desktop. Is that the same thing that happened to you?

  • Battery and Safe Sleep problems

    I have a MacBook (original black, 10.4.10, 2 GHz Core Duo, 2 GB RAM).
    When the battery is low, but showing some charge in the menu bar icon (either black or red), many times the computer will just shut off without any warning that my battery is low.
    I have calibrated the battery by running it all the way down and then charging it full; I have done the SMC(?) reset by removing all power and holding the power button for 5 seconds. My firmware is 1.4f12.
    But after this unexpected shut down occurs and I subsequently power up the MacBook, I am not restored to my previous state via Safe Sleep, so I lose unsaved changes to open documents. I am also concerned that these unexpected shut-downs will eventually lead to problems with my hard drive.
    Any help?

    You need to have your battery replaced. The original core duo batteries warranty was extended an extra year. Follow the instructions in the battery update on how to get this resolved. Mine was doing the same thing and a new battery fixed the problem.

  • HT204032 Power NAP and Time Machine Backup

    One of the features of Power Nap is to allow backup even when the notebook is in a sleep .
    i notcied that even when Power Nap is enabled , i loose the backup process immediatly if PC goes to sleep. the condition happens when the backup is already working and after some time when not using the PC it goes to Sleep .
    is there a solution for the same ?
    Macbook Air Mid 2011 , with 1.6 Firmware updates

    diddl14 wrote:
    Same here. Doesn't seem to work as advertised? Neither does it continue a backup when going into a "power nap"
    The info isn't clear, but TM has always cancelled a backup when going to sleep. 
    nor does it start a new backup during a "power nap".
    It should, but only if the previous one was more than an hour earlier.

  • Power Nap and Late 09 iMac

    Hi,
    I am confused atm. I was told that only computers with SDD and being the latest models support power nap on ML however I have noticed that ever since updating my iMac apprears to wake all the connected HDDs up at inverals of 2 hours to start a TM backup. This has become quite annoying as it does it at night when asleep and at times wake me up.
    It can't be Power nap but it seems to act like it and I cannot turn it off.
    Any help would be great thanks.

    Peter Temp wrote:
    I fixed mine, found that iCloud activated Wake for Network thing in power settings as a part of Find my mac. Just deactivate it in power settings.
    Thanks for posting back with your solution...

  • Power button and wake/sleep button

    I recently had to download a new update. After that when I go to a application I am not able to to go to a new application. Even if i power down and restart I have to re sync my ipod but I still have the same problem. Does anyone have any suggestions?

    Same thing has been happening to me. My iMac would boot up, in a very washed out state that had nothing to do with calibration or contrast in the Universal panel. However, when I put the computer to sleep and then woke it up, everything would be back to normal.
    I just upgraded to OS X Maverick however, and putting the computer to sleep does not clear up the washed-out issue any more. Neither does accessing the "color" panel in the system display tab. At this point I'm stressing out because I use my computer for graphic design work, and it's clearly not useable in this state!

  • IMac G5 won't boot in normal and safe mode, but will from single-user mode

    Hello everyone,
    I'm quite new here, so I try to do my best if you have a question.
    Yesterday, someone nearby me had a iMac G5 (Powermac8,1), and he sayd, that the computer sometimes will boot, sometimes not.
    I did test it, I thought it was running fine, but when I played some music in iTunes, it was stuck on 9 seconds, and crashed (with a kernel panic). The guy also sayd, that there was nothing important on the computer, so a clean install was fine.
    Now, the problem is, that it will not boot in normal mode (without anything pressed on boot), also it won't in safe mode (shift-boot), but it will, when I enter single-user mode, mount the hard drive and exit from single-user mode so it will go futher on booting. Sometimes it will not, and immediately gives you a kernel panic in single-user mode, but it will 90 percent of the time.
    Then you've got another problem: when it's running in the normal desktop from single-user mode, it'll be stuck after some time again. If I look into the Kernel Panic file created, most times it's because of Spotlight indexing, so I disabled that.
    He also gave me the disks (Apple Hardware Test and Extra Applications, and iMac G5 Mac OS X Install Disks 1-3) that came with the Mac. He sayd that I could use them, but I think he didn't test out the SuperDrive, because when I insert a disk, it will try to read, but it will make 2 same sounds, and quits after 10 tries, when it will spit the cd out. Also normal (audio) disks.
    Also, I must hurry with the commands for mounting and exiting in single-user mode, or it will just not boot.
    In all cases, after 30-45 seconds from pressing the power button, the fan will start blowing at full speed, and it will stop after the exit command in Single-user mode. That's weird.
    I can't do anything with the SuperDrive, I can't normally boot in Mac OS X except for Single-user mode (but I don't think he would like to do that every time the computer boots up), and I have very limited time when Mac OS X arrived on the desktop.
    When booting in Verbose mode, it will be stuck on this:
    AppleSMU::PMU vers = 0x000d004c, SPU vers = 0x15, SDB vers = 0x01,
    (and sometimes ends with a kernel crash by fsck_hfs)
    Things I've tried (without any success):
    - /sbin/fsck -fy (in single-user mode)
    - Disabling Spotlight and mds
    If you want some more information, feel free to ask!
    Greetings
    -MrYoranimo
    PS: My main language is Dutch, so my English can be bad at some points.

    Thank you for your support! This reply is a little bit late, because I was to the camping this weekend.
    The only thing I sure do know, is that the iMac has a bad SuperDrive. That's one problem, but I don't really wanna use it, and you fix everything by Single-user mode and when I get to the desktop to test things and change stuff in the Preference Panes.
    What also came to my mind was that there also is a problem with the videocard (driver), because sometimes when I boot into Single-user mode, I can see some white pixels which aren't supposed to be there. And when booting from SUM you can see that some of the colors are different and there are weird patterns on the screen.
    I also tried to setup a NetBoot server on this computer (MacBook Mid 2010) with just Lion 10.7.4 on it, but I'm not that expert and I didn't really find the good posts on the Internet, although I tried it with the Server applications and both Server applications and DeployStudio. But I didn't succeed.
    I don't really like buying a new FireWire hard disk or external FireWire dvd reader/writer, except if it has USB support, because my MacBook doesn't support FireWire, and I really wanna make use of it then.
    If I know more or have fixed it, I will surely post again here with what I did to fix it (if no one else has posted here already ).

  • 27" imac yosemite update hangs. Required power cycle and safe boot to get the update going. Now all OS X update do the same.

    27" iMac Yosemite update hangs.
    The original upgrade to Yosemite (10.10) took almost a full day! The computer hung during one of the reboots and just showed a blank grey screen, no apple logo, no progress bar, nothing. I left it like that for about an hour thinking it might be working in the dark... Eventually I had to power cycle. Disconnected power at the wall outlet for about 5 minutes, then reconnected and tried to start. After about 20 minutes, got to the same point, grey screen:no action, again waited at least an hour.
    Then I did a safe boot. System came up OK in safe mode to the log in screen. As soon as I logged in, it proceeded with the interrupted update, which ran to completion. Yay!
    Now, every update to Yosemite that arrives gives men the same grief!
    To add some more, the "Pro Video Formats 2.0.1" update has installed about 4 times, and is asking to be installed again? There's no indication that it fails the update so whats going on?

    I saw the set hibernet mode to 0 trick and it failed.  Guess I can try 3 because reinstalling OS X did nothing but cost me another few hours and a little faith in Apple.  Getting annoyed as I see how many people complain of the identical issue and the fixes are variable and random.  Suggests to me that it is a major design flaw in the hardware and Apple got too cute with the just works idea and didn't put a damned power button on the display so there is no manual way to do it and no 'insert a pin here' type trick to reset the thing.
    Asking for a refund tomorrow.  Past the 14 days so maybe they'll say no but if so then every time this happens I will swap it out.  At least then I know it is a three hour fix and as I was working on this for hours today it occurred to me that if the trick is to do 57 different things and maybe one will work then that is not why I made the switch to Apple.  I could plug everything in on my PC and it all 'just worked'.
    Really poor customer service - the support folks are very nice and I am sure they know that this is a systemic issue but aren't allowed to say so.  Feeling pretty stupid for going on faith right about now.

  • I have been using Pages and after sleeping it will not show a cursor in a new document.  Using Lion

    I was using Pages, put the computer to sleep, and after waking it and going to Pages, it would not show a cursor in a blank document and most of the commands were grayed out.

    Carolyn,
    It seems that when you woke up you were in a Pages Layout Template, rather than the word processing template you are more accustomed to.
    Jerry

  • Mountain Lion will kill your wifi connection

    This sucker do recognise my WiFi???

    Sorry but it is very hard to understand what you are saying. Your sentences do not make any sense.
    If you have an issue describe it in more detail and maybe someone here can help you.
    With 4 million downloads of Mountain Lion I suspect there are very few who are having problems.

  • Mountain Lion on iMac with no SSD - why is Power Nap forcing my computer to sleep?

    I have an iMac purchased in mid-2011.  It has no SSD.  So why is it going to sleep when tasks are still running?  If I'm encoding a video in HandBrake, downloading files in Firefox or Chrome, etc...the computer goes to sleep, despite the fact that it's still doing something.  Why is this?  If my iMac is not Power Nap capable, shouldn't it use the old method for determining whether or not to go to sleep?  Why can't we choose between Power Nap and previously functioning sleep behavior?

    Lanny wrote:
    Maybe this will help: http://forum.serviio.org/viewtopic.php?f=5&t=7791
    I am unclear on how that will help.  It is a link to a post from a user on a non-Apple website whose first and only post is about how this problem exists.  And I assume if you're referring to the Apple Discussion thread that other post links to, you would have just posted that link instead. 
    If you intended to link to that other Apple Discussion thread, from that discussion thread, Apple told one user, "Apps need to use power assertions while engaged on activities that should not be interrupted and we are working to evangelize this." meaning that Apple realizes they haven't done a good job of letting developers know of this; and that was from October 18, 2012, nearly 3 months after Mountain Lion's release date and I believe nearly 8 months after the first developer preview.  So by Apple's own admission they haven't done a good job regarding this issue.
    However, that does explain why Mountain Lion is behaving the way it did.  Both Apple and developers dropped the ball on this given that major apps (Firefox, Chrome, etc...) still don't implement Apple's new method of power saving.

  • Power Nap is not working? and I cannot turn it on or off?

    I Have no option in power saver about power nap and it has not been updating when put to sleep.
    I am on a MacBook Pro

    Welcome to Apple Communities
    This feature is for Mid 2011 or later MacBook Air and Retina MacBook Pro

  • Safe Sleep Does Not Appear to be Working

    Dear Forum,
    I using a 2.33GHz MacBook Pro 17” 3GB RAM 10.6.2 (FireWire HDD Start up (Boot) via a FireWire 6 port hub).
    I have calibrated the battery (after replacing the original) on three occasions, however the system does not restore from the point just prior to the battery turning the system off. Instead after the battery is drained completely (after 6 hours or so) and after plugging in the charger and pressing the power button I get a grey screen, then after a few seconds the screen goes black then I hear the boot up chime and the apple logo appears.
    I thought the system was able to remember where it was before the battery drained.
    I have used this command in Terminal:
    pmset -g | grep hibernatemode
    and have received this in reply:
    hibernatemode 3
    but as I am using Secure Virtual Memory, I read I needed to use mode 7 so I tried…
    sudo pmset -a hibernatemode 7
    which returned:
    hibernatemode 7
    so it looks like I entered the correct command.
    Furthermore, it would appear that something is happening when I choose sleep, as the Mac takes anywhere up to 30 seconds to do as I ask. (This from the sounds of it (literally) is doing what it should do (writing its current state to the drive), as I can hear the G-Drive Mini working away.)
    Q1: Have I entered the correct command? (I am not fluent in the language, I was merely following directions.) (Is this command correct for this Mac?)
    Q2: Can the MacBook Pro enter hibernate mode when booted from an external Firewire drive (G-Tech Mini 250GB (GUID partition))?(Apple says using a FireWire Drive to boot from is OK, at least from what I have read, so I am assuming they would have looked into various usage possibilities (Hibernate (Safe Sleep) mode, one would think is a usage possibility.))
    Q3 I would prefer not to use third party software (Deep Sleep, Smart Sleep) unless I am absolutely forced in to it, as this function is written into the system (therefore should work without third party controls), so can this issue be solved with the setup I have?
    Q4: Have I missed the point somewhere, or misunderstood, what the hibernate mode (safe sleep) is all about and in fact I am asking too much to expect the system to remember where it was after completely draining the battery? (Yet I don’t believe I have misread the following: http://support.apple.com/kb/HT1757)
    I would very much like to get this operational as you can imagine as it is an incredibly useful feature.
    Thanks.

    Well the solution is: Restore from Time Machine to MacBook Pro internal HDD and Safe Sleep functions correctly.
    Now how do I get a bigger HDD into the Mac...

Maybe you are looking for

  • Installation order is locked by user after status change

    Hi Experts, As we confirm the proof of delivery in R3, I am changing the status of CRM installation order as delivered thro badi for that I am using FM CRM_ORDER_MAINTAIN then FM CRM_ORDER_SAVE and then doing commit work. But after changing the statu

  • Does anyone know how to auto backup?

    i have an 80 GB external drive and i was wondering if i could schedule automatic backups to that drive of my itunes library. is this possible?

  • Aperture 2 raw files end up iDisk jpg files

    When I click and drag (as directed by the help directory) my photo files from Aperture to the picture folder in iDisk, it drags the small image file and not the Raw master file. Example: The master CR2 file for an image is 11.36 MB in the Aperture me

  • Broadcasting BW-Workbook help needed

    Hi All, When I try to execute the broadcast settings in the Web Application Designer for a BW-Workbook 'Active RFC server could not be found' error appears. Along with 'An error occurred while processing CL_RSRD_PRODUCER_EXCEL, type PROD'. As I don't

  • Switching Libraries using iPod

    I have looked aroundthe site trying to find out how to switch my library from my PC to my new laptop. Can anyone help me out here with my situation?????