1 .\" Copyright (c) 1983, 1991, 1993
2 .\" The Regents of the University of California. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by the University of
15 .\" California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" @(#)renice.8 8.1 (Berkeley) 6/9/93
34 .\" Japanese Version Copyright (c) 1998 Kanda Mitsuru
35 .\" all rights reserved.
36 .\" Translated Nov 6 JST 1998
37 .\" by Kanda Mitsuru <kanda@@nn.iij4u.or.jp>
44 .\"O .Nd alter priority of running processes
45 .Nd ¼Â¹Ô¤·¤Æ¤¤¤ë¥×¥í¥»¥¹¤ÎÍ¥Àè½ç°Ì¤òÊѹ¹¤¹¤ë
66 .\"O scheduling priority of one or more running processes.
69 .\"O parameters are interpreted as process ID's, process group
70 .\"O ID's, or user names.
71 .\"O .Nm Renice Ns 'ing
72 .\"O a process group causes all processes in the process group
73 .\"O to have their scheduling priority altered.
74 .\"O .Nm Renice Ns 'ing
75 .\"O a user causes all processes owned by the user to have
76 .\"O their scheduling priority altered.
77 .\"O By default, the processes to be affected are specified by
78 .\"O their process ID's.
80 ¤ÏÆ°ºîÃæ¤Î¥×¥í¥»¥¹¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥Àè½ç°Ì¤òÊѹ¹¤¹¤ë
81 (Ê£¿ô¤Î¥×¥í¥»¥¹¤òƱ»þ¤ËÊѹ¹¤¹¤ë¤³¤È¤â¤Ç¤¤ë)¡£
84 ¥Ñ¥é¥á¡¼¥¿¤Ï¡¢¥×¥í¥»¥¹ ID¡¢¥×¥í¥»¥¹¥°¥ë¡¼¥× ID¡¢¤â¤·¤¯¤Ï¥æ¡¼¥¶Ì¾¤È
89 ¤½¤Î¥°¥ë¡¼¥×¤Ë°¤¹¤ëÁ´¤Æ¤Î¥×¥í¥»¥¹¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥Àè½ç°Ì¤¬Êѹ¹¤µ¤ì¤ë¡£
93 ¤½¤Î¥æ¡¼¥¶¤¬½êͤ·¤Æ¤¤¤ëÁ´¤Æ¤Î¥×¥í¥»¥¹¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥Àè½ç°Ì¤¬
95 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥×¥í¥»¥¹ ID ¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤¿¥×¥í¥»¥¹¤¬½èÍýÂоݤȤʤ롣
97 .\"O Options supported by
99 ¤Î¥µ¥Ý¡¼¥È¤¹¤ë¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê:
104 .\"O parameters to be interpreted as process group ID's.
107 ¥Ñ¥é¥á¡¼¥¿¤ò¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Î ID ¤È¤·¤Æ²ò¼á¤¹¤ë¡£
111 .\"O parameters to be interpreted as user names.
114 ¥Ñ¥é¥á¡¼¥¿¤ò¥æ¡¼¥¶Ì¾¤È¤·¤Æ²ò¼á¤¹¤ë¡£
118 .\"O interpretation to be (the default) process ID's.
120 ¤¬¥×¥í¥»¥¹ ID ¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¤è¤¦¤Ë¥ê¥»¥Ã¥È¤¹¤ë
121 (¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤Î²ò¼á¤Ç¤¢¤ë)¡£
127 renice +1 987 -u daemon root -p 32
130 .\"O would change the priority of process ID's 987 and 32, and
131 .\"O all processes owned by users daemon and root.
132 ¥×¥í¥»¥¹ ID 987 ¤È 32 ¤ÎÍ¥ÀèÅ٤ȡ¢¥æ¡¼¥¶ daemon ¤È root ¤Ë¤è¤Ã¤Æ
133 ½êͤµ¤ì¤Æ¤¤¤ëÁ´¤Æ¤Î¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤òÊѹ¹¤¹¤ë¡£
135 .\"O Users other than the super-user may only alter the priority of
136 .\"O processes they own,
137 .\"O and can only monotonically increase their ``nice value''
138 .\"O within the range 0 to
140 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ç¤Ê¤¤¥æ¡¼¥¶¤Ï¡¢
141 ¼«Ê¬¤¬½êͤ·¤Æ¤¤¤ë¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤·¤«Êѹ¹¤Ç¤¤Ê¤¤¡£
142 ¤Þ¤¿ ``nice ÃÍ'' ¤òÁý¤ä¤¹¤³¤È¤·¤«¤Ç¤¤Ê¤¤¡£
147 .\"O (This prevents overriding administrative fiats.)
149 .\"O may alter the priority of any process
150 .\"O and set the priority to any value in the range
155 (¤³¤ì¤ÏºÇ½ÅÍפʥ·¥¹¥Æ¥à´ÉÍýÌ¿Îá¤ò˸¤²¤Ê¤¤¤¿¤á¤Ç¤¢¤ë)
156 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ï¤¢¤é¤æ¤ë¥×¥í¥»¥¹¤ÎÍ¥ÀèÅÙ¤òÊѹ¹¤Ç¤¡¢
161 ¤ÎÈϰϤÇÍ¥ÀèÅÙ¤ÎÃͤòÊѹ¹¤Ç¤¤ë¡£
162 .\"O Useful priorities are:
163 .\"O 20 (the affected processes will run only when nothing else
164 .\"O in the system wants to),
165 .\"O 0 (the ``base'' scheduling priority),
166 .\"O anything negative (to make things go very fast).
168 20 (±Æ¶Á¤µ¤ì¤¿¥×¥í¥»¥¹¤Ï¡¢¥·¥¹¥Æ¥à¤Ë¼Â¹Ô¤¹¤ë¤â¤Î¤¬¤Ê¤¤¾ì¹ç¤À¤±¼Â¹Ô¤µ¤ì¤ë)
169 0 (``´ðËÜ'' ¤Î¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥ÀèÅÙ)¡¢
170 Éé¤ÎÃÍ (¤È¤Æ¤âÁ᤯¼Â¹Ô¤µ¤ì¤ë)
173 .Bl -tag -width /etc/passwd -compact
175 .\"O to map user names to user ID's
176 ¥æ¡¼¥¶Ì¾¤È¥æ¡¼¥¶ID¤ÎÂбþ¤ò¼è¤ë¡£
184 .\"O Non super-users can not increase scheduling priorities of their own processes,
185 .\"O even if they were the ones that decreased the priorities in the first place.
186 ¥¹¡¼¥Ñ¥æ¡¼¥¶¤Ç¤Ê¤¤¥æ¡¼¥¶¤Ï¡¢°ìÅÙ¥¹¥±¥¸¥å¡¼¥ê¥ó¥°Í¥ÀèÅÙ¤ò
187 ¸º¤é¤µ¤ì¤¿¥×¥í¥»¥¹¤Ë´Ø¤·¤Æ¤â¡¢¤³¤ì¤òÁý¤ä¤¹¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
189 .\"O The Linux kernel (at least version 2.0.0) and linux libc (at least
190 .\"O version 5.2.18) does not agree entierly on what the specifics of the
191 .\"O systemcall interface to set nice values is. Thus causes renice to
192 .\"O report bogus previous nice values.
193 linux ¥«¡¼¥Í¥ë (¸½ºß 2.0.0) ¤È linux libc (¸½ºß 5.2.18) ¤È¤Ç¤Ï¡¢
194 nice ÃͤòÀßÄꤹ¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬´°Á´¤ËƱ¤¸¤Ç¤Ê¤¤¡£
195 ¤·¤¿¤¬¤Ã¤Æ renice ¤Ï Êѹ¹Á°¤Î nice ÃͤȤ·¤ÆÀµ¤·¤¤ÃͤòÊÖ¤µ¤Ê¤¤¤³¤È¤¬¤¢¤ë¡£
200 .\"O command appeared in