「VeryNice」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(ページの作成:「Category:システム管理 en:VeryNice VeryNice は動的に実行ファイルの nice レベルを調整するデーモンです。nice レベルは CPU リソ...」)
 
(アーカイブに移動)
タグ: 新規リダイレクト
 
(他の1人の利用者による、間の1版が非表示)
1行目: 1行目:
  +
#redirect [[ArchWiki:アーカイブ]]
[[Category:システム管理]]
 
  +
[[Category:アーカイブ]]
[[en:VeryNice]]
 
VeryNice は動的に実行ファイルの nice レベルを調整するデーモンです。nice レベルは CPU リソースを割り振るときの実行ファイルの優先度を示します。レスポンスが重要な実行ファイル、X やマルチメディアアプリケーションなどを、{{ic|/etc/verynice.conf}} で ''goodexe'' として定義してください。同じく、バックグラウンドで動作して CPU の消費量が激しい、make などは ''badexe'' として定義できます。優先度を付けることで負担が大きいときのシステムの反応性が高められます。
 
 
==インストール==
 
{{Note|VeryNice は2014年から更新されておらず、公式ホームページは落ちています。}}
 
{{AUR|verynice}} をインストールしてください。
 
 
verynice を起動するには:
 
{{bc|# systemctl start verynice.service}}
 
 
ブート時に起動するように有効化するには:
 
{{bc|# systemctl enable verynice.service}}
 
 
==設定==
 
VeryNice はシステム全体の設定ファイル ({{ic|/etc/verynice.conf}} とユーザー個別の設定ファイル ({{ic|~/.verynicerc}}) の両方から自動的に設定情報を読み込みます。両方の設定ファイルの構文は一緒です。システム全体の設定に書かれた制限的な設定はユーザー個別の設定よりも優先されます。当然、ユーザーの {{ic|~/.verynicerc}} ファイルの設定はユーザーのプロセスにしか影響しません。{{ic|verynice.conf}} のサンプルファイルは {{ic|/etc/verynice.conf}} や {{ic|/usr/local/etc/verynice.conf}} にインストールされます。
 
 
<table border="2">
 
<tr><th>パラメータ</th><th>機能</th><th>デフォルト</th><th>値</th><th>パーミッション</th><th>Multiple?</th></tr>
 
 
<tr><td>notnice</td><td>"goodexe" プロセスの nice レベルを設定</td><td> -4 </td><td>-20 以上の負数</td><td>Central</td><td>no</td>
 
</tr><tr><td>batchjob</td><td>"badexe" プロセスの nice レベルを設定</td><td> 18 </td><td>20 以下の正数</td><td>Central</td><td>no</td>
 
</tr><tr><td>runaway</td><td>SIGTERM で kill される runawayexe の bad karma (nice) レベルを設定</td><td> 20 </td><td>正数</td><td>Central</td><td>no</td></tr>
 
<tr><td>kill</td><td>SIGKILL で kill される runawayexe の bad karma (nice) レベルを設定</td><td> 22 </td><td>正数</td><td>Central</td><td>no</td></tr>
 
 
<tr><td>badkarmarate</td><td>cpu の使用量が 100% のときに生成される bad karma の設定 (小さな bad karma レベル)</td><td> .0167 </td><td>正の実数</td><td>Central</td><td>no</td></tr>
 
<tr><td>badkarmarestorationrate</td><td>cpu の使用量が 0% のときに削除される bad karma の設定</td><td> .0167 </td><td>正の実数</td><td>Central</td><td>no</td></tr>
 
 
<tr><td>periodicity</td><td>VeryNice のプロセス解析コードを走らせる間隔の設定</td><td> 60 </td> <td>正の正数。値を大きくすると CPU の使用量が減ります。値を小さくすると正確に測定されます。</td><td>Central</td><td>no</td></tr>
 
<tr><td>rereadcfgperiodicity</td><td>Set the approximate number of program cycles (periodicities, above) between attempts to reread the configuration files of VeryNice</td><td> 60 </td> <td> Any positive integer. Be aware that reconfiguring requires looking up the .verynicerc file in each user's home directory and does not affect existing processes. </td><td>Central</td><td>no</td></tr>
 
 
<tr><td>immuneuser</td><td>Inhibit VeryNice from modifying the nice level of a user's processes, except for "goodexe", below, if set in the central config file.</td><td>(none)</td><td>Any user name, unquoted</td><td>Central</td><td>yes</td></tr>
 
<tr><td>immuneexe</td><td>Inhibit VeryNice from modifying the nice level of certain executables</td><td>(none)</td><td>Any substring of the complete path to the executable, quoted with double quotes ("). If it begins with '/', it must match the complete path precisely. </td><td>Central/User</td><td>yes</td></tr>
 
<tr><td>badexe</td><td>実行ファイルの nice レベルを強制的に BATCHJOB レベルに設定</td><td>(none)</td><td> (As above)</td><td>Central/User</td><td>yes</td></tr>
 
<tr><td>goodexe</td><td>実行ファイルの nice レベルを強制的に NOTNICE レベルに設定。優先度を高くする必要があるリアルタイムのマルチメディアアプリケーションで使います。</td><td>(none)</td><td> (As above) </td><td>Central/User</td><td>yes</td></tr>
 
<tr><td>runawayexe</td><td>Mark an executable as a potential runaway process. Only processes specially marked will ever be killed by VeryNice</td><td>(none)</td><td> (As above) </td><td>Central/User</td><td>yes</td></tr>
 
<tr><td>hungryexe</td><td>Mark an executable as "assumed to be CPU hungry". Such a process will be treated as if it were using 100% of the CPU, regardless of its actual CPU usage. This is appropriate for programs that do their real work in lots of short-lived subprocesses, such as make(1). </td><td>(none)</td><td> (As above) </td><td>Central/User</td><td>yes</td></tr>
 
</table>
 
 
==参照==
 
[https://web.archive.org/web/20130621090315/http://thermal.cnde.iastate.edu/~sdh4/verynice/ Project Site] (via the Internet Archive)
 

2021年7月23日 (金) 11:09時点における最新版