Delay start of gnome-software service

Bug #1756379 reported by Jean-Baptiste Lallement on 2018-03-16
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Medium
Unassigned
Xenial
Medium
Unassigned
Bionic
Medium
Robert Ancell

Bug Description

[Impact]
On a default Bionic Desktop installation, gnome-software starts early and slows down session startup. In the bootchart attached, it overlaps with gnome-shell startup which is also resource intensive.
With gnome-software delayed gnome-shell starts 2 seconds faster.

gnome-software service startup should be delayed if it cannot be stop completely.

[Test Case]
1. Login to the default session
2. After 60 seconds confirm their is a gnome-software process running

Expected result:
The gnome-software process should be running in the background allowing to search for apps in the gnome-shell search

Observed result:
Works as expected (i.e. only looking for regressions).

[Regression Potential]
Very low, the change is very simple and well known method to delay autostart. If it doesn't actually start, it will be dbus activated on the first attempt to search which would just cause a slight delay in getting results

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-software 3.28.0-0ubuntu3
ProcVersionSignature: Ubuntu 4.15.0-10.11-generic 4.15.3
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Mar 16 17:11:41 2018
InstallationDate: Installed on 2013-09-03 (1654 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
InstalledPlugins:
 gnome-software-plugin-flatpak 3.28.0-0ubuntu3
 gnome-software-plugin-limba N/A
 gnome-software-plugin-snap 3.28.0-0ubuntu3
ProcEnviron:
 TERM=screen-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-software
UpgradeStatus: Upgraded to bionic on 2018-01-26 (49 days ago)

Jean-Baptiste Lallement (jibel) wrote :
Jean-Baptiste Lallement (jibel) wrote :

in this bootchart the system is quiet after 49s if gnome-software service is delayed by 1 minute.

description: updated
tags: added: rls-bb-incoming
Sebastien Bacher (seb128) wrote :

Thanks, that makes sense I think, you tested adding an X-GNOME-Autostart-Delay key to the autostart desktop right and that worked?

Jean-Baptiste Lallement (jibel) wrote :

Yes, this is the desktop file I used:
"""
[Desktop Entry]
Type=Application
Name=GNOME Software
X-GNOME-Autostart-Delay=60
Exec=/usr/bin/gnome-software --gapplication-service
OnlyShowIn=GNOME;Unity;
NoDisplay=true
"""

I tried with 60s but it can probably be more. The drawback is that gnome-software is used as a search provider and package search won't be available until it's running.

Jeremy Bicha (jbicha) wrote :

Just for clarity, was your test done on a computer with a traditional hard drive or solid state drive?

Jean-Baptiste Lallement (jibel) wrote :

A rotational hard drive

Will Cooke (willcooke) on 2018-03-20
Changed in gnome-software (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
importance: Undecided → Medium
Iain Lane (laney) on 2018-03-20
tags: removed: rls-bb-incoming
Iain Lane (laney) wrote :

I just saw that kalev proposed turning it off altogether on the Fedora live CD

https://pagure.io/fedora-kickstarts/pull-request/368#request_diff

...maybe we should?

Will Cooke (willcooke) wrote :

+1 - I dont think there is a huge benefit to have it auto-start in the live session and starting the live session quicker seems more useful.

Jeremy Bicha (jbicha) wrote :

Disabling the gnome-software autostart for our live image sounds like a great idea to me.

+1, I filed a separate report in bug 1758920.

Iain Lane (laney) wrote :

right, then we don't need to do this

Changed in gnome-software (Ubuntu Bionic):
status: New → Won't Fix

We still do. That's 2 different things:
- This bug is to improve the session startup time of an installed system
- Bug 1758920 is to lighten the load on the live session. I don't think we want to disable the service on an installed system.

Changed in gnome-software (Ubuntu Bionic):
status: Won't Fix → Triaged
Iain Lane (laney) wrote :

ok, I thought this was about a live session too.

It being about the installed system changes my assessment a bit. In particular, I think it should be discussed with upstream before we press ahead with changing anything about this bug in Ubuntu, whereas the live environment is more special so it's often more okay to do hacks there.

So, please file a bug upstream or come to #gnome-software or post on the ML for a chat.

Robert Ancell (robert-ancell) wrote :

Assigning myself as there doesn't seem to be a clear decision on if we want this or not (I have not strong opinion either way).

Changed in gnome-software (Ubuntu):
assignee: Robert Ancell (robert-ancell) → nobody
Changed in gnome-software (Ubuntu Bionic):
assignee: Robert Ancell (robert-ancell) → nobody
Robert Ancell (robert-ancell) wrote :

Unassigning myself I mean.

Robert Ancell (robert-ancell) wrote :

The autostart delay feature never made it upstream [1], so there's not really anything worth discussing with the GNOME Software developers. I figure we just upload it for Ubuntu and then it's in the queue of things to discuss at some point.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=608402

Changed in gnome-software (Ubuntu):
status: New → Triaged
Changed in gnome-software (Ubuntu):
status: Triaged → Fix Committed
Changed in gnome-software (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Medium
Robert Ancell (robert-ancell) wrote :

@jibel - can you update the bug description to be suitable for SRU?

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-software - 3.29.1-0ubuntu3

---------------
gnome-software (3.29.1-0ubuntu3) cosmic; urgency=medium

  * debian/patches/0020-Delay-startup-of-GNOME-Software-to-allow-the-Shell-t.patch:
    - Delay startup of service to allow the shell to load first (LP: #1756379)

 -- Robert Ancell <email address hidden> Mon, 25 Jun 2018 16:23:54 +1200

Changed in gnome-software (Ubuntu):
status: Fix Committed → Fix Released
Changed in gnome-software (Ubuntu Bionic):
assignee: nobody → Robert Ancell (robert-ancell)
Changed in gnome-software (Ubuntu Bionic):
status: Triaged → Fix Committed
Changed in gnome-software (Ubuntu Xenial):
status: Triaged → Won't Fix
Łukasz Zemczak (sil2100) wrote :

This bug is missing SRU information in its description. Could you add a test case and a regression potential analysis? I'll review it then ASAP. Thank you!

description: updated

Hello Jean-Baptiste, or anyone else affected,

Accepted gnome-software into bionic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnome-software/3.28.1-0ubuntu4.18.04.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-bionic
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.