nscd.confのヘルプ・マニュアル
日本語 英語
nscd.conf --help
man nscd.conf
NSCD.CONF(5) Linux Programmer’s Manual NSCD.CONF(5)
名前
/etc/nscd.conf - ネームサービスキャッシュデーモンの設定ファイル
説明
nscd(8) は起動時にファイル /etc/nscd.conf を読み込む。各行には「属性・
値」または「属性・サービス・値」を指定する。フィールドはスペース文字 ま
た はタブ文字で区切られる。 '#' (ナンバー記号) はコメントの始まりを表す
。この記号から行末までは nscd によって解釈されない。指定可能なサービ ス
は passwd, group, hosts である。
logfile debug-file-name
デバッグ情報が書き込まれるファイルの名前を指定する。
debug-level value
希望するデバッグレベルを設定する。
threads number
スレッドをいくつ起動してリクエストを待つのかを指定する。少なくと
も 5 つのスレッドが常に作成される。
server-user user
このオプションが設定されると、 nscd は root ではなく、この user
と して実行される。 (-S パラメータにより) 各ユーザー毎に別々のキ
ャッシュが使われる場合、このオプションは無視される。
enable-cache service
指定した service のキャッシュを有効または無効にする。
positive-time-to-live service value
指定した service のキャッシュにあるポジティブエントリ (成功し た
問 い合わせ) の TTL (time-to-live) を設定する。 value の単位は秒
である。値を大きくすると、ヒット率が高くなり平均応答時間を短くで
き るが、キャッシュのコヒーレンス (coherence, キャッシュが実際の
データと一致していること) に問題が生じる。
negative-time-to-live service value
指定した service のキャッシュにあるネガティブエントリ (失敗し た
問 い合わせ) の TTL (time-to-live) を設定する。 value の単位は秒
である。システムデータベースにない UID (ユーザーID) で所有される
フ ァ イル (たとえば root で tar を展開した linux カーネルのソー
ス) が少ないと、顕著な性能の向上が見られる。キャッシュのコヒーレ
ンス問題を少なくするために小さな値にすべきである。
suggested-size service value
内 部 ハッシュテーブルの大きさを指定する。効率を最適にするために
value は素数にしておくべきである。
check-files service
指定した service に関連するファイルの変更のチェックを有効また は
無 効にする。ファイルは /etc/passwd, /etc/group, /etc/hosts であ
る。
max-threads threads
開始するスレッドの最大数を指定する。
stat-user username
統計情報の参照を許可するユーザを指定する。
reload-count unlimited | number
キャッシュされたエントリが使用されなかったときに、削除される前に
何回リロードされるかを設定する。
paranoia
パラノイアモードを有効にする。パラノイアモードでは nscd を定期的
に再起動する。
restart-interval time
パラノイアモードが有効で定期的に再起動する場合の、再起動間 隔 を
time 秒に設定する。
persistent service
サ ー バ の 再 起動の前後で service のキャッシュ内容を保持する。
paranoia モードが有効の場合に便利である。
shared service
service の nscd データベースのメモリ・マッピングをクライアント間
で共有する。これにより、検索を実行する度にソケット経由でデーモン
に問い合わせを行わずに、直接データベースを検索できるようになる。
関連項目
nscd(8)
GNU 1999-10-01 NSCD.CONF(5)
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 writ-
ten.
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.
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 parame-
ter), this option is ignored.
enable-cache service
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 sec-
onds. 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 sec-
onds. 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
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.
max-threads threads
Specifies the maximum number of threads. The default is 32.
stat-user username
Specifies the user who is allowed to request statistics.
reload-count unlimited | number
Limit on the number of times a cached entry gets reloaded with-
out being used before it gets removed. The default is 5.
paranoia
Enabling paranoia mode causes nscd to restart itself periodi-
cally. 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.
persistent service
Keep the content of the cache for service over server restarts;
useful when paranoia mode is set. The default is no.
shared service
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 number-of-bytes
The maximum allowable size of the database files in bytes for
the service. The default is 33554432.
auto-propagate service
When set to no for passwd or group service, then the .byname
requests are not added to passwd.byuid or group.bygid cache.
This may help for tables containing multiple records for the
same id. The default is yes. This option is valid only for ser-
vices 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 dis-
tribution might differ.
SEE ALSO
nscd(8)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-10-01 NSCD.CONF(5)