[Bug 266970] net/nss-pam-ldapd: Very slow startup on machines with lots of RAM
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Oct 2022 15:14:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266970 Bug ID: 266970 Summary: net/nss-pam-ldapd: Very slow startup on machines with lots of RAM Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: zi@FreeBSD.org Reporter: asomers@FreeBSD.org Flags: maintainer-feedback?(zi@FreeBSD.org) Assignee: zi@FreeBSD.org Created attachment 237216 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=237216&action=edit Patches nslcd to use closefrom instead of close nslcd tries to close all file descriptors on startup. It does that by calling close() in a loop, running down from _SC_OPEN_MAX to 0. Since _SC_OPEN_MAX autoscales with available RAM, this can take more than a minute on large servers. The solution is to use closefrom. Upstream has already made that change in the master branch, but due to its slow release cadence I suggest we apply the change in the ports tree as well. -- You are receiving this mail because: You are the assignee for the bug.