1 .\" Copyright (c) 2005 Michael Bushkov <bushman@rsu.ru>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $FreeBSD: src/usr.sbin/nscd/nscd.conf.5,v 1.6 2007/09/27 12:30:11 bushman Exp $
32 .Nd "nscd configuration file"
39 daemon and is read on its startup.
40 Its syntax is mostly similar to the
46 It has some differences, though \[em] see them below.
48 Each line specifies either an attribute and a
62 You can also use any other
64 (for example, if some third-party
65 application uses nsswitch).
66 .Bl -tag -width indent
67 .It Va threads Op Ar value
68 Number of threads, which would listen for connections and process requests.
70 The default value is 8.
71 .It Va enable-cache Oo Ar cachename Oc Op Cm yes | no
72 Enables or disables the cache for specified
74 .It Va positive-time-to-live Oo Ar cachename Oc Op Ar value
75 Sets the TTL (time-to-live) for the specified cache in seconds.
76 Larger values can increase system's performance, but they also can affect
78 The default value is 3600.
79 .It Va positive-policy Oo Ar cachename Oc Op Cm fifo | lru | lfu
80 The policy that is applied to erase some of the cache elements, when the
81 size limit of the given
84 Possible policies are:
88 (least-recently-used), and
90 (least-frequently-used).
93 .It Va negative-time-to-live Oo Ar cachename Oc Op Ar value
94 The TTL of the negative cached elements in seconds.
95 The larger values can significantly increase system performance in some
96 environments (when dealing with files with UIDs, which are not in system
97 databases, for example).
98 This number should be kept low to avoid the cache coherence problems.
99 The default value is 60.
100 .It Va negative-policy Oo Ar cachename Oc Op Cm fifo | lru | lfu
101 The same as the positive-policy, but this one is applied to the negative
102 elements of the given
104 The default policy is fifo.
105 .It Va suggested-size Oo Ar cachename Oc Op Ar value
106 This is the internal hash table size.
107 The value should be a prime number for optimum performance.
108 You should only change this value when the number of cached elements is
109 significantly (in 5-10 times) greater than the default hash table size (255).
110 .It Va keep-hot-count Oo Ar cachename Oc Op Ar value
111 The size limit of the cache with the given
113 When it is exceeded, the policy will be applied.
114 The default value is 2048.
115 .It Va perform-actual-lookups Oo Ar cachename Oc Op Cm yes | no
118 does not simply receive and cache the NSS-requests results, but performs
119 all the lookups by itself and only returns the responses.
120 If this feature is enabled, then for the given
123 will act similarly to the NSCD.
126 this feature is currently experimental \[em] it supports only
136 symbol at the beginning of the line for comments.
138 .Bl -tag -width ".Pa /etc/nscd.conf" -compact
139 .It Pa /etc/nscd.conf
144 .An Michael Bushkov Aq Mt bushman@freebsd.org
146 Please send bug reports and suggestions to
147 .Aq Mt bushman@freebsd.org .