Date: Tue, 11 Oct 2022 15:14:41 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266970] net/nss-pam-ldapd: Very slow startup on machines with lots of RAM Message-ID: <bug-266970-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266970 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=3D237216&action= =3Dedit Patches nslcd to use closefrom instead of close nslcd tries to close all file descriptors on startup. It does that by call= ing 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266970-7788>