Linux. Top: различия между версиями
Cless (обсуждение | вклад) |
Cless (обсуждение | вклад) |
||
| (не показана 1 промежуточная версия этого же участника) | |||
| Строка 49: | Строка 49: | ||
Virtual memory, labelled VIRT: How much memory your process thinks it’s using. Usually much bigger than RES, thanks to the Linux kernel’s clever memory management. | Virtual memory, labelled VIRT: How much memory your process thinks it’s using. Usually much bigger than RES, thanks to the Linux kernel’s clever memory management. | ||
This includes swapped memory, the memory from external libraries, and allocated memory that’s not used. | |||
'''RES''': Amount of resident memory used by the process. | '''RES''': Amount of resident memory used by the process. | ||
Resident memory, labelled RES: How much physical memory, how much RAM, your process is using. RES is the important number. | Resident memory, labelled RES: How much physical memory, how much RAM, your process is using. RES is the important number. | ||
This includes memory allocated from shared libraries, given they are still present in memory. Also, it includes all heap and stack memory. | |||
'''SHR''': Amount of shared memory used by the process. | '''SHR''': Amount of shared memory used by the process. | ||
| Строка 65: | Строка 69: | ||
'''COMMAND''': The command name or command line (name + options). | '''COMMAND''': The command name or command line (name + options). | ||
Текущая версия на 23:37, 26 ноября 2024
Shortcuts
Человеческое отображение объема памяти (human readable)
"e" в процессе работы top
Отсортировать по памяти
"M" в процессе работы top
Информация о процессе
top -b -n 1 -p 1184
TOP LEGEND
%Cpu(s):
In "top" what are us, sy, ni, id, wa, hi, si and st (for CPU usage)?
us - user cpu time (or) % CPU time spent in user space
sy - system cpu time (or) % CPU time spent in kernel space
ni - user nice cpu time (or) % CPU time spent on low priority processes
id - idle cpu time (or) % CPU time spent idle
wa - io wait cpu time (or) % CPU time spent in wait (on disk)
hi - hardware irq (or) % CPU time spent servicing/handling hardware interrupts
si - software irq (or) % CPU time spent servicing/handling software interrupts
st - steal time % CPU time in involuntary wait by virtual cpu while hypervisor is servicing another processor (or) % CPU time stolen from a virtual machine
Process table
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.
Virtual memory, labelled VIRT: How much memory your process thinks it’s using. Usually much bigger than RES, thanks to the Linux kernel’s clever memory management.
This includes swapped memory, the memory from external libraries, and allocated memory that’s not used.
RES: Amount of resident memory used by the process.
Resident memory, labelled RES: How much physical memory, how much RAM, your process is using. RES is the important number.
This includes memory allocated from shared libraries, given they are still present in memory. Also, it includes all heap and stack memory.
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).