← Back to team overview

desktop-packages team mailing list archive

[Bug 941673] Re: performance of accounts-daemon is very poor

 

oneiric has seen the end of its life and is no longer receiving any
updates. Marking the oneiric task for this ticket as "Won't Fix".

** Changed in: accountsservice (Ubuntu Oneiric)
       Status: Triaged => Won't Fix

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to accountsservice in Ubuntu.
https://bugs.launchpad.net/bugs/941673

Title:
  performance of accounts-daemon is very poor

Status in D-Bus interfaces for querying and manipulating user account information:
  Confirmed
Status in accountsservice package in Ubuntu:
  In Progress
Status in accountsservice source package in Oneiric:
  Won't Fix
Status in accountsservice source package in Precise:
  In Progress

Bug description:
  Version 11.10

  
  The performance of accounts-daemon is unacceptable with large password and/or group files. We have appoximately 40000 users in the passwords file and 16000 lines in the group file. Having looked at the source, it appears to me the problem is that for each user is pulls from the password database (via getpwXXX)  its then calls getgroups to return the users list of groups.

  Getgroups must make a complete pass through the group file to determine the groups for the user. When initializing this results in
  reading the groups file 40000 times.

  I think a better solution is to build a inverted group file map then first time getgroups is called by reading the entire group database and building a data structure indexed by username where a users group list can by found in a single lookup.
  Of couse, an even better solution would be for getgroups to do that itself, but that would require much larger code changes.

  I tried installed nscd to see if this would make a difference but no
  dice.

  At the moment, 11.10 is unusable for us because of this problem.

  Hope this is all the info you need.

  Regards, pdg

  pdg@xxxxxxxxxx

To manage notifications about this bug go to:
https://bugs.launchpad.net/accountsservice/+bug/941673/+subscriptions