.\" Copyright (c) 1983, 1991, 1993 .\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" 3. All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed by the University of .\" California, Berkeley and its contributors. .\" 4. Neither the name of the University nor the names of its contributors .\" may be used to endorse or promote products derived from this software .\" without specific prior written permission. .\" .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" @(#)renice.8 8.1 (Berkeley) 6/9/93 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1998 Kanda Mitsuru .\" and 2020 Chonan Yoichi, .\" all rights reserved. .\" Translated Nov 6 JST 1998 .\" by Kanda Mitsuru .\" Updated & Modified (util-linux 2.36) Mon Dec 14 15:47:04 JST 2020 .\" by Chonan Yoichi .\" .TH RENICE 1 "July 2014" util\-linux "User Commands" .SH 名前 renice \- 動作中のプロセスの優先度を変更する .SH 書式 \fBrenice\fP [\fB\-n\fP] \fIpriority\fP [\fB\-g\fP|\fB\-p\fP|\fB\-u\fP] \fIidentifier\fP... .SH 説明 \fBrenice\fP は、動作中のプロセス (複数指定可) のスケジューリング優先度を変更する。 1 番目の引き数は、使用したい優先度 (\fIpriority\fP) である。それ以外の引き数は、プロセス ID (デフォルト)、プロセスグループ ID、ユーザ ID、 ユーザ名と見なされる。プロセスグループを \fBrenice\fP の対象にすると、そのプロセスグループに属するすべてのプロセスのスケジューリング優先度が変更される。 ユーザを対象にした場合は、そのユーザが所有するすべてのプロセスのスケジューリング優先度が変更される。 .SH オプション .TP \fB\-n\fP,\fB \-\-priority \fP\fIpriority\fP プロセス、プロセスグループ、もしくはユーザに対して使用したいスケジューリング優先度 \fIpriotity\fP を指定する。\fB\-n\fP や \fB\-\-priotity\fP オプションの使用は任意だが、使用するなら、最初の引き数にしなければならない (訳注: 実質的な最初の引き数は、常に優先度であり、その前に \fB\-n\fP や \fB\-\-priority\fP を付けるか、付けないかは自由だということ)。 .TP \fB\-g\fP, \fB\-\-pgrp\fP 後に続く引き数群をプロセスグループ ID と見なす。 .TP \fB\-p\fP, \fB\-\-pid\fP 後に続く引き数群をプロセス ID と見なす (デフォルト)。 .TP \fB\-u\fP, \fB\-\-user\fP 後に続く引き数群をユーザー名、または UID と見なす。 .TP \fB\-V\fP,\fB \-\-version\fP バージョン情報を表示して終了する。 .TP \fB\-h\fP,\fB \-\-help\fP ヘルプを表示して終了する。 .SH ファイル .TP \fI/etc/passwd\fP ユーザ名とユーザ ID を対応させている。 .SH 注意 スーパーユーザ以外のユーザが変更できるのは、自分が所有するプロセスの優先度だけである。 それだけではない。非特権ユーザは、\*(lqnice 値\*(rq を増やす (言い換えれば、優先度を下げる) ことしかできず、そうした変更を元に戻すことすらできない。ただし、(Linux 2.6.12 以降で) ユーザが適切な \*(lqnice\*(rq リソースリミットを持っている場合は、そのかぎりではない (\fBulimit\fP(1p), \fBgetrlimit\fP(2) を参照)。 スーパーユーザは、どんなプロセスの優先度でも変更できるし、優先度を \-20 から 19 の範囲のどんな値にも設定することができる。有用な優先度には次のものがある。19 (この優先度を与えられたプロセスが動作するのは、 動作しようとする他のプロセスがシステム中に存在しないときだけになる)、0 (基本となるスケジューリング優先度)、負の数 (動作がきわめて速くなる)。 .SH 歴史 \fBrenice\fP コマンドが初登場したのは、4.0BSD だった。 .SH 用例 次のコマンドを使うと、PID が 987 と 32 のプロセス、及び daemon と root ユーザの所有するすべてのプロセスの優先度を変更することになる。 .TP \fBrenice +1 987 \-u daemon root \-p 32\fP .SH 関連項目 \fBnice\fP(1), \fBchrt\fP(1), \fBgetpriority\fP(2), \fBsetpriority\fP(2), \fBcredentials\fP(7), \fBsched\fP(7) .SH 入手方法 この renice コマンドは、util\-linux パッケージの一部であり、Linux Kernel Archive から入手できる。