www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-8951) Very slow login to people; very slow when converting ids to names
Date Tue, 30 Dec 2014 04:37:14 GMT

    [ https://issues.apache.org/jira/browse/INFRA-8951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14260780#comment-14260780

Sebb commented on INFRA-8951:

Would it help to populate the /etc/group and /etc/passwd files from LDAP?

It looks like ls -l uses those in preference, because "ls -l /home/voter" is very quick, and
its gid/uid are in the files.

Whereas most other logins have at most one of the gid/uid defined locally, and listings take
a couple of seconds.

Since personal uid/gids are very unlikely to change, adding them to the files should not be
a problem.

> Very slow login to people; very slow when converting ids to names
> -----------------------------------------------------------------
>                 Key: INFRA-8951
>                 URL: https://issues.apache.org/jira/browse/INFRA-8951
>             Project: Infrastructure
>          Issue Type: Bug
>            Reporter: Sebb
>            Assignee: Chris Lambertus
> Logins to people have become very slow recently.
> Also I've noticed that running "ls -l" takes much longer than "ls -ln".
> The conversion of gid/uid to names seems to be the culprit here as "ps -u" is also very
> I assume this is due to the use of LDAP.
> Is there anything that can be done to speed this up?
> Perhaps some kind of caching mechanism for the gid/uid parts of LDAP.
> These don't tend to change once created, but additions obviously do occur.

This message was sent by Atlassian JIRA

View raw message