Vous regardez une version antérieure (v. /display/EDDSDLTEL/Job+monitoring) de cette page.

afficher les différences afficher l'historique de la page

Vous regardez la version actuelle de cette page. (v. 1) afficher la version suivante »

top

To check cpu and memory usage of active jobs on a server use the command 'top':
    top

To only see only jobs of a specific user you can call it with:
    top -u username

By default, 'top' sorts all jobs by cpu usage. To sort them by memory usage just type 'M' (capital 'm') once 'top' is open.
To quit 'top' just press 'q'.

Output explanation

The following is from:
      https://www.howtogeek.com/668986/how-to-use-the-linux-top-command-and-understand-its-output/

The first line of numbers on the dashboard includes the time, how long your computer has been running, the number of people logged in, and what the load average has been for the past one, five, and 15 minutes. The second line shows the number of tasks and their states: running, stopped, sleeping, or zombie.

The third line displays the following central processing unit (CPU) values:

  • us: Amount of time the CPU spends executing processes for people in “user space.”
  • sy: Amount of time spent running system “kernel space” processes.
  • ni: Amount of time spent executing processes with a manually set nice value.
  • id: Amount of CPU idle time.
  • wa: Amount of time the CPU spends waiting for I/O to complete.
  • hi: Amount of time spent servicing hardware interrupts.
  • si: Amount of time spent servicing software interrupts.
  • st: Amount of time lost due to running virtual machines (“steal time”).

The fourth line shows the total amount (in kibibytes) of physical memory, and how much is free, used, and buffered or cached.

The fifth line shows the total amount (also in kibibytes) of swap memory, and how much is free, used, and available. The latter includes memory that’s expected to be recoverable from caches.

The column headings in the process list are as follows:

  • PID: Process ID.
  • USER: The owner of the process.
  • PR: Process priority.
  • NI: The nice value of the process.
  • VIRT: Amount of virtual memory used by the process.
  • RES: Amount of resident memory used by the process.
  • SHR: Amount of shared memory used by the process.
  • S: Status of the process. (See the list below for the values this field can take).
  • %CPU: The share of CPU time used by the process since the last update.
  • %MEM: The share of physical memory used.
  • TIME+: Total CPU time used by the task in hundredths of a second.
  • COMMAND: The command name or command line (name + options).

Memory values are shown in kibibytes. The COMMAND column is off-screen, to the right—it didn’t fit in the image above, but we’ll see it shortly.

The status of the process can be one of the following:

  • D: Uninterruptible sleep
  • R: Running
  • S: Sleeping
  • T: Traced (stopped)
  • Z: Zombie


  • Aucune étiquette