RENICE(1P)
π PROLOG π
okay so bestie, real talk before we get into it: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface may not even be implemented on Linux at all. π Not my fault, I'm just the messenger.
β¨ NAME β¨
renice β set nice values of running processes π
π¦ SYNOPSIS π¦
renice [-g|-p|-u] -n increment ID...
π DESCRIPTION π
okay so what this utility does is it shall request that the nice values (see the Base Definitions volume of POSIX.1β2017, Section 3.244, Nice Value) of one or more running processes be changed. That's the whole vibe. β¨
By default, the applicable processes are specified by their process IDs. But when a process group is specified (see -g), the request shall apply to all processes in the process group. group chat energy, literally.
The nice value shall be bounded in an implementation-defined manner. And if the requested increment would raise or lower the nice value of the executed utility beyond those implementation-defined limits? Then the limit whose value was exceeded shall be used. no cap, that's the rule.
When a user is reniced, the request applies to all processes whose saved set-user-ID matches the user ID corresponding to the user.
Regardless of which options are supplied or any other factor, renice shall not alter the nice values of any process unless the user requesting such a change has appropriate privileges to do so for the specified process. If the user lacks appropriate privileges to perform the requested action, the utility shall return an error status. π₯ read that again bestie.
And the plot twist: the saved set-user-ID of the user's process shall be checked instead of its effective user ID when renice attempts to determine the user ID of the process in order to determine whether the user has appropriate privileges. iykyk. π
πΈ OPTIONS πΈ
The renice utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines, except for Guideline 9. (yes, the one exception, she's special π
)
The following options shall be supported:
-gβ Interpret the following operands as unsigned decimal integer process group IDs.-n incrementβ Specify how the nice value of the specified process or processes is to be adjusted. The increment option-argument is a positive or negative decimal integer that shall be used to modify the nice value of the specified process or processes.
Positive increment values shall cause a lower nice value. Negative increment values may require appropriate privileges and shall cause a higher nice value.
-pβ Interpret the following operands as unsigned decimal integer process IDs. The-poption is the default if no options are specified. (she's the main character, obviously)-uβ Interpret the following operands as users. If a user exists with a user name equal to the operand, then the user ID of that user is used in further processing. Otherwise, if the operand represents an unsigned decimal integer, it shall be used as the numeric user ID of the user. β¨
π OPERANDS π
The following operands shall be supported:
IDβ A process ID, process group ID, or user name/user ID, depending on the option selected. pick your fighter bestie.
π STDIN π
Not used. she's sitting this one out.
π INPUT FILES π
None. nada. zero. πΈ
π ENVIRONMENT VARIABLES π
The following environment variables shall affect the execution of renice:
LANGβ Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1β2017, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)LC_ALLβ If set to a non-empty string value, override the values of all the other internationalization variables. she said "I'm in charge now." πLC_CTYPEβ Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments).LC_MESSAGESβ Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.NLSPATHβ Determine the location of message catalogs for the processing ofLC_MESSAGES.
π§ ASYNCHRONOUS EVENTS π§
Default. she's unbothered. π
β STDOUT β
Not used. not a single peep.
π STDERR π
The standard error shall be used only for diagnostic messages. only the drama goes here.
πΈ OUTPUT FILES πΈ
None. πΈ
π EXTENDED DESCRIPTION π
None. that's it, that's the section.
π EXIT STATUS π
The following exit values shall be returned:
0β Successful completion. slay. β¨>0β An error occurred. π
π CONSEQUENCES OF ERRORS π
Default.
The following sections are informative. (yes, we're in the vibes-only zone now π¦)
π APPLICATION USAGE π
None.
π₯ EXAMPLES π₯
- Adjust the nice value so that process IDs
987and32would have a lower nice value:
renice -n 5 -p 987 32
- Adjust the nice value so that group IDs
324and76would have a higher nice value, if the user has appropriate privileges to do so:
renice -n -4 -g 324 76
- Adjust the nice value so that numeric user ID
8and usersaswould have a lower nice value:
renice -n 4 -u 8 sas
Useful nice value increments on historical systems include 19 or 20 (the affected processes run only when nothing else in the system attempts to run) and any negative number (to make processes run faster). periodt. π₯
π¦ RATIONALE π¦
okay so the lore: the gid, pid, and user specifications do not fit either the definition of operand or option-argument. But for clarity, they've been included in the OPTIONS section, rather than the OPERANDS section. she's just built different. π
The definition of nice value is not intended to suggest that all processes in a system have priorities that are comparable. Scheduling policy extensions such as the realtime priorities in the System Interfaces volume of POSIX.1β2017 make the notion of a single underlying priority for all scheduling policies problematic. Some implementations may implement the nice-related features to affect all processes on the system, others to affect just the general time-sharing activities implied by this volume of POSIX.1β2017, and others may have no effect at all. Because of the use of "implementation-defined" in nice and renice, a wide range of implementation strategies are possible. π
Originally, this utility was written in the historical manner, using the term "nice value". This was always a point of concern with users because it was never intuitively obvious what this meant. With a newer version of renice, which used the term "system scheduling priority", it was hoped that novice users could better understand what this utility was meant to do. Also, it would be easier to document what the utility was meant to do. Unfortunately, the addition of the POSIX realtime scheduling capabilities introduced the concepts of process and thread scheduling priorities that were totally unaffected by the nice/renice utilities or the nice()/setpriority() functions. Continuing to use the term "system scheduling priority" would have incorrectly suggested that these utilities and functions were indeed affecting these realtime priorities. It was decided to revert to the historical term "nice value" to reference this unrelated process attribute. the character development fr fr. π
Although this utility has use by system administrators (and in fact appears in the system administration portion of the BSD documentation), the standard developers considered that it was very useful for individual end users to control their own processes. π«Ά
Earlier versions of this standard allowed the following forms in the SYNOPSIS:
renice nice_value[-p] pid...[-g gid...][-p pid...][-u user...]
renice nice_value -g gid...[-g gid...]-p pid...][-u user...]
renice nice_value -u user...[-g gid...]-p pid...][-u user...]
These forms are no longer specified by POSIX.1β2008 but may be present in some implementations. π (copying those exactly, don't come for me)
π FUTURE DIRECTIONS π
None. the future is a mystery, but this section is not. β¨
π SEE ALSO π
nice
The Base Definitions volume of POSIX.1β2017, Section 3.244, Nice Value, Chapter 8, Environment Variables, Section 12.2, Utility Syntax Guidelines
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page bestie π this iconic little number came to you from IEEE/The Open Group, dated 2017, and it's the one and only RENICE(1P) β go forth and renice responsibly, ily, bye πβ¨π¦
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms