From: Michael Loftis (no email)
Date: Thu Oct 05 2006 - 17:37:16 EDT
--On October 5, 2006 4:46:54 PM -0400 Chaskiel M Grundman
<> wrote:
>
>
> mynewstate is taking 8s to run, and very little of the time is taken up
> in local subroutines.
> auth_unix.c:mynewstate calls getpwnam, and then iterates over all the
> groups using getgrent(),
> checking to see what groups the user is in. The fact that imapd does this
> twice might be a bug, but even if it didn't do it twice, it would still
> be slow.
>
> Is running "getent group" slow?
We had to patch this out of our Cyrus frontends using LDAP as well because
it iterates instead of retrieves. We just decided not to support groups in
the ACL's.
I'd suspect this is exactly whats going on is this code is still there in
latest Cyrus and it's building the ACL representation. If you don't care
about groups you can find, and remove, that code as we did.
---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
|
|
|