1846563 Members
1791 Online
110256 Solutions
New Discussion

Re: process memory size~

 
???_185
Regular Advisor

process memory size~

UNIX95= ps -e -o ruser,vsz,pid,ppid,args|sort -rnk2 |head -5
oracle 131376 2473 1 ora_arc1_CDR
oracle 131376 2471 1 ora_arc0_CDR
oracle 131376 2463 1 ora_lgwr_CDR
oracle 123392 28555 1 oracleCDR (LOCAL=NO)
oracle 123184 2461 1 ora_dbw1_CDR
root@cdr:/]# ps -elf | awk '{print $10" "$4" "$16}' | sort -n | tail -5 | sort -rn
31820 2473 ora_arc1_CDR
31820 2471 ora_arc0_CDR
31820 2463 ora_lgwr_CDR
30540 2461 ora_dbw1_CDR
30540 2459 ora_dbw0_CDR

in glance RSS of ora_arc1_CDR is 42mb
first sentence is vsz size and second is vsz.
third is RSS
ora_Arc1_CDR is 131376, 31820 and 42 size.
is it all same?
if so, how cam I read?
131376 bytes? 31820 bytes, 42mb?
what difference is it?

3 REPLIES 3
Joseph Loo
Honored Contributor

Re: process memory size~

hi,

vsz is size in kilobytes, thus, the process associated with ora_arc1_CDR is taking about 131MB of memory.

the one u have taken from "ps -elf" is not vsz but sz which is size in physical pages (about 4kb).

"man ps" for more info.

regards.
what you do not see does not mean you should not believe
RAC_1
Honored Contributor

Re: process memory size~

vsz - virtual segment size (contains ram occupied + virtual memory)
sz-Same as above except that it also counts text, stack and data sizes.
RSS-resident segment size. All the code of program need not to be in memory. This is the size that is resident in memory at given point in time.
There is no substitute to HARDWORK
???_185
Regular Advisor

Re: process memory size~

what is the difference between vsz and rss?
overall size in the sytem is vsz~
and it just is ocuppied in memory is rss?
if so ,in what kind of situation do i have to view these?