[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
** Changed in: ubuntu-boot-speed Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
** Branch linked: lp:ubuntu/gnome-desktop3 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
This bug was fixed in the package gnome-desktop3 - 3.1.92-0ubuntu2 --- gnome-desktop3 (3.1.92-0ubuntu2) oneiric; urgency=low * Fix LP: #854101 * debian/patches/01_avoid_refresh_on_config_apply.patch.patch: - In gnome_rr_config_apply_from_filename_with_time(), don't call gnome_rr_screen_refresh(). This is pointless due to the async nature of X, and the protocol already guards agains the possiblilty that the client view of the display configuration is out-of-date. This function is also called 3 times during the critical path at startup by gnome-settings-daemon (for each possible display config file), which wastes around 1.5s -- Chris Coulson chris.coul...@canonical.com Thu, 22 Sep 2011 15:29:40 +0100 ** Changed in: gnome-desktop3 (Ubuntu Oneiric) Status: Triaged = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
This bug was fixed in the package gnome-settings-daemon - 3.1.92-0ubuntu3 --- gnome-settings-daemon (3.1.92-0ubuntu3) oneiric; urgency=low * Fix LP: #854101 - various startup time improvements: * debian/patches/46_share_rr_screen.patch: - Share a single GnomeRRScreen across plugins, rather than having the xrandr, color and power plugins each create their own, which results in 3 reprobes before running the main loop. Thanks to Rodrigo Moya for tidying this up a bit. * debian/patches/47_delay_pa_connect_to_idle.patch: - Don't connect to pulseaudio until we are running the main loop. Starting pulseaudio seems to block for around a second here on my machine * debian/patches/48_register_client_before_idle_callbacks.patch: - Create the GDBusProxy for gnome-session synchronously, and then schedule the RegisterClient call with a higher priority. This ensures that we register with the session manager as soon as we start the main loop, and before running any other idle callbacks * debian/patches/16_use_synchronous_notifications.patch: - Make the volume notifications work correctly again -- Chris Coulson chris.coul...@canonical.com Thu, 22 Sep 2011 15:44:40 +0100 ** Changed in: gnome-settings-daemon (Ubuntu Oneiric) Status: Triaged = Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
** Branch linked: lp:ubuntu/gnome-settings-daemon -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
** Branch linked: lp:~ubuntu-desktop/gnome-settings-daemon/ubuntu -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
** Changed in: gnome-settings-daemon (Ubuntu Oneiric) Importance: Undecided = High ** Changed in: gnome-settings-daemon (Ubuntu Oneiric) Assignee: Canonical Desktop Team (canonical-desktop-team) = Chris Coulson (chrisccoulson) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
Ok, so here it is again with the media-keys initialization deferred to the main loop. The session loading time is looking much etter, but still too slow ;) Here is the profiling log this time (up until the main loop runs): 0.00 0.00 MARK: (null) main: start 0.71 0.71 MARK: (null) parse_args: start 0.007133 0.007062 MARK: gnome-settings-daemon parse_args: end 0.007147 0.14 MARK: gnome-settings-daemon main: start opening gtk display 0.017005 0.009858 MARK: gnome-settings-daemon main: end opening gtk display 0.017275 0.000270 MARK: gnome-settings-daemon main: start gnome_settings_manager_new 0.017582 0.000307 MARK: gnome-settings-daemon main: end gnome_settings_manager_new 0.017598 0.16 MARK: gnome-settings-daemon gnome_settings_manager_start: start 0.017605 0.07 MARK: gnome-settings-daemon gnome_settings_manager_start: start initializing plugins 0.018212 0.000607 MARK: gnome-settings-daemon _load_all: start 0.018224 0.12 MARK: gnome-settings-daemon _load_dir: start 0.018293 0.69 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/sound.gnome-settings-plugin 0.018344 0.51 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/sound.gnome-settings-plugin 0.018489 0.000145 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/sound.gnome-settings-plugin 0.018908 0.000419 MARK: gnome-settings-daemon _load_file: end /usr/lib/gnome-settings-daemon-3.0/sound.gnome-settings-plugin 0.018924 0.16 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/cursor.gnome-settings-plugin 0.018931 0.07 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/cursor.gnome-settings-plugin 0.019000 0.69 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/cursor.gnome-settings-plugin 0.019058 0.58 MARK: gnome-settings-daemon _load_file: end /usr/lib/gnome-settings-daemon-3.0/cursor.gnome-settings-plugin 0.019071 0.13 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/ubuntuone.gnome-settings-plugin 0.019076 0.05 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/ubuntuone.gnome-settings-plugin 0.019126 0.50 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/ubuntuone.gnome-settings-plugin 0.019158 0.32 MARK: gnome-settings-daemon _load_file: end /usr/lib/gnome-settings-daemon-3.0/ubuntuone.gnome-settings-plugin 0.019169 0.11 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/clipboard.gnome-settings-plugin 0.019174 0.05 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/clipboard.gnome-settings-plugin 0.019270 0.96 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/clipboard.gnome-settings-plugin 0.019306 0.36 MARK: gnome-settings-daemon _load_file: end /usr/lib/gnome-settings-daemon-3.0/clipboard.gnome-settings-plugin 0.019318 0.12 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/xsettings.gnome-settings-plugin 0.019322 0.04 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/xsettings.gnome-settings-plugin 0.019419 0.97 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/xsettings.gnome-settings-plugin 0.019454 0.35 MARK: gnome-settings-daemon _load_file: end /usr/lib/gnome-settings-daemon-3.0/xsettings.gnome-settings-plugin 0.019466 0.12 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/background.gnome-settings-plugin 0.019471 0.05 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/background.gnome-settings-plugin 0.019567 0.96 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/background.gnome-settings-plugin 0.019623 0.56 MARK: gnome-settings-daemon _load_file: end /usr/lib/gnome-settings-daemon-3.0/background.gnome-settings-plugin 0.019635 0.12 MARK: gnome-settings-daemon _load_file: start /usr/lib/gnome-settings-daemon-3.0/smartcard.gnome-settings-plugin 0.019640 0.05 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: start /usr/lib/gnome-settings-daemon-3.0/smartcard.gnome-settings-plugin 0.019710 0.70 MARK: gnome-settings-daemon gnome_settings_plugin_info_fill_from_file: end /usr/lib/gnome-settings-daemon-3.0/smartcard.gnome-settings-plugin 0.019768
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
The xrandr plugin tries to apply each configuration (backup, intended, default) in turn, and takes half a second for each one even when they don't exist. This seems to be because each call to gnome_rr_config_apply_from_filename_with_time does a gnome_rr_screen_refresh. We should fix it to check if there is even a configuration file first, and then skip all of that if there isn't ** Also affects: gnome-desktop3 (Ubuntu) Importance: Undecided Status: New ** Changed in: gnome-desktop3 (Ubuntu Oneiric) Importance: Undecided = High ** Changed in: gnome-desktop3 (Ubuntu Oneiric) Status: New = Triaged ** Changed in: gnome-desktop3 (Ubuntu Oneiric) Assignee: (unassigned) = Chris Coulson (chrisccoulson) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
So, I've got gsd startup down from 5s to ~0.8s now. Using unity-2d here, my entire session is usable ~2.5s, after entering my password ** Attachment added: farnsworth-oneiric-20110920-8.png https://bugs.launchpad.net/ubuntu/oneiric/+source/gnome-desktop3/+bug/854101/+attachment/2431611/+files/farnsworth-oneiric-20110920-8.png -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
Ok, I've uploaded gnome-desktop and gnome-settings-daemon packages to the ubuntu-desktop PPA [1] now. I'd appreciate some testers for those, just to make sure I've not broken anything and to see if other people get some startup time wins too [1] - https://launchpad.net/~ubuntu-desktop/+archive/ppa/ -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
the updates work fine for me and reduced the login time from 5 seconds to 3.5 seconds on my config. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
in fact the libgnome-desktop-3-2 update leads to have the xrandr session config not applied at login so there is a bug there -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
I've fixed that problem now :) One thing I've noticed, is that gsd is still calling XRRGetScreenResources twice if you have a monitor config (monitors.xml - ie, you have this if you've ever changed your display configuration), because gnome_rr_config_apply_from_filename_with_time() does gnome_rr_screen_refresh() before doing anything else. It seems a bit unnecessary to do this more than once at session start, and it sucks that people who have ever changed a monitor setting are hit by that. What we need is a ubuntu_rr_config_apply_from_filename_with_time_without_refresh() for gsd to call ;) /me runs and hides -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
Sorry, thinking out aloud now ;) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
In fact, isn't this refresh totally bogus anyway? After all, with X being asynchronous anyway, the information could already be out-of-date on the server by the time we've finished the XRRGetScreenResources call. And for applications that call gnome_rr_config_apply_from_filename_with_time from some event source off its main loop, then gnome-desktop already refreshes it's state from the server on each RRScreenChangeNotify notification anyway. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
** Also affects: ubuntu-boot-speed Importance: Undecided Status: New ** Changed in: gnome-settings-daemon (Ubuntu Oneiric) Status: New = Triaged ** Changed in: ubuntu-boot-speed Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
No surprises, but the biggest culprit in both the color and power plugins are gnome_rr_screen_new, accounting for almost all of that 1 second -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
I tried sharing a single GnomeRRScreen instance between plugins, and it shaves a fair bit of time off (it certainly gets rid of the 1 second from the power/color plugins. This bootchart seems to suggest it saves even more though, although I think that's more likely to be some anomaly, like not having my external screen attached) ** Attachment added: Sharing a GnomeRRScreen instance across plugins https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/854101/+attachment/2428809/+files/farnsworth-oneiric-20110920-1.png -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
Actually, I misread the bootchart - I measured up until pulseaudio starting, rather than compiz. That makes more sense now - my change saved over a second compared to the original bootchart -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 854101] Re: gnome-settings-daemon takes waaaaaaaay too long to start
I think we can probably defer the media-keys plugin intialization too, which is what starts Pulseaudio. I just noticed that's adding another second: 4.361620 1.100791 MARK: gnome-settings-daemon gsd_media_keys_manager_start: end gvc_mixer_control_new -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/854101 Title: gnome-settings-daemon takes wy too long to start To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-boot-speed/+bug/854101/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs