My dev workstation (MBP 2012, 2.5Ghz i5, 16Gb, 500Gb HDD) is incredibly slow booting up to the point I'm terrified of rebooting it. Every now and again it crashes or refuses to wake (maybe once every 2-3 weeks), and the reboot is required. When OS or other app store updates are involved reboots are also necessary then as well.
Roughly the boot up time comprises of 3 visible phases:
- 10-15 minutes after the initial turn-on/login on, on the grey background with spinner/throbber
- 1-2 minutes for the desktop background to appear and icons, app windows to appear. The windows are generally blank and not usable, although I can drag them around.
- 10 minutes for apps to actually become responsive and for the OS to be usable.
I had the problem on the old install of 10.6, and I have it now on 10.9 which I've been running for probably a year or so.
Once the system has booted, it is generally quite usable, although I do get slow downs if I run too many VMs and apps at the same time, but this isn't anything I wouldn't expect given the lack of solid state.
While I fully expect to upgrade to an SSD any day now, I'd love to be able to diagnose this issue and understand what's going on. The fact that it affects multiple stages of the boot process tells me it's probably not just one specific item, and really feels like a massive fragmentation issue. As I understand it though, OSX should not be susceptible to fragmentation? Alternatively I suppose it could be a massive page file? Given I'm running 16Gb though, I'd like to think I'm not thrashing very much.
Thanks to @CML's comment about Disk integrity, I ran a Verify Disk, and got the following:
Checking extended attributes file. Volume bitmap needs minor repair for orphaned blocks Checking volume information. Invalid volume free block count (It should be 12269746 instead of 11497979) (It should be 12269746 instead of 11497979) (It should be 12269746 instead of 11497979) The volume Macintosh HD was found corrupt and needs to be repaired. Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
Ran Repair Disk, this alters the boot up phase times to:
- 2-3 minutes (down from 10-15 minutes)
- 1-2 minutes (no change)
- 10 minutes (no change)
So a marked improvement, but it still seems as though something is pretty messy somewhere.