Re: Preloading modules to increase shared memory

2002-05-02 Thread Neil Gunton
Gerald Richter <[EMAIL PROTECTED]> wrote: > I think what you are doing is correct. I guess the problem is that Perl is > storing it's compiled code and data in the same memory pages, so when the > data gets modified, the code isn't also shared anymore. Embperl 2.0 may > behave better, because it c

Re: Preloading modules to increase shared memory

2002-05-01 Thread Gerald Richter
Hi Neil, I think what you are doing is correct. I guess the problem is that Perl is storing it's compiled code and data in the same memory pages, so when the data gets modified, the code isn't also shared anymore. Embperl 2.0 may behave better, because it compiled all the code as whole chunck, so

Re: Preloading modules to increase shared memory

2002-05-01 Thread Neil Gunton
Ed Grimm <[EMAIL PROTECTED]> wrote: > Right. The only other thing I can come up with there is that the web > pages are modifying the shared memory, which wasn't true share, but copy > on write. Under most circumstances I've seen, this would primarily only > happen to a significant degree when th

Re: Preloading modules to increase shared memory

2002-05-01 Thread Ed Grimm
On Wed, 1 May 2002, Neil Gunton wrote: > Ed Grimm <[EMAIL PROTECTED]> wrote: >> You just failed to answer the question. Is SIZE == RSS for apache? >> Swap can happen before the system runs out of memory, if the OS thinks >> the memory would be better utilized as file cache or something. >> Other

Re: Preloading modules to increase shared memory

2002-05-01 Thread Neil Gunton
Ed Grimm <[EMAIL PROTECTED]> wrote: > How is your swap space? Linux doesn't count swapped shared memory as > shared, only shared real memory. (Incidentally, Solaris and a number of > other unix OSes don't have swapped shared memory. As I seem to be one > of the minority running Embperl on non-L

Re: Preloading modules to increase shared memory

2002-05-01 Thread Ed Grimm
How is your swap space? Linux doesn't count swapped shared memory as shared, only shared real memory. (Incidentally, Solaris and a number of other unix OSes don't have swapped shared memory. As I seem to be one of the minority running Embperl on non-Linux, few seem to care about that aspect of

Preloading modules to increase shared memory

2002-05-01 Thread Neil Gunton
Hi Gerald, I am trying to improve the shared memory usage on my server, and I've managed to (apparently) preload all the Embperl files on two of my sites. It all seems to work, at first. But then the shared memory goes down quite rapidly. On initial startup, Apache::VMonitor says that most of the