Bug 253871 - top generates nslcd 'Size limit exceeded' on userid->username mapping
Summary: top generates nslcd 'Size limit exceeded' on userid->username mapping
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-26 14:38 UTC by christian.schaettin
Modified: 2021-02-26 14:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christian.schaettin 2021-02-26 14:38:14 UTC
/usr/bin/top always asks for all usernames on userid->username mapping. For performance reason. See: root/contrib/top/username.c (L166)

But if you have an LDAP infrastructure with thousands of users than the request for all users will end up in:

nslcd[35022]: [99e99b] <passwd(all)> ldap_result() failed: Size limit exceeded

Therefor it would be better if the uid->username mapping is only for used uid's.