- 论坛徽章:
- 1
|
本帖最后由 winway1988 于 2012-10-11 15:37 编辑
1、top里- Cpu(s): 0.0%us, 0.1%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
复制代码 各个参数的含义,特别是st steal time的概念
2、top里的PR、NI的含义及区别?- h: PR -- Priority
- The priority of the task.
- i: NI -- Nice value
- The nice value of the task. A negative nice value means higher priority,
- whereas a positive nice value means lower priority. Zero in this field sim-
- ply means priority will not be adjusted in determining a task’s dispatcha-
- bility.
复制代码 这是man的,好像没说明白
3、top里的VIRT、RES、SHR、SWAP、CODE、DATA的含义及关系?- o: VIRT -- Virtual Image (kb)
- The total amount of virtual memory used by the task. It includes all code,
- data and shared libraries plus pages that have been swapped out. (Note: you
- can define the STATSIZE=1 environment variable and the VIRT will be calcu-
- lated from the /proc/#/state VmSize field.)
- VIRT = SWAP + RES.
- p: SWAP -- Swapped size (kb)
- The swapped out portion of a task’s total virtual memory image.
- q: RES -- Resident size (kb)
- The non-swapped physical memory a task has used.
- RES = CODE + DATA.
- r: CODE -- Code size (kb)
- The amount of physical memory devoted to executable code, also known as the
- ’text resident set’ size or TRS.
- s: DATA -- Data+Stack size (kb)
- The amount of physical memory devoted to other than executable code, also
- known as the ’data resident set’ size or DRS.
- t: SHR -- Shared Mem size (kb)
- The amount of shared memory used by a task. It simply reflects memory that
- could be potentially shared with other processes.
复制代码 其中RES = CODE + DATA和top显示的数据对不上为什么?- PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ SWAP CODE DATA COMMAND
- 14186 root 15 0 87956 3636 2912 S 0 0.1 0:00.70 82m 360 692 sshd
- 15698 winway 15 0 12716 1092 816 R 0 0.0 0:01.59 11m 56 484 top
- 15699 root 16 0 97.9m 3256 2092 S 0 0.1 0:00.23 94m 2508 1432 vim
- 1 root 15 0 10328 696 584 S 0 0.0 0:01.46 9632 36 300 init
复制代码 4、free里的buffers、cached的含义及区别?- $ free
- total used free shared buffers cached
- Mem: 4051784 331948 3719836 0 9408 207768
- -/+ buffers/cache: 114772 3937012
- Swap: 2031608 84 2031524
复制代码 谢谢大家! |
|