← Back to team overview

dx-packages team mailing list archive

[Bug 1063394] Re: HUD is forking multiple copies of 'locate' ruining performance

 

** Package changed: indicator-appmenu (Ubuntu) => unity-scope-home
(Ubuntu)

** No longer affects: indicator-appmenu

** Summary changed:

- HUD is forking multiple copies of 'locate' ruining performance
+ Scopes are forking multiple copies of 'locate' ruining performance

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-appmenu in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1063394

Title:
  Scopes are forking multiple copies of 'locate' ruining performance

Status in “unity-scope-home” package in Ubuntu:
  New

Bug description:
  When I type into the dash HUD the performance is terrible to the point
  of making the HUD unusable. I ran top while I was typing and I watched
  dash start up multiple copies of 'locate' as I typed into the HUD.

  Look at how much CPU time locate takes on my file system for a non
  existent string.....

  jonsmirl@terra:/var/lib/mlocate$ time locate dkdkdkddk
  real	0m4.913s
  user	0m4.864s
  sys	0m0.032s

  As I type three or four copies of 'locate' are getting spawned as the
  letters are typed in or I hit back space. The effect of this is to
  completely saturate my I7 CPU to the point of making the system
  unresponsive.

  1) don't start these incremental searches over the entire file system
  until you have at least four letters to work with. The results from
  less than four letters are useless because they will match too many
  files. Limit the short string searches to only installed applications.

  2) don't let multiple 'locate' commands get started. If you want to
  change the string make sure the prior locate is killed first.

  3) Get a project started for Ubuntu 13 where an incremental search
  feature is added to the 'locate' command.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: dash 0.5.7-3ubuntu1
  ProcVersionSignature: Ubuntu 3.5.0-17.27-generic 3.5.5
  Uname: Linux 3.5.0-17-generic x86_64
  ApportVersion: 2.6.1-0ubuntu1
  Architecture: amd64
  Date: Sun Oct  7 15:22:25 2012
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  SourcePackage: dash
  UpgradeStatus: Upgraded to quantal on 2012-09-18 (19 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scope-home/+bug/1063394/+subscriptions