Prstat rss and swap


 
Thread Tools Search this Thread
Operating Systems Solaris Prstat rss and swap
# 1  
Old 06-17-2013
Display Prstat rss and swap

Hi,

someone please explain me what's the difference b/w rss and swap in PRSTAT.

i'm getting output like below,

NPROC USERNAME SWAP RSS MEMORY TIME CPU
70 weblogic 48G 46G 73% 449:17:03 0.4%

swap always remains 48G, but rss will change frequently,, now, there is a difference of 2GB in b/w swap and rss, that means weblogic can use another 2GB??

correct me if im wrong..

Thanks in advance.
# 2  
Old 06-17-2013
SWAP means the total virtual memory size of the process, while rss means the portion of the vitual memory which is actually in physical memory.

See Man Page for prstat (opensolaris Section 1) - The UNIX and Linux Forums for more information
# 3  
Old 06-17-2013
swap it the size of the process virtual memory space (includes RAM but also swap area and unused yet reserved space)
rss is the subset of the former metric currently stored in RAM.

Edit: hergp was clearly faster ...
# 4  
Old 06-17-2013
Then RSS can utilize/extend to maximum size of memory in SWAP ... correct ??
here my scenario is, some of the processes are getting crashed when RSS size almost reaches SWAP size, then it cannot allocate new memory in it..
correct me if im wrong..

Thanks
# 5  
Old 06-17-2013
That's right. The operating system tries to avoid this situation by paging (and swapping). But if a process protects too much of it's address space against paging, it sometimes has a really hard time to do so.
# 6  
Old 06-17-2013
Quote:
Originally Posted by hergp
That's right. The operating system tries to avoid this situation by paging (and swapping). But if a process protects too much of it's address space against paging, it sometimes has a really hard time to do so.
thanks a lot,
currently rss is reaching size.
Code:
PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP       
12503 weblogic 3048M 2968M sleep   59    0   6:32:06 0.1% java/150

so, if it RSS reaches SIZE , then OS tries to use the new memory in swap. here, can't we manually increase the size of the process. OR any parameter to limit the process size , so that we can increase it.
# 7  
Old 06-17-2013
Quote:
Originally Posted by sunnys7143
Then RSS can utilize/extend to maximum size of memory in SWAP ... correct ??
The RSS value is always less than or equal than the SWAP value, but both of these are dynamic.
SWAP is not a hard limit as the process is free to allocate more memory, i.e. increase its prtstat SWAP value.
Quote:
here my scenario is, some of the processes are getting crashed when RSS size almost reaches SWAP size, then it cannot allocate new memory in it..
correct me if im wrong.
Your process should be able to allocate more virtual memory unless the OS has no more virtual memory free or if the process itself has a hard limit configured (eg: java -Xmx).
Use "swap -s" to figure it out.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies

2. Solaris

RSS of prstat vs RSS of PS

Hi, When I sum the RSS number in the ps command for a specific user and compare it with the RSS values of the prstat command of the same user - there is a big difference. Server details: Solaris 10 5/09 s10s_u7wos_08 SPARC prstat output: NPROC USERNAME SWAP RSS MEMORY TIME ... (2 Replies)
Discussion started by: amitlib
2 Replies

3. Solaris

prstat RSS memory

Hi everyone, was hoping someone might be able to help me understand what I am seeing on one of our solaris systems. prstat -s size -a is showing user oradba as being top virtual memory consumption. 639 oradba 3012G 2951G 100% 59:44:01 25% why is it saying 3012G size and 2951G RSS... (6 Replies)
Discussion started by: k4boy
6 Replies

4. Solaris

RSS pmap and prstat

Hi, I have some question about memory in Solaris. How it's possible that prstat -a show me that some process using 230M RSS and when I'm using pmap -x show me that this same process using only 90M RSS ? (0 Replies)
Discussion started by: deivo
0 Replies

5. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

6. Red Hat

swap not defined as swap

free -m : 1023 total swap space created default partition /dev/sdb1 50M using fdisk. i did write the changes. #mkswap /dev/sdb1 #swapon /dev/sdb1 free -m : 1078 total swap space this shows that the swap is on Question : i did not change the type LINUX SWAP (82) in fdisk. so why is... (5 Replies)
Discussion started by: dplinux
5 Replies

7. Solaris

prstat O/P

Good Evening everyone, I am confused about prstat O/P as it shows memory values which are different from actual value.Below is the O/P of prstat command and swap commands. NPROC USERNAME SIZE RSS MEMORY TIME CPU 48 root 2113M 1590M 1.2% 45:09.39 32% 31 daemon ... (7 Replies)
Discussion started by: vvpotugunta
7 Replies

8. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. Post Here to Contact Site Administrators and Moderators

Rss

Could RSS-support mod be installed for this forum? (3 Replies)
Discussion started by: eugrus
3 Replies

10. UNIX for Dummies Questions & Answers

Help with prstat

Hello, The last line of prstat shows load average. I am unable to figure out what actually it is. I have read the man pages and also googled, all for no use. Can somebody help me, as to what should be the avg. load of the system for best performance and how is this load of prstat calculated. (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
Login or Register to Ask a Question