MUSL-NSCD(8)
β¨ MUSL-NSCD π
okay so bestie, welcome to the musl-nscd page β it's section 8 of the System Manager's Manual and honestly it's a whole vibe. Let me put you on. π«Ά
πΈ NAME πΈ
musl-nscd β it's a daemon that provides nss(5) functionality to applications via the NSCD protocol, which means those apps don't have to load the modules themselves. It can also cache requests made to it. iconic behavior tbh. β¨
π SYNOPSIS π
nscd [-c config] [-s socket] [-C cache_invalidation_time]
[-n cache_maximum_entries] [-j threads] [-d]
π¦ DESCRIPTION π¦
musl-nscd provides access to the passwd(5) and group(5) databases through standard libc interfaces. no cap, that's the whole job and it does it. π
But here's the tea: unlike the GNU nscd(8) implementation, there is only a positive cache for items found, and caching is optional. so we don't do the negative-cache thing. periodt.
π OPTIONS π
-cconfig β Specifies the path to the configuration file. By default,/etc/nsswitch.confis used. The syntax is specified innsswitch.conf(5), though the"merge"action is not supported. (so don't come for us withmerge, it's not invited to the party π)-ssocket β Specifies the path to the socket where the daemon listens. By default,/var/run/nscd/socketis used. that's the spot bestie, that's where it's at. β-Ccache_invalidation_time β This option enables caching functionality: it reduces latency but increases memory consumption. It takes the amount of seconds for which a result is valid as its argument. Heads up though: users should note that a stale entry will be treated as valid for the duration of the invalidation time. That means any changes made to the authentication providers used bymusl-nscdcan take up to cache_invalidation_time seconds to be updated inmusl-nscd, and, therefore, in applications. A suggested value that will provide most of the performance benefits without being too long is120seconds (2 minutes). System administrators should set this to fit site-specific policies, or consider not enabling caching at all. ngl that last part is real advice, take it. π-ncache_maximum_entries β This option specifies the maximum amount of entries allowed in the cache. This maximum is per cache, therefore specifying100entries means there will be 3 separate caches (for each supported query type) with at most100entries each. The default is1000entries. math is mathing, iykyk. π₯-jthreads β Specifies the number of threads the daemon should use. More threads can reduce latency. slay, more parallel vibes. π-dβ This option makes it somusl-nscddaemonizes itself to the background. main character energy: it leaves the chat but keeps working. π
π SEE ALSO π
nss(5), nsswitch.conf(5), nscd(8)
go read those too bestie, it's giving β¨educatedβ¨
π BUGS π
Bugs should be reported to https://github.com/pikhq/musl-nscd β pls do tell, we love a fix. π
lowkey reminder: this page is from the Debian distribution, dated July 19, 2021, and it lives in section 8 (MUSL-NSCD(8)) of the System Manager's Manual. ty for coming to my ted talk, mwah π
π
π¦ where this page comes from
- alpine 3.22: musl-nscd-doc 1.1.1-r4 Β· MIT
- alpine 3.23: musl-nscd-doc 1.1.1-r4 Β· MIT
- alpine 3.24: musl-nscd-doc 1.1.1-r4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms