At 06:13 PM 08/29/01 +0200, jmruiz@boe.es wrote:
>In solaris I get the following:
> SZ
> 103 << Before malloc
> SZ
>13311 << After malloc
> SZ
>13311 << after first free
> SZ
>13311 << second malloc - memory reused
> SZ
>13311 << after second free
>
>So, in Solaris, the memory is not returned to the OS, even if we do
>not longer use part of it.
Are you sure that's not an issue with the OS *reporting* the memory? Seems
amazing that the OS wouldn't get the memory back.
I just ran on FreeBSD 4.3-STABLE with minor change to ps:
VSZ RSS
856 364
VSZ RSS
98620 480
VSZ RSS
1024 480
VSZ RSS
10792 480
VSZ RSS
1024 480
Here's my Linux machine:
VSZ RSS
1108 356
VSZ RSS
98768 372
VSZ RSS
1108 368
VSZ RSS
10876 372
VSZ RSS
1108 368
And here's Solaris 2.6:
SZ VSZ RSS
103 824 632
SZ VSZ RSS
12311 98488 648
SZ VSZ RSS
12311 98488 648
SZ VSZ RSS
12311 98488 656
SZ VSZ RSS
12311 98488 656
Bill Moseley
mailto:moseley@hank.org
Received on Wed Aug 29 17:10:02 2001