What is Resident Set Size (RSS)?

What is Resident Set Size (RSS)?

Post by Raymon » Sat, 29 Sep 2001 12:45:12



What is the meaning of RSS(Resident Set Size) of the output of ps
and prstat?

RCLM

 
 
 

What is Resident Set Size (RSS)?

Post by Rich Tee » Sat, 29 Sep 2001 13:42:21



Quote:> What is the meaning of RSS(Resident Set Size) of the output of ps
> and prstat?

It's the amount of RAM actually used by the process - as opposed
to that which has been paged (swapped) out.  For example, a 10 MB
process might have an RSS of 8 MB; this means that 8 MB of the
process' virtual memory is in RAM, and the other 2 MB is paged
out to disk.

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

What is Resident Set Size (RSS)?

Post by r.. » Sun, 30 Sep 2001 15:37:49




> > What is the meaning of RSS(Resident Set Size) of the output of ps
> > and prstat?

> It's the amount of RAM actually used by the process - as opposed
> to that which has been paged (swapped) out.  For example, a 10 MB
> process might have an RSS of 8 MB; this means that 8 MB of the
> process' virtual memory is in RAM, and the other 2 MB is paged
> out to disk.

Any way to limit the max RSS (quota) on a per process basis,
without limiting the process's size (swap usage)?  If sometimes
allowed to accumulate a lot of RAM, transfer back to the higher
priority processes (user's desktop session) when they need it is
too slow.

Like a "limit resident" instead of "limit datasize"?

 
 
 

What is Resident Set Size (RSS)?

Post by Joerg Schilli » Sun, 30 Sep 2001 19:08:30






>> > What is the meaning of RSS(Resident Set Size) of the output of ps
>> > and prstat?
...
>Any way to limit the max RSS (quota) on a per process basis,
>without limiting the process's size (swap usage)?  If sometimes
>allowed to accumulate a lot of RAM, transfer back to the higher
>priority processes (user's desktop session) when they need it is
>too slow.

>Like a "limit resident" instead of "limit datasize"?

You could do that with any SunOS release prior to SunOS-4.0 using
limit memoryuse.

On 4.0 this was still present but non-functional.

The reason is that Sun introduced a new orthogonal memory management concept
with SnOS-4.0 and this did not allow to find an 'owner' for a page from
the page info (that is used by the pager daemon).

In 1988 I hacked the scheduler for SunOS-4.0 and found a way to make it work
agin. It was a simple hack. If the scheduler checked a process to decide whether
it should be the next to run, I compared the RSS size with the limit.
If the process was using more than the limit I called swapout() and thus the
process was less 'nice' than other processes. This worked like a charm
for background processes!

Unfortunately, Sun decided to remove the apropriate resource limit with
Solaris 2 aka SunOS-5.x

--



URL:  http://www.fokus.gmd.de/usr/schilling    ftp://ftp.fokus.gmd.de/pub/unix

 
 
 

What is Resident Set Size (RSS)?

Post by Rich Tee » Mon, 01 Oct 2001 02:19:25



Quote:> Any way to limit the max RSS (quota) on a per process basis,
> without limiting the process's size (swap usage)?  If sometimes

AFAIK, no, there isn't.

Quote:> allowed to accumulate a lot of RAM, transfer back to the higher
> priority processes (user's desktop session) when they need it is
> too slow.

IF they're higher priority, they'll be running more often anyay.
Depending on what OS your using, priority paging might help you
out in this situation.

Quote:> Like a "limit resident" instead of "limit datasize"?

If priority paging doesn't do the trick, I can only think of one
more idea: buy more RAM.

--
Rich Teer

President,
Rite Online Inc.

Voice: +1 (250) 979-1638
URL: http://www.rite-online.net

 
 
 

What is Resident Set Size (RSS)?

Post by Alan Coopersmi » Mon, 01 Oct 2001 13:10:55



|Any way to limit the max RSS (quota) on a per process basis,
|without limiting the process's size (swap usage)?

To understand why this would be difficult and not very useful, remember
that RSS includes pages of shared objects loaded into the process,
so a processes RSS can increase because a completely unrelated process
loaded in one of the pages in the shared object they both have loaded.

On the other hand, it sounds like what you are looking for is greater
control over how resources are allocated between processes, which is
available via the Solstice Resource Manager product:
        http://www.sun.com/software/resourcemgr/

--
________________________________________________________________________


  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

What is Resident Set Size (RSS)?

Post by r.. » Thu, 04 Oct 2001 17:41:15




> |Any way to limit the max RSS (quota) on a per process basis,
> |without limiting the process's size (swap usage)?

> To understand why this would be difficult and not very useful, remember
> that RSS includes pages of shared objects loaded into the process,
> so a processes RSS can increase because a completely unrelated process
> loaded in one of the pages in the shared object they both have loaded.

Sounds livable, unless I haven't got the point.  User can pad their quota
settings for it.  The process would start slowly paging out at that time
to get back under quota (the intention) instead of later when memory got
really short (when it's too late to preserve near-zero-impact to the
desktop experience).  If using "limit datasize" to restrict a process's
worst case swap impact, are you similarly not quite fairly counting
shared libs?

Stabbing at an improvement:  Apply the quota instead to a new count,
AccessedSetSize, and defer counting each loaded shared object page towards
any process's "ASS" until they access it first time. ;)

Quote:> On the other hand, it sounds like what you are looking for is greater
> control over how resources are allocated between processes, which is
> available via the Solstice Resource Manager product:
>    http://www.sun.com/software/resourcemgr/

I'll check it out.  Thanks for the encouraging responses.  Nice to
hear it was once.  How did SUNOS-before-4 handle it for shared libs?
 
 
 

1. xterm: huge process size and resident set size

Solaris 9 FCS with Recommended patches through approx. October 2002;
CDE.

What causes an xterm to hang for on the order of a minute when I
resize it? The system is banging noisily on the disk the whole time. I
have approx. 720 MB of free swap out of a GB, 320 MB RAM, and / is
less than 50% full. This is an Ultra 10/ 300 MHz, but I have seen
similar behavior on many other systems and at other installations, so
I'm convinced that it's either an xterm or a Solaris issue.

The scroll-back log is not even that large (although I always start my
xterms with "-sl 10000" (ten thousand lines max scrollback).

I see that the xterm process size is 145M and RSS is 134M, so that
seems to be the immediate cause of the performance issue. The question
then becomes, what could cause those numbers to be so large?, because
most of my other xterms have sizes around 20MB and RSSs of around 3MB.

Thanks for any suggestions.

--Bruce

2. Problems with Netscape in RH 6.0

3. Data Set Resident Size

4. Help! Can't install XWindows

5. resident set size vs. real memory

6. ftp installing of Redhat linux

7. ssh-agent's resident set size increase 8K after each authentication

8. minicom to slow, need help

9. Resident set size on Solaris

10. Swap space and resident set size

11. Solaris: resident size of the process

12. Process resident & total size

13. how to limit resident size of process