Difference between revisions of "Nice linux"
m  | 
				m (→nice and priority)  | 
				||
| Line 17: | Line 17: | ||
....  | ....  | ||
</source>  | </source>  | ||
| + | or full system including slice (cgroup>  | ||
| + | <source lang=bash>  | ||
| + | [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]  | ||
| + | </slice>  | ||
| + | |||
=Articles=  | =Articles=  | ||
*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]]  | ||
Revision as of 08:46, 19 March 2024
nice and priority
[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> <source lang=bash> [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] </slice>
Articles
[Category:Linux]]