[Bug 1200044] Re: update-motd-updates-available wastes 1 second on every login by forking hundreds of /usr/bin/stat

Launchpad Bug Tracker 1200044 at bugs.launchpad.net
Tue Jul 16 07:13:58 UTC 2013


This bug was fixed in the package update-notifier - 0.142

---------------
update-notifier (0.142) saucy; urgency=low

  [ Anders Kaseorg ]
  * update-motd-updates-available: Avoid forking hundreds of /usr/bin/stat
    (LP: #1200044)
 -- Michael Vogt <michael.vogt at ubuntu.com>   Mon, 15 Jul 2013 09:12:52 +0200

** Changed in: update-notifier (Ubuntu)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1200044

Title:
  update-motd-updates-available wastes 1 second on every login by
  forking hundreds of /usr/bin/stat

Status in “update-notifier” package in Ubuntu:
  Fix Released

Bug description:
  The /usr/lib/update-notifier/update-motd-updates-available script
  executed on console logins is painfully slow, taking almost a second
  to run.  Debugging reveals that this is because it forks /usr/bin/stat
  hundreds of times.

  The entire NEED_UPDATE_CHECK logic can be replaced with a single call
  to find -newer, which speeds up the script by a factor of 20.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1200044/+subscriptions




More information about the foundations-bugs mailing list