sudo update-software-center causes excessive stat()ing

Bug #697650 reported by Paul Sladen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Forwarded from bug #605048.

Running "sudo update-software-center" causes an excessive amount of re-stat()ing for a single translation-related file: it is stat()ing for 'app-install-data.mo' a quarter of a million times during the two-minute run:

  $ time sudo strace update-software-center 2>&1 | grep -c '^stat64.*app-install-data.mo'
  271169

  real 2m1.576s
  user 1m9.032s
  sys 0m49.031s

It is likely that this is indicative of an inefficiency somewhere in the process and that a good deal of the reported 'sys' time is probably spend handling those calls.

Paul Sladen (sladen)
description: updated
description: updated
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

This looks to be fixed:
------------
mpt@zephyr:~/hacking/software-center$ time sudo strace update-software-center 2>&1 | grep -c '^stat64.*app-install-data.mo'
[sudo] password for mpt:
[sudo] password for mpt:
0

real 1m47.475s
user 0m33.500s
sys 0m31.550s
------------

Please reopen if it's still happening for you.

Changed in software-center (Ubuntu):
status: New → Fix Released
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.