On Aug 24, 2006, at 2:59 AM, Philip M. Gollucci wrote:
> Every one of those looks as I would expect.


really? i'd expect the memory usage to be more uniform

> RSS is not shared RAM, but memory resident -- the rest in is
> swapped out.

yeah, i didn't finish the gtop tests yet. i kind of passed out.

they're extremely odd for 2 reasons:

a- ubuntu's shared memory increased after 1 request. i tried a few
different times. every time i saw an increase in shared, from a few
k to 5mb
b- freebsd is showing a larger resident than size
c- LARGE difference in what gtop is reporting as shared
ubuntu is showing a size 42mb
30mb shared
12mb per child
freebsd is showing a size of 46mb
8mb shared
38 unshared

--------

Ubuntu

Startup ps
root 4722 4.3 17.5 41264 33464 ? Ss 04:32 0:04 /
usr/sbin/apache2 -k start
www-data 4726 0.0 16.2 41264 31104 ? S 04:32 0:00 /
usr/sbin/apache2 -k start

Request 1 GTOP: (4726)
->size 42389504
->vsize 42389504
->resident 33120256
->share 2961408
->rss 33120256

root 4722 3.0 17.5 41264 33464 ? Ss 04:32 0:04 /usr/
sbin/apache2 -k start
www-data 4726 0.1 16.9 41396 32412 ? S 04:32 0:00 /usr/
sbin/apache2 -k start

Request 2 GTOP: (4726)
->size 42389504
->vsize 42389504
->resident 33189888
->share 2998272
->rss 33189888

root 4722 2.5 17.5 41264 33464 ? Ss 04:32 0:04 /usr/
sbin/apache2 -k start
www-data 4726 0.1 16.9 41476 32440 ? S 04:32 0:00 /usr/
sbin/apache2 -k start


FreeBSD 6

Startup ps
root 93830 15.8 5.1 54928 51616 ?? Ss 4:44AM 0:02.42 /
usr/local/sbin/httpd
www 93834 0.0 5.1 54984 51672 ?? S 4:44AM 0:00.01 /
usr/local/sbin/httpd

Request 1 GTOP: (93834)
->size 46534656
->vsize 46534656
->resident 52944896
->share 8184509
->rss 52944896

root 93830 0.0 5.1 54928 51616 ?? Ss 4:44AM 0:02.42 /usr/
local/sbin/httpd
www 93834 0.0 5.1 55200 51852 ?? S 4:44AM 0:00.09 /usr/
local/sbin/httpd

Request 2 GTOP: (93834)
->size 46727168
->vsize 46727168
->resident 53059584
->share 8184509
->rss 53059584

root 93830 0.0 5.1 54928 51616 ?? Ss 4:44AM 0:02.42 /usr/
local/sbin/httpd
www 93834 0.0 5.1 55200 51852 ?? S 4:44AM 0:00.11 /usr/
local/sbin/httpd