Debianのバインディング9の複数の名前付きプロセス

Debianのバインディング9の複数の名前付きプロセス

私はbind9Debianでネームサーバーを運営しています。

起動時に「名前付き」プロセスが複数実行されていることを確認しましたbind

最高出力

  • bindnインスタンス(プロセス)に制限するにはどうすればよいですか?
  • 多重処理の推奨使用は何ですかbindbindCPUとネットワークの面で比較的集約度の低いアプリケーションであることがわかります。

ベストアンサー1

ディストリビューションによっては、次のnamedスイッチを含む設定ファイルがある場合があります-n #cpus

指定されたマニュアルページから

   -n #cpus
        Create #cpus worker threads to take advantage of multiple CPUs. If 
        not specified, named will try to determine the number of CPUs 
        present and create one thread per CPU. If it is unable to 
        determine the number of CPUs, a single worker thread will be
        created.

Debian で

$ sudo vi /etc/defaults/bind9

構成行を追加:

OPTIONS="-n 4"

サーバーを再起動します。

$ sudo service bind9 restart

CentOS/Fedoraで

$ sudo vi /etc/sysconfig/named

強制的にバインドして4つのCPUを利用するには、次のように追加/修正してください。

OPTIONS="-n 4"

サービスを再起動します。

$ sudo service named restart

参考資料

おすすめ記事