Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nfsuserd(8) [freebsd man page]

NFSUSERD(8)						    BSD System Manager's Manual 					       NFSUSERD(8)

NAME
nfsuserd -- load user and group information into the kernel for NFSv4 services SYNOPSIS
nfsuserd [-domain domain_name] [-usertimeout minutes] [-usermax max_cache_size] [-verbose] [-force] [num_servers] DESCRIPTION
nfsuserd loads user and group information into the kernel for NFSv4. It must be running for NFSv4 to function correctly, either client or server. Upon startup, it loads the machines DNS domain name, plus timeout and cache size limit into the kernel. It then preloads the cache with group and user information, up to the cache size limit and forks off N children (default 4), that service requests from the kernel for cache misses. The master server is there for the sole purpose of killing off the slaves. To stop the nfsuserd, send a SIGUSR1 to the master server. The following options are available: -domain domain_name This option allows you to override the default DNS domain name, which is acquired by taking either the suffix on the machine's host- name or, if that name is not a fully qualified host name, the canonical name as reported by getaddrinfo(3). -usertimeout minutes Overrides the default timeout for cache entries, in minutes. If the timeout is specified as 0, cache entries never time out. The longer the time out, the better the performance, but the longer it takes for replaced entries to be seen. If your user/group database management system almost never re-uses the same names or id numbers, a large timeout is recommended. The default is 1 minute. -usermax max_cache_size Overrides the default upper bound on the cache size. The larger the cache, the more kernel memory is used, but the better the perfor- mance. If your system can afford the memory use, make this the sum of the number of entries in your group and password databases. The default is 200 entries. -verbose When set, the server logs a bunch of information to syslog. -force This flag option must be set to restart the daemon after it has gone away abnormally and refuses to start, because it thinks nfsuserd is already running. num_servers Specifies how many servers to create (max 20). The default of 4 may be sufficient. You should run enough servers, so that ps(1) shows almost no running time for one or two of the slaves after the system has been running for a long period. Running too few will have a major performance impact, whereas running too many will only tie up some resources, such as a process table entry and swap space. SEE ALSO
getgrent(3), getpwent(3), nfsv4(4), group(5), passwd(5), nfsd(8) HISTORY
The nfsuserd utility was introduced with the NFSv4 experimental subsystem in 2009. BUGS
The nfsuserd use getgrent(3) and getpwent(3) library calls to resolve requests and will hang if the servers handling those requests fail and the library functions don't return. See group(5) and passwd(5) for more information on how the databases are accessed. BSD
April 25, 2009 BSD

Check Out this Related Man Page

NSCD.CONF(5)						     Linux Programmer's Manual						      NSCD.CONF(5)

NAME
/etc/nscd.conf - name service cache daemon configuration file DESCRIPTION
The file /etc/nscd.conf is read from nscd(8) at startup. Each line specifies either an attribute and a value, or an attribute, service, and a value. Fields are separated either by SPACE or TAB characters. A '#' (number sign) indicates the beginning of a comment; following characters, up to the end of the line, are not interpreted by nscd. Valid services are passwd, group, hosts, services, or netgroup. logfile debug-file-name Specifies name of the file to which debug info should be written. debug-level value Sets the desired debug level. The default is 0. threads number This is the number of threads that are started to wait for requests. At least five threads will always be created. max-threads number Specifies the maximum number of threads. The default is 32. server-user user If this option is set, nscd will run as this user and not as root. If a separate cache for every user is used (-S parameter), this option is ignored. stat-user user Specifies the user who is allowed to request statistics. reload-count unlimited | number Limit on the number of times a cached entry gets reloaded without being used before it gets removed. The default is 5. paranoia <yes|no> Enabling paranoia mode causes nscd to restart itself periodically. The default is no. restart-interval time Sets the restart interval to time seconds if periodic restart is enabled by enabling paranoia mode. The default is 3600. enable-cache service <yes|no> Enables or disables the specified service cache. The default is no. positive-time-to-live service value Sets the TTL (time-to-live) for positive entries (successful queries) in the specified cache for service. Value is in seconds. Larger values increase cache hit rates and reduce mean response times, but increase problems with cache coherence. negative-time-to-live service value Sets the TTL (time-to-live) for negative entries (unsuccessful queries) in the specified cache for service. Value is in seconds. Can result in significant performance improvements if there are several files owned by UIDs (user IDs) not in system databases (for example untarring the Linux kernel sources as root); should be kept small to reduce cache coherency problems. suggested-size service value This is the internal hash table size, value should remain a prime number for optimum efficiency. The default is 211. check-files service <yes|no> Enables or disables checking the file belonging to the specified service for changes. The files are /etc/passwd, /etc/group, /etc/hosts, /etc/services and /etc/netgroup. The default is yes. persistent service <yes|no> Keep the content of the cache for service over server restarts; useful when paranoia mode is set. The default is no. shared service <yes|no> The memory mapping of the nscd databases for service is shared with the clients so that they can directly search in them instead of having to ask the daemon over the socket each time a lookup is performed. The default is no. max-db-size service bytes The maximum allowable size, in bytes, of the database files for the service. The default is 33554432. auto-propagate service <yes|no> When set to no for passwd or group service, then the .byname requests are not added to passwd.byuid or group.bygid cache. This can help with tables containing multiple records for the same ID. The default is yes. This option is valid only for services passwd and group. NOTES
The default values stated in this manual page originate from the source code of nscd(8) and are used if not overridden in the configuration file. The default values used in the configuration file of your distribution might differ. SEE ALSO
nscd(8) GNU
2014-02-07 NSCD.CONF(5)
Man Page