[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Server X process taking 250 Mo - leaking ?



On 2002.06.18 08:04 Anthony DeRobertis wrote:
On Fri, 2002-06-14 at 15:31, Ian D. Stewart wrote:

> Can anybody else shed some light on the difference between SIZE and
RSS?

Size is how much memory has been allocated through brk(2). RSS is how
much is currently paged in.

So, a program can (and some do) brk a lot of memory, thus upping their
SIZE, but don't actually use it.

The RSS is how much actual RAM the program is taking.

Thanx Anthony.

According to 'man 2 brk',

	brk  sets  the end of the data segment to the value speci­
       fied by end_data_segment, when that value  is  reasonable,
       the  system  does  have enough memory and the process does
       not exceed its max data size (see setrlimit(2)).

So, if I'm understanding this correctly, SIZE indicates how much memory has been reserved for the application (and therefor not available to other applications), while RSS is the amount of memory currently being used by the application.


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: