BetterLoginSpeed

Differences between revisions 6 and 7
Revision 6 as of 2008-07-20 21:04:58
Size: 3759
Editor: cpc2-darl3-0-0-cust710
Comment:
Revision 7 as of 2008-07-29 20:29:07
Size: 3752
Editor: adsl-75-58-32-3
Comment: minor spelling
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
The time that ubuntu takes to go from the gdm login prompt to an usable desktop is too long, is should be made faster The time that Ubuntu takes to go from the GDM login prompt to a usable desktop is too long; it should be made faster.
Line 12: Line 12:
the intrepid login time has been reduced The time taken to login has been improved in Intrepid.
Line 16: Line 16:
Users don't like to wait for a minute before being able to use their computer and the slow loading is visually not nice Users don't like to wait for a minute before being able to use their computer. Slow loading is visually jarring.
Line 20: Line 20:
 * Daniel starts his work day, he turn on his computer and go to get a cup of coffee, when he comes back he expect to be able to read his mails and not to have to wait for an another 15 seconds  * Daniel starts his work day, he turn on his computer and go to get a cup of coffee, when he comes back he expect to be able to read his email without waiting another 15 seconds
  • Launchpad Entry: better-login-speed

  • Packages affected: xorg, gdm, gnome-settings-daemon, compiz, gnome-session, gnome-control-center, jockey, evolution, tracker, network-manager, xdg-user-dirs-gtk, system-config-printer, gnome-screensaver

Summary

The time that Ubuntu takes to go from the GDM login prompt to a usable desktop is too long; it should be made faster.

Release Note

The time taken to login has been improved in Intrepid.

Rationale

Users don't like to wait for a minute before being able to use their computer. Slow loading is visually jarring.

Use Cases

  • Daniel starts his work day, he turn on his computer and go to get a cup of coffee, when he comes back he expect to be able to read his email without waiting another 15 seconds

Design

Several issues have been listed during the uds session and should be addressed

  • xorg is taking a lot of time to start
  • the gdmprefetch binaries seems to do nothing, it should either be fix or replaced
  • xrdb is ran 3 times at login, figure why and reduce the number of calls if possible
  • commands are running in a sequential way because they use the environment previously set
  • compiz is taking a lot of time and using the disk a lot
  • gnome-panel is light but applets are using the disk a lot
  • several processes using the disk at the same time is slower, the new gnome-session address that
  • gnome-at-visual is using gconftool
  • jockey-gtk is not delayed as expected
  • evolution-alarm should be started later
  • trackerd is still using lot of disk when it's told to do nothing
  • nm-applet should be started first
  • xdg-user-dir-gtk should run only if the language has changed and maybe go to gnome-settings-daemon
  • system-config-printer should be started after the desktop is loaded
  • gnome-screensaver not needed there

Implementation

The previously indicated issue should be investigated before determining what changes are required exactly

Comments

KamilPáral: ionice with idle priority could be used to load some files during periods of heavy cpu usage activity

KrisMarsh: I notice that when I log in currently, an applet (I think it may be the clock + weather lookup applet) blocks the top gnome panel and effectively disables it for a few seconds. It would be nice if this wasn't allowed to happen (maybe if gnome-panel loaded applets in a different thread or something?)

MertDirik: "* xrdb is ran 3 times at login, figure why and reduce the number of calls if possible" This document has the answer http://www.colitti.com/lorenzo/publications/gnome-sane.pdf

shaggy: My idea was to use the interactive login procedure time, when the system is idle, to readahead all files that will probably be needed. I reduced the login2desktop time from 54 seconds to 40 seconds that way. Using readahead-watch i created the list of files that are needed during my login-to-desktop phase. Then, i modified my gdm.conf with SoundProgram=/root/readahead.sh, where readahead-list reads all that files into the buffer/cache.

AlexJones2: Many GTK programs in the session start up before the settings manager is ready, so they get default settings including default theme engine, hicolor icon theme, etc., and then when the settings manager gets itself together, the programs then receive the user's preferred settings and then load ANOTHER theme engine ubuntu icon theme, etc. which is VERY expensive to do even once (just time how long even on an otherwise idle system it takes to change themes from, say, Clearlooks to Human in Appearance Switcher)


CategorySpec

BetterLoginSpeed (last edited 2009-09-23 15:25:42 by mail)