From: <an...@io...> - 2005-04-13 01:02:58
|
Jody Alkema wrote: > Hi all, > > Please excuse me if this is the wrong place to post this. I was > wondering about the general size of httpd threads while running > OpenInteract2? I was also wondering if all OpenInteract2 modules are > required to develop an appliction under the framework? > > Thanks! Hi. I'm not an expert on linux or perl memory management but I ran OI2 several times with different amount of threads and made some rough assumptions about the memory usage based on the amount of total system memory used. In the start of processes life almost all of the momory is shared but after the first pageload a large chunk of this apparently becomes dirty and is copied for the process. The amount of which a process uses more memory after this first load + the amount a fresh extra proecess is given as the size of an additional process: Apache with plain OI2: main process 36 Mb, additional processes 14 Mb each. Apache with Dicole and OI2 base packages: main process 64 Mb, additional process 16 Mb each. (Dicole is a medium size product built on top of OI2) For Dicole processes the non-shared memory used by a thread grew to 22 Mb after ~50 pageloads in various places of the application. The setup i'm running is i686 machine with debians apache-perl package but this is pretty much irrelevant as long as you have shared memory ;) I have the impression that all of the OI2 modules and the external modules they use are pretty much required when developing with OI2. Most of the base packages aren't though and they should remove the size somewhat, but you will end up replacing them with your own code anyway so I suppose you can't go much lower than my results with plain OI2. The amount is quite huge compared to apache without OI2 but in my opinnion if you use a plain apache to serve your static files it will take a very high load for this this to become a problem with todays memory prizes. - Antti |