Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Environment: Red Hat Enterprise Linux ES release 4 (Nahant Update 5)

Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

top - 16:52:21 up 332 days, 9:09, 2 users, load average: 0.19, 0.22, 0.22
Tasks: 186 total, 1 running, 185 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.5% us, 0.6% sy, 0.0% ni, 96.7% id, 0.0% wa, 0.1% hi, 0.2% si
Mem: 8164644k total, 8146632k used, 18012k free, 16696k buffers
Swap: 16779884k total, 2672616k used, 14107268k free, 670484k cached

PID     VIRT   RES   SHR   S %CPU %MEM SWAP  CODE  DATA   COMMAND
28930   1635m  878m  15m   S 0    11.0 757m  56    1.5g   java
6383    924m   420m  4016  S 5    5.3 503m   56    852m   java
24201   1695m  416m  6008  S 3    5.2 1.2g   56    1.6g   java
10463   1021m  300m  6052  S 1    3.8 720m   56    915m   java
2263    872m   158m  14m   S 0    2.0 714m   52    747m   java
16611   1334m  118m  3528  S 0    1.5 1.2g   56    1.2g   java
7087    359m   48m   6628  S 0    0.6 310m   16    269m   emagent
14821   198m   35m   832   S 0    0.5 162m   424   197m   rvd
3928   36012   12m   4232  S 0    0.2 22m    176   8080   heartbeat
3309   23692   8004  4116  S 0    0.1 15m    392   7524   opmn
6285   19312   7188  1360  S 0    0.1 11m    244   6496   perfalarm
17089  99.6m   6076  1752  S 0    0.1 93m    24     16m   snmpd

As document says:VIRT=SWAP+RES,RES=CODE+DATA

but in the front ,RES≠CODE+DATA,why ?

the sum of each process's SWAP will equal to which value ?

the sum of each process's VIRT will equal to which value ?

share|improve this question
    
i'm sorry about the content of the Top command,you can see a screen print at dl.javaeye.com/upload/picture/pic/80774/… –  wendli2008 Jan 26 '11 at 9:31
4  
Use command man top and read. Sorry, I think this time RTFM is more than justified answer. Come back and ask if there's something in the man page you did not understand. –  Janne Pikkarainen Jan 26 '11 at 9:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.