|
Posted by xhoster on October 15, 2008, 2:07 pm
Please log in for more thread options >
> By stress testing the test.cgi, I found memory is not shared at all,
> using the top command, e.g.
>
> >> top -bc -n 1 | grep httpd
>
> 11290 web 25 0 100m 23m 1620 R 47 0.3 0:00.29 /usr/
> local/apache_1.3.41/bin/httpd
> 11247 web 20 0 101m 23m 1628 R 41 0.3 0:05.15 /usr/
> local/apache_1.3.41/bin/httpd
>
> As you can see, each httpd is using 23m, and 1620bytes shared, which I
> belive the much data is shared....
>
> Any idea?
In addition to what the other post said, it should be pointed out that
the SHR column of the "top" command does not reflect all modes of memory
sharing. For example, Copy-On-Write sharing does not seem to accounted
for as shared. I think it reflects only shared libraries (*.so files) and
not any kind of data sharing. It would be nice if the "man top" did a
better job of explaining this. You need a better way of diagnosing how
much memory is actually being used.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
|