1827293 Members
3055 Online
109717 Solutions
New Discussion

top command

 
jay_40
Occasional Contributor

top command

Hi,

What's difference between the field SIZE and RES?

Thank you
5 REPLIES 5
George Abraham_1
Regular Advisor

Re: top command

hai

See the man pages of Top..seems to be clear...

regards
george
keep smiling
Pete Randall
Outstanding Contributor

Re: top command

From man top:
SIZE Total size of the process in kilobytes.
This includes text, data, and stack.

RES Resident size of the process in kilobytes.
The resident size information is, at best, an approximate value.

Hope this helps,
Pete

Pete
Stefan Farrelly
Honored Contributor

Re: top command

SIZE Total size of the process in kilobytes.
This includes text, data, and stack.

RES Resident size of the process in kilobytes.
The resident size information is, at best,
an approximate value.


So RES Means approx how much memory it is actually using even though the program my be a lot larger in size and grow.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Frederic Sevestre
Honored Contributor

Re: top command

Hi,

man top says :

SIZE Total virtual size of the process in kilobytes. This includes virtual sizes of text, data, stack, mmap regions, shared memory regions and IO mapped regions. This may also include virtual memory regions shared with other processes.

RES Resident size of the process in kilobytes. It includes the sizes of all private
regions in the process. The resident size information is, at best, an approximate value.

Fr??d??ric

Crime doesn't pay...does that mean that my job is a crime ?
Hai Nguyen_1
Honored Contributor

Re: top command

Jay,
Here is the difference:
SIZE Total size of the process in kilobytes.
This includes text, data, and stack.
RES Resident size of the process in kilobytes.
The resident size information is, at best,
an approximate value.

Hai