Priority Management
Define Priority. Its Principle**
Getting ready
$ vagrant up
$ vagrant ssh
How to do it
From the man pages nice, it run a program with modified scheduling priority.
Setting up nice value to a process
check pid for lunch nice value
$ ps axo nice,pid,comm --sort=-nice
NI PID COMMAND
19 687 khugepaged
5 25 ksmd
0 1 systemd
0 2 kthreadd
0 3 ksoftirqd/0
0 6 kworker/u2:0
- 7 migration/0
0 8 rcu_bh
0 9 rcuob/0
0 10 rcu_sched
0 11 rcuos/0
- 12 watchdog/0
0 14 kdevtmpfs
0 20 khubd
0 24 kswapd0
0 26 fsnotify_mark
0 81 kauditd
0 227 scsi_eh_0
0 230 kworker/u2:2
0 231 scsi_eh_1
0 234 scsi_eh_2
0 358 xfsaild/dm-1
0 426 systemd-journal
0 436 lvmetad
0 450 systemd-udevd
0 509 xfsaild/sda1
0 544 firewalld
0 547 avahi-daemon
0 548 rsyslogd
0 552 tuned
0 553 systemd-logind
0 554 dbus-daemon
0 564 agetty
0 569 avahi-daemon
0 605 iprinit
0 606 iprupdate
0 629 iprdump
0 698 NetworkManager
0 771 polkitd
0 1203 sshd
0 1930 master
0 2001 qmgr
0 2387 dhclient
0 2402 sshd
0 2405 sshd
0 2406 bash
0 15730 sshd
0 15733 sshd
0 15734 bash
0 15847 su
0 15851 bash
0 16019 crond
0 16173 chronyd
0 16434 atd
0 16551 kworker/0:3
0 16562 pickup
0 16568 kworker/0:0
0 16619 kworker/0:1
0 16621 ps
-4 513 auditd
-20 5 kworker/0:0H
-20 13 khelper
-20 15 netns
-20 16 writeback
-20 17 kintegrityd
-20 18 bioset
-20 19 kblockd
-20 21 md
-20 27 crypto
-20 36 kthrotld
-20 38 kmpath_rdacd
-20 39 kpsmoused
-20 58 deferwq
-20 223 ata_sff
-20 229 scsi_tmf_0
-20 233 scsi_tmf_1
-20 235 scsi_tmf_2
-20 271 kworker/0:1H
-20 330 kdmflush
-20 331 bioset
-20 338 kdmflush
-20 339 bioset
-20 352 xfsalloc
-20 353 xfs_mru_cache
-20 354 xfslogd
-20 355 xfs-data/dm-1
-20 356 xfs-conv/dm-1
-20 357 xfs-cil/dm-1
-20 505 xfs-data/sda1
-20 506 xfs-conv/sda1
-20 507 xfs-cil/sda1
Now put the nice value
$ nice -n 15 gedit &
How it work
Renice
**Set Renice value with command Line. Its Syntax.