Comments on Linux nice and renice Command Tutorial (7 Examples)
The power of the Linux command line can be gauged from the fact that you can even easily tweak the scheduling priority of processes using command line tools. Yes, that's possible, and in this tutorial we will discuss how to do that using nice and renice utilities.
6 Comment(s)
Comments
-g parameter is not for user groups, but for process group. It means that the expected value is a PID, than the process and all sub processes will be affected.
You are misusing the term "priority". In your examples, the priority is shown in the output column to the left of the (new) nice value and has a value of 80+<nice value>. Because processes are, by default, scheduled with policy SCHED_OTHER they start at priority 80 and this is adjusted up or down by the nice value. As output by the ps command here, the lower the priority value the more favored the process/thread is by the scheduler.
it would be helpful if you gave the simplest case: starting a program with nice. This doesn't work. Your article doesn't help.
nice 19 opera
Did you try "nice -n 19 opera"?
I installed a fresh Centos 7 image and get an error.
nice: fio: no such file or directory
Not sure how to fix this issue. Can you provide some help?
Damn it! im so dumb to understand ubuntu command, but thanks to you it's alot better now!