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
30 .Nd "nscd configuration file"
37 daemon and is read on its startup.
38 Its syntax is mostly similar to the
44 It has some differences, though \[em] see them below.
46 Each line specifies either an attribute and a
60 You can also use any other
62 (for example, if some third-party
63 application uses nsswitch).
64 .Bl -tag -width indent
65 .It Va threads Op Ar value
66 Number of threads, which would listen for connections and process requests.
68 The default value is 8.
69 .It Va enable-cache Oo Ar cachename Oc Op Cm yes | no
70 Enables or disables the cache for specified
72 .It Va positive-time-to-live Oo Ar cachename Oc Op Ar value
73 Sets the TTL (time-to-live) for the specified cache in seconds.
74 Larger values can increase system's performance, but they also can affect
76 The default value is 3600.
77 .It Va positive-policy Oo Ar cachename Oc Op Cm fifo | lru | lfu
78 The policy that is applied to erase some of the cache elements, when the
79 size limit of the given
82 Possible policies are:
86 (least-recently-used), and
88 (least-frequently-used).
91 .It Va negative-time-to-live Oo Ar cachename Oc Op Ar value
92 The TTL of the negative cached elements in seconds.
93 The larger values can significantly increase system performance in some
94 environments (when dealing with files with UIDs, which are not in system
95 databases, for example).
96 This number should be kept low to avoid the cache coherence problems.
97 The default value is 60.
98 .It Va negative-policy Oo Ar cachename Oc Op Cm fifo | lru | lfu
99 The same as the positive-policy, but this one is applied to the negative
100 elements of the given
102 The default policy is fifo.
103 .It Va negative-confidence-threshold Oo Ar cachename Oc Op Ar value
104 The number of times a query must have failed before the cache accepts
105 that the element can not be found.
106 At the default value of 1 each negative query result is cached and
107 immediately returned from the cache on further queries.
108 Higher numbers cause queries to be retried at the configured data
109 sources the given number of times, before the negative result is
110 returned from the cache on further queries.
111 This allows to probe for the existence of an entry, and then to create
112 it if it did not exist, without the negative probe result preventing
113 access to the new entry for the duration of the negative TTL.
114 .It Va suggested-size Oo Ar cachename Oc Op Ar value
115 This is the internal hash table size.
116 The value should be a prime number for optimum performance.
117 You should only change this value when the number of cached elements is
118 significantly (5-10 times) greater than the default hash table size (257).
119 .It Va keep-hot-count Oo Ar cachename Oc Op Ar value
120 The size limit of the cache with the given
122 When it is exceeded, the policy will be applied.
123 The default value is 2048.
124 .It Va perform-actual-lookups Oo Ar cachename Oc Op Cm yes | no
127 does not simply receive and cache the NSS-requests results, but performs
128 all the lookups by itself and only returns the responses.
129 If this feature is enabled, then for the given
132 will act similarly to the NSCD.
135 this feature is currently experimental \[em] it supports only
145 symbol at the beginning of the line for comments.
147 .Bl -tag -width ".Pa /etc/nscd.conf" -compact
148 .It Pa /etc/nscd.conf
153 .An Michael Bushkov Aq Mt bushman@FreeBSD.org