Operating System - HP-UX
1833764 Members
2044 Online
110063 Solutions
New Discussion

sz size and RSS size difference?

 
???_185
Regular Advisor

sz size and RSS size difference?

You can see sz size by this command .
UNIX95=1 ps -efo vsz,sz,pid,args |grep -v grep | sort -rnk 1 | more

and you know RSS size when you command glance

As I know, sz and RSS size is physical memory occupied on system.
I want to know how diffent these word is?

4 REPLIES 4
Warren_9
Honored Contributor

Re: sz size and RSS size difference?

hi,

from the ps man page and glance help .

SZ:
The size in physical pages of the core image of the process, including text, data, and stack space.

RSS:
The size (in KB) of resident memory for the process. This consists of text,data, stack, as well as the process' portion of shared memory regions.

Both have TEXT+DATA+STACK but the process' portion of shared memory only count in RSS and not in ths SZ.
D Block 2
Respected Contributor

Re: sz size and RSS size difference?

sz != RSS
Golf is a Good Walk Spoiled, Mark Twain.
Amit Agarwal_1
Trusted Contributor

Re: sz size and RSS size difference?

SZ - the total size of the process i.e. text+data+stack.

RSS - total amt of physical memory that is currently occupied by this process excluding the swap space. total_pages * page_size

That's why RSS <= SZ

-Amit
???_185
Regular Advisor

Re: sz size and RSS size difference?

so, is there the way can convert RSS to sz?
you mean sz is just physical memory size,
RSS is a mount of physical memory size.
right?