Viewing the priority of a process

The priority of a process can be viewed using different commands in CentOS 7, as follows:

  • Using gnome-system-monitor to display the nice level in GUI mode. This is the GUI Task Manager in CentOS 7. It is invoked by pressing Application | System Tools | System Monitor:

  • The top command can also be used to display the priority of processes. It shows two columns, named NI (displaying the nice level mapping of processes) and PR (displaying the priority value mapping in a kernel to a larger priority queue).
  •  The ps command can also be used to display the nice level by using o option to print selected columns, which will also include the nice field, as shown in the following screenshot:

If a minus (-) symbol is displayed in the output of the ps command, then it means that a process is running with a different scheduling policy with a higher priority.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.218.226