Sponsored Content
Full Discussion: Prstat rss and swap
Operating Systems Solaris Prstat rss and swap Post 302822271 by jlliagre on Monday 17th of June 2013 09:23:59 AM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
POSIX_GETRLIMIT(3)							 1							POSIX_GETRLIMIT(3)

posix_getrlimit - Return info about system resource limits

SYNOPSIS
array posix_getrlimit (void ) DESCRIPTION
posix_getrlimit(3) returns an array of information about the current resource's soft and hard limits. Each resource has an associated soft and hard limit. The soft limit is the value that the kernel enforces for the corresponding resource. The hard limit acts as a ceiling for the soft limit. An unprivileged process may only set its soft limit to a value from 0 to the hard limit, and irreversibly lower its hard limit. RETURN VALUES
Returns an associative array of elements for each limit that is defined. Each limit has a soft and a hard limit. List of possible limits returned +-----------+---------------------------------------------------+ |Limit name | | | | | | | Limit description | | | | +-----------+---------------------------------------------------+ | core | | | | | | | The maximum size of the core file. When 0, not | | | core files are created. When core files are | | | larger than this size, they will be truncated at | | | this size. | | | | | totalmem | | | | | | | The maximum size of the memory of the process, | | | in bytes. | | | | |virtualmem | | | | | | | The maximum size of the virtual memory for the | | | process, in bytes. | | | | | data | | | | | | | The maximum size of the data segment for the | | | process, in bytes. | | | | | stack | | | | | | | The maximum size of the process stack, in bytes. | | | | | rss | | | | | | | The maximum number of virtual pages resident in | | | RAM | | | | | maxproc | | | | | | | The maximum number of processes that can be cre- | | | ated for the real user ID of the calling process. | | | | | memlock | | | | | | | The maximum number of bytes of memory that may | | | be locked into RAM. | | | | | cpu | | | | | | | The amount of time the process is allowed to use | | | the CPU. | | | | | filesize | | | | | | | The maximum size of the data segment for the | | | process, in bytes. | | | | |openfiles | | | | | | | One more than the maximum number of open file | | | descriptors. | | | | +-----------+---------------------------------------------------+ EXAMPLES
Example #1 Example use of posix_getrlimit(3) <?php $limits = posix_getrlimit(); print_r($limits); ?> The above example will output something similar to: Array ( [soft core] => 0 [hard core] => unlimited [soft data] => unlimited [hard data] => unlimited [soft stack] => 8388608 [hard stack] => unlimited [soft totalmem] => unlimited [hard totalmem] => unlimited [soft rss] => unlimited [hard rss] => unlimited [soft maxproc] => unlimited [hard maxproc] => unlimited [soft memlock] => unlimited [hard memlock] => unlimited [soft cpu] => unlimited [hard cpu] => unlimited [soft filesize] => unlimited [hard filesize] => unlimited [soft openfiles] => 1024 [hard openfiles] => 1024 ) NOTES
Note This is a not POSIX function, but is common on BSD and System V systems. If the system does not support this function, then it will not be included at compile time. This may be checked with function_exists(3). SEE ALSO
man page GETRLIMIT(2). PHP Documentation Group POSIX_GETRLIMIT(3)
All times are GMT -4. The time now is 06:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy