Consumes too many resources detecting OS vendor and version

Bug #317652 reported by Scott James Remnant (Canonical)
2
Affects Status Importance Assigned to Milestone
jockey (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Jockey calls lsb_release on startup to identify the OS vendor and version that it is running on. This is prohibitively expensive.

This is a jockey bug because the package itself could have that information hard-coded, it does not need to be dynamic. There's no resume to presume that the machine will change from Ubuntu to Slackware overnight, and any version update would assumedly also be accompanied by a jockey update.

I appreciate you might be unhappy hardcoding it, but you do need to find a cheaper way than spawning lsb_release!

Changed in jockey:
importance: Undecided → High
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

This seems to be an issue with everything calling lsb_release. Perhaps lsb_release should be re-written in something like C so that it doesn't need a full Python interpreter to run

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

In fact, Martin already responded to a similar request in bug 262050

Revision history for this message
Martin Pitt (pitti) wrote :

This is mitigated by the change I just did which doesn't start jockey at session startup any more if it ran once. Other than that, dupe of 262050.

Changed in jockey:
importance: High → Low
status: New → Triaged
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

I disagree that this is a duplicate, in fact you'll note that I filed this bug *after* fixing the bug you think it is a duplicate.

Read what I wrote.

My assertion is that jockey need not attempt to identify the OS vendor or version on startup at all, ever. This can be done at build time.

Revision history for this message
Martin Pitt (pitti) wrote :

Ok, if you insist. :-) It's very cheap now, though, and jockey doesn't run at every session start, so this is really just cosmetical.

Changed in jockey:
importance: Low → Wishlist
Revision history for this message
dino99 (9d9) wrote :

Jockey has been superseded by software-properties, which now handles
third-party driver configuration.

Changed in jockey (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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