Knowledgebase

Portal Home > Knowledgebase > Articles Database > Can someone explain VIRT and RES in TOP?


Can someone explain VIRT and RES in TOP?




Posted by chasebug, 09-14-2010, 09:21 PM
The 170m does not mean it is using 170m of memory right?

Posted by Lightwave, 09-15-2010, 12:54 AM
man top: 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 calculated from the /proc/#/state VmSize field.) VIRT = SWAP + RES. RES -- Resident size (kb) The non-swapped physical memory a task has used.

Posted by InstaCarma_Support, 09-15-2010, 12:54 AM
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 calculated from the /proc/#/state VmSize field.) VIRT = SWAP + RES. RES -- Resident size (kb) The non-swapped physical memory a task has used.

Posted by chasebug, 09-15-2010, 03:18 AM
As long as the RES is low usage, the server won't have performance affect?

Posted by madaboutlinux, 09-15-2010, 09:40 AM
Yes, something similar. As long as RES is lower, your program will require less memory and less SWAP will be used thus reducing the drain on the system's memory and does increase the performance. Not easy to achieve it though as it requires proper/required compilation of modules and other stuffs.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
lower nfs resources (Views: 568)


Language:

Contact us