|
top - 13:37:58 up 51 days, 20:48, 2 users, load average: 0.05, 0.03, 0.02
Tasks: 290 total, 1 running, 289 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 6096544k total, 4587432k used, 1509112k free, 437192k buffers
Swap: 8385888k total, 0k used, 8385888k free, 2846684k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22140 oracle 15 0 1694m 1.2g 1.1g S 0.0 19.8 1:20.40 oracle 22150 oracle 15 0 1688m 944m 936m S 0.0 15.9 0:30.19 oracle 22138 oracle 15 0 1681m 937m 934m S 0.0 15.7 0:02.14 oracle 4920 oracle 15 0 1686m 916m 908m S 0.0 15.4 3:14.46 oracle 4922 oracle 15 0 1686m 876m 868m S 0.0 14.7 2:17.30 oracle 4916 oracle 15 0 1686m 814m 806m S 0.0 13.7 1:55.11 oracle 22146 oracle 15 0 1686m 753m 745m S 0.0 12.7 0:31.55 oracle VIRT:virtual memory usage
1, the amount of virtual memory that the process "needs", including the libraries, code, data, etc. used by the process
2If a process requests 100m of memory, but only uses 10m, it will increase by 100m, not the actual usage
RES: resident memory usage
1, the amount of memory currently used by the process, but does not include swap out
2, sharing that contains other processes
3If you apply for 100m of memory, it will only grow by 10m if you actually use 10m, which is the opposite of VIRT
4Regarding the memory occupied by the library, it only counts the memory size of the loaded library files
SHR:shared memory
1, in addition to the shared memory of its own processes, it also includes the shared memory of other processes
2Although the process uses only a few functions of the shared library, it contains the size of the entire shared library
3, Formula for calculating the size of physical memory occupied by a process: RES – SHR
4, swap out, it will come down
DATA
1, the memory occupied by the data. If the top is not displayed, press the f key to show it.2The real data space required by the program is really to be used in operation.
|