Difference between revisions of "Nice linux"
From Teknologisk videncenter
m (→nice and priority) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=nice and priority= | =nice and priority= | ||
+ | [[image:Understanding process thread priorities in Linux.png|600px]] | ||
+ | |||
NI – is the nice value, which is a user-space concept, while. PR or PRI – is the process's actual priority, as seen by the Linux kernel. | NI – is the nice value, which is a user-space concept, while. PR or PRI – is the process's actual priority, as seen by the Linux kernel. | ||
<source lang=bash> | <source lang=bash> | ||
Line 41: | Line 43: | ||
=Articles= | =Articles= | ||
+ | *https://blogs.oracle.com/linux/post/task-priority | ||
*https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/ | *https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/ | ||
[Category:Linux]] | [Category:Linux]] |
Latest revision as of 09:24, 19 March 2024
nice and priority
NI – is the nice value, which is a user-space concept, while. PR or PRI – is the process's actual priority, as seen by the Linux kernel.
[azureuser@Kamstrup-2 ~]$ ps -eo user,pid,ppid,tid,pri,nice,cmd
USER PID PPID TID PRI NI CMD
root 1 0 1 19 0 /usr/lib/systemd/systemd --switched-root --system --deserialize 30
root 2 0 2 19 0 [kthreadd]
root 3 2 3 39 -20 [rcu_gp]
root 4 2 4 39 -20 [rcu_par_gp]
root 5 2 5 39 -20 [slub_flushwq]
root 6 2 6 39 -20 [netns]
root 8 2 8 39 -20 [kworker/0:0H-events_highpri]
root 10 2 10 39 -20 [mm_percpu_wq]
root 12 2 12 19 0 [rcu_tasks_kthre]
root 13 2 13 19 0 [rcu_tasks_rude_]
....
or full system including slice (cgroup>
[azureuser@Kamstrup-2 ~]$ ps -eo user,pid,ppid,tid,pri,nice,cgroup,cmd
USER PID PPID TID PRI NI CGROUP CMD
root 1 0 1 19 0 0::/init.scope /usr/lib/systemd/systemd --switched-root --system --deserialize 30
root 2 0 2 19 0 - [kthreadd]
root 3 2 3 39 -20 - [rcu_gp]
root 4 2 4 39 -20 - [rcu_par_gp]
root 5 2 5 39 -20 - [slub_flushwq]
root 6 2 6 39 -20 - [netns]
root 8 2 8 39 -20 - [kworker/0:0H-events_highpri]
root 10 2 10 39 -20 - [mm_percpu_wq]
root 12 2 12 19 0 - [rcu_tasks_kthre]
root 13 2 13 19 0 - [rcu_tasks_rude_]
root 14 2 14 19 0 - [rcu_tasks_trace]
root 15 2 15 19 0 - [ksoftirqd/0]
root 16 2 16 19 0 - [pr/ttyS0]
root 17 2 17 19 0 - [pr/tty1]
root 18 2 18 19 0 - [rcu_preempt]
root 19 2 19 139 - - [migration/0]
root 20 2 20 90 - - [idle_inject/0]
Articles
- https://blogs.oracle.com/linux/post/task-priority
- https://www.tecmint.com/set-linux-process-priority-using-nice-and-renice-commands/
[Category:Linux]]