3.14. 既存の TuneD プロファイルの変更
この手順では、既存のTuneD プロファイルに基づいて変更した子プロファイルを作成します。
前提条件
-
TuneDサービスが実行中である。詳細は、TuneD のインストールと有効化 を参照してください。
手順
/etc/tuned/ディレクトリーで、作成するプロファイルと同じ名前の新しいディレクトリー作成します。# mkdir /etc/tuned/modified-profile新しいディレクトリーに、ファイル
tuned.confを作成し、以下のように[main]セクションを設定します。[main] include=parent-profileparent-profile を、変更しているプロファイルの名前に置き換えます。
プロファイルの変更を含めます。
例3.18 throughput-performance プロファイルでスワップを低減
throughput-performanceプロファイルの設定を使用し、vm.swappinessの値を、デフォルトの 10 ではなく 5 に変更するには、以下を使用します。[main] include=throughput-performance [sysctl] vm.swappiness=5プロファイルをアクティベートするには、次のコマンドを実行します。
# tuned-adm profile modified-profileTuneD プロファイルが有効であり、システム設定が適用されていることを確認します。
$ tuned-adm active Current active profile: my-profile$ tuned-adm verify Verification succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details.