musl-nscd - daemon that provides


MUSL-NSCD(8) System Manager’s Manual MUSL-NSCD(8)

NAME

musl-nscd — daemon that provides nss(5) functionality to applications via the NSCD protocol, avoiding the need for them to load the modules themselves. It can also cache requests made to it

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.

Unlike the GNU nscd(8) implementation, there is only a positive cache for items found, and caching is optional.

OPTIONS
−c
config

Specifies the path to the configuration file. By default, /etc/nsswitch.conf is used. The syntax is specified in nsswitch.conf(5), though the "merge" action is not supported.

−s socket

Specifies the path to the socket where the daemon listens. By default, /var/run/nscd/socket is used.

−C cache_invalidation_time

This option enables caching functionality: this reduces latency but increases memory consumption. This option takes the amount of seconds for which a result is valid as argument. Users should note that a stale entry will be treated as valid for the duration of the invalidation time. This means that any changes made to the authentication providers used by musl-nscd can take up to cache_invalidation_time seconds to be updated in musl-nscd, and, therefore, in applications. A suggested value that will provide most of the performance benefits without being too long is 120 seconds (2 minutes). System administrators should set this to fit site-specific policies, or consider not enabling caching at all.

−n cache_maximum_entries

This options specifies the maximum amount of entries allowed in the cache. This maximum is per cache, therefore specifying 100 entries means there will be 3 separate caches (for each supported query type) with at most 100 entries each. The default is 1000 entries.

−j threads

Specifies the number of threads the daemon should use. More threads can reduce latency.

−d

This option makes it so musl-nscd daemonizes itself to the background.

SEE ALSO

nss(5), nsswitch.conf(5), nscd(8)

BUGS

Bugs should be reported to https://github.com/pikhq/musl-nscd GNU July 19, 2021 MUSL-NSCD(8)


Updated 2024-01-29 - jenkler.se | uex.se