LOGIN is slow!

Discussion in 'macOS' started by alexus, May 3, 2010.

  1. alexus macrumors member

    Joined:
    Jul 12, 2006
    #1
    my computer takes pretty long time to boot up and even though there is not much under /Library/StartupItems/ it still takes too much time...

    mbp:~ alexus$ ls -la /Library/StartupItems/
    total 0
    drwxr-xr-x 6 root wheel 204 May 3 13:18 ./
    drwxrwxr-t+ 70 root admin 2380 Mar 12 11:42 ../
    drwxr-xr-x 8 root wheel 272 Oct 26 2009 IPSecuritasDaemon/
    drwxr-xr-x 5 root wheel 170 Apr 19 12:31 VirtualBox/
    drwxr-xr-x 5 root wheel 170 Sep 23 2009 tap/
    drwxr-xr-x 5 root wheel 170 Sep 23 2009 tun/
    mbp:~ alexus$

    where else I can look what's being executed upon boot? because under process I see BlackBerry's Daemon (I'm no longer BlackBerry user, I'm okay to leave Application, but I don't want it to boot up during startup) and I'm pretty sure there is other stuff as well...
     
  2. Hellhammer Moderator

    Hellhammer

    Staff Member

    Joined:
    Dec 10, 2008
    Location:
    Finland
    #2
    System Preferences -> Startup disk -> Select you OS X disk and reboot

    If still slow, repair permissions with Disk Utility
     
  3. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #3
    A permissions repair will not fix a slow boot.

    OP:

    /System/Library/LaunchDaemons (Apple startup daemons)
    /Library/LaunchDaemons (3rd party startup daemons)
    /System/Library/StartupItems (older items not updated to launchd, started by /sbin/SystemStarter)
    /Library/StatupItems (older items not updated to launchd, started by /sbin/SystemStarter)

    Start your computer with verbose mode by holding Command + V, take note of any items that hang or any errors. You will find those items in the folders above, update or remove them.
     
  4. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #4
    already did that, yet same thing
     
  5. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #5
    Did you read and try what I posted?
     
  6. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #6
    yes, i did
     
  7. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #7
    And....
     
  8. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #8
    and it didn't help at all
     
  9. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #9
    So you booted verbosely and you didn't find anything?

    And you looked in the folder paths I gave for possible offending items?

    What I suggested is the way to determine software based boot problems. I cannot believe you tried and came up with nothing. It is not a "one click" fix, you have to actually figure it out yourself. So if it didn't help at all that means you didn't try hard enough.

    The Blackberry software is likely a LaunchAgent and would not affect boot up since LaunchAgents are called by the user launchd. However, you won't know unless you look.
     
  10. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #10
    i ran verbose mode and i didn't see anything that would bring my attention, but it seems like once i'm in OS X thats when it's slow not before boot, boot itself happening fast
     
  11. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #11
    Why did you title the thread "booting slow" then?

    You need to look at LaunchAgents

    /Library/LaunchAgents (All Users)
    ~/Library/LaunchAgents (Your User)

    Check console for errors.
     
  12. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #12
    maybe this would help

     
  13. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #13
    I can't tell you what is slowing you down. I can tell you that you need to look in:

    ~/Library/LaunchAgents
    /Library/LaunchAgents

    The best place to look for issues is in Console.app. Search for the items you found in the two folders above. See if there are any errors listed.
     
  14. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #14
    because from the moment when i press power on till the time i can do something, i call it booting process

    I see bunch of stuff in this directory i dont know what i should get rid of and what to keep but i guess i'm going have to play w/ it...
     
  15. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #15
    Are you using auto-login?
    If so.. Turn that off to identify if the BOOT process is slow, or the LOGIN process is slow.
     
  16. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #16
    Well, for future reference the boot process is divided into System Initialization and the User Session.

    The User Session begins when the system launchd calls the loginwindow. My guess is your are using auto-login which makes it all seem like one process.

    Open /Applications/Utilities/Console.app and look at the logs to find out what is causing the problem. It is best to do this just after login is finished.

    It may not be LaunchAgents at all, so you may need to disable automatic login and try Safe Login to rule that out.

    I cannot tell you what the problem is by looking at ls output. If you are not using the BlackBerry software, you can trash the LaunchDaemon and the LaunchAgent.
     
  17. alexus thread starter macrumors member

    Joined:
    Jul 12, 2006
    #17
    I don't use auto-login.

    I see a lot of stuff, kind of hard to identify what is what...

    What's Safe Login?

    I just disabled a lot of it by moving these files out

    after reboot, it seems a lot quicker...
    not sure if there is more stuff i need to do to clean more stuff up

    i guess LOGIN is a correct term for that
     
  18. calderone macrumors 68040

    calderone

    Joined:
    Aug 28, 2009
    Location:
    Seattle
    #18
    Then it should be clear that boot and login are separate concepts.


    Then you search for specific items, namely those you found in the LaunchAgent folders.

    Hold Shift before clicking the login button, this will instruct peruser launchd to ignore all LaunchAgents. This is one way to determine if LaunchAgents are the problem.

    This is a common technique, albeit it is probably more work than required.

    Now, if you want to determine which LaunchAgent is causing the problem you can drop one in, logout and then login. Repeat this until things slow down to the previous levels. The last one you put in is probably the one causing the problem.

    You probably could have figured it out by looking in Console, but this will work too.
     

Share This Page