Launchpad has imported 1 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=48177.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-04-02T09:29:06+00:00 Vadim Rutkovsky wrote:

Original report: https://bugs.launchpad.net/bugs/941673

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 getgrouplist 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.

Reply at:
https://bugs.launchpad.net/accountsservice/+bug/941673/comments/4


** Changed in: accountsservice
       Status: Unknown => Confirmed

** Changed in: accountsservice
   Importance: Unknown => Medium

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

Title:
  performance of accounts-daemon is very poor

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to