Linux. Top: различия между версиями
Cless (обсуждение | вклад) (Новая страница: «Категория:Linux Категория:Self-education __ОБЯЗАТЕЛЬНОЕ_ОГЛАВЛЕНИЕ__») |
Cless (обсуждение | вклад) |
||
| Строка 2: | Строка 2: | ||
[[Категория:Self-education]] | [[Категория:Self-education]] | ||
__ОБЯЗАТЕЛЬНОЕ_ОГЛАВЛЕНИЕ__ | __ОБЯЗАТЕЛЬНОЕ_ОГЛАВЛЕНИЕ__ | ||
= Shortcuts = | |||
=== Человеческое отображение объема памяти (human readable) === | |||
"'''e'''" в процессе работы top | |||
=== Отсортировать по памяти === | |||
"'''M'''" в процессе работы top | |||
=== Информация о процессе === | |||
<code>top -b -n 1 -p 1184</code> | |||
= 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. | |||
'''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. | |||
'''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). | |||
<nowiki>--------------------------------------------------------------------------------</nowiki> | |||
Версия 23:29, 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.
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.
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).
--------------------------------------------------------------------------------