Date: Thu, 7 Jun 2001 16:51:25 -0500 From: Mike Meyer <mwm@mired.org> To: "Karsten W. Rohrbach" <karsten@rohrbach.de> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: building apache from /usr/ports Message-ID: <15135.63325.343370.528294@guru.mired.org> In-Reply-To: <20010607183358.N59617@mail.webmonster.de> References: <JBEOKPCEMKJLMJAKBECCMELDDAAA.jwatkins@firstplan.com> <20010605140629.B15206@leviathan.inethouston.net> <20010605152718.A21889@localhost> <20010606034917.D97958@mail.webmonster.de> <15133.37451.23934.758674@guru.mired.org> <20010606113119.B54034@brel.com> <15134.26898.890143.63429@guru.mired.org> <20010607183358.N59617@mail.webmonster.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Karsten W. Rohrbach <karsten@rohrbach.de> types: > Mike Meyer(mwm@mired.org)@2001.06.06 12:32:02 +0000: > > Calvin NG <calvinng@brel.com> types: > > > Correct me if I m wrong. > > > For in-core web server , every copy of server loaded has the perl and/or php > > > in it. For modules, its a shared library, the server is smaller size, and only > > > a copy of the module is loaded in memory. > > > > That's all correct. However, it wouldn't surprise me if the server + > > module is larger than the server with an in-core module. Since there's > > no reason to have more than one copy of the server loaded - even for a > > high-load server - there's still only one copy of the module > > loaded. Since everything shared in the module should also be shared > > with the in-core version, the total memory usage won't be very > > different. > it is, since apache is not multithreaded (1.x). so, on a heavily loaded > box you got "several" process images in mem, thus more overhead. But that's also true for a shared library. A heavily loaded server will have "several" process images in memory, thus the same overhead. The question is - what part of the shared library version is going to be shared between processes that isn't also shared if the module is compiled in-core. All the code is shared in both cases. Data should be COW in both cases. What's left? <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15135.63325.343370.528294>