NAME
/etc/nscd.conf - 域名服务缓存守护进程配置文件
描述 DESCRIPTION
该文件 /etc/nscd.conf 在启动 nscd(8) 时读入。每一行或者指定一个属性和值,或者指定一个属性、服务和一个值。域之间通过空格或者TAB分开。‘#’表示注释的开始;在该字符之后到行的末尾将不会被nscd解释。
有效服务为passwd,group或者hosts。
logfile debug-file-name
- 指定调试信息写入的文件名。
debug-level value
- 设置希望的调试级别。
threads number
- 这是启动的等待请求的线程数。最少将创建5个线程。
server-user user
- 如果设置了该选项,nscd将作为该用户运行,而不是作为root。如果每个用户都使用一个单独的缓存(-S参数),将忽略该选项。
enable-cache service <yes|no>
- 启用或禁用制定的 服务 缓存。
positive-time-to-live service value
- 设置 service 在指定缓存中正的项目(成功的请求)的TTL(存活时间)。 Value 以秒为单位。较大的值将增加缓存命中率从而减低平均响应时间,但是将增加缓存的一致性问题。
negative-time-to-live service value
- 设置 service 在指定缓存中负的项目(失败的请求)的TTL(存活时间)。 Value 以秒为单位。如果存在由不在系统数据库中的uid(用户ID)(例如在以root身份解包linux 内核源代码时)所拥有的文件将明显改善性能;应该维持较小的值以降低缓存一致性问题。
suggested-size service value
- 这是内部散列表的大小, value 应该保持一个素数以达到优化效果。
check-files service <yes|no>
- 启用或禁用检查属于指定 服务 的文件的改变。这些文件是 /etc/passwd, /etc/group, 以及 /etc/hosts。
参见
nscd(8)
#p#
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, or hosts.
logfile debug-file-name
- Specifies name of the file to which debug info should be written.
debug-level value
- Sets the desired debug level.
threads number
- This is the number of threads that are started to wait for requests. At least five threads will always be created.
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.
enable-cache service <yes|no>
- Enables or disables the specified service cache.
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.
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, and /etc/hosts.
SEE ALSO
nscd(8)