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: Possible 2.0b7 issues OR Setup help

2002-05-01 Thread Gerald Richter
Hi Cameron, thanks for the update... > > To continue on this, I finally did upgrade my dev machine to 5.6.1, and > recompiled mod_perl (1.26). With Embperl 2.0b7 -- the mod_info stats > are all still blank. Perhaps it could be a mod_info problem with my > set-up -- or some issue with DSOs. ::

Re: proper way to "exit" from an Embperl page ? bug ?

2002-05-01 Thread Gerald Richter
Hi, this looks like a bug in 2.0b7. The problem is not that $testvar is corrupted, but that the code for the output is not executed (because of the exit), but the html is outputed (what should not happen) I have to rework the exit handling anyway. I like to have a exit that exits the whole proce

Re: wish - handling of option menus

2002-05-01 Thread Gerald Richter
> I wish that > > None > New > [+ (keys > %Authors)[$row] +] > > generated one instance of None and New instead of $row instances. I > don't think there's any instance when you wouldn't want it to do > that. And it would make handling menus much easier. > Axel already pointed out how to do i

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

proper way to "exit" from an Embperl page ? bug ?

2002-05-01 Thread Bayer, Michael
In version 1.3.4 of Embperl, along with mod_perl, we used "exit" to create embperl pages that could conditionally halt their execution. Often we would use a series of nested pages that each contained a conditional "exit" statement, so that an inner executed page could halt its execution, and rig

Re: located segfault, Embperl 2.0b7 Solaris 2.8, epmain.c

2002-05-01 Thread Gerald Richter
> > > Compiling and testing Embperl 2.0b7 on Solaris 2.8, gcc 2.95.3, without > mod_perl or XML libs, produces segfault on "make test". The segfault can be > corrected, and the test script then runs perfectly, by commenting out line > 596 of epmain.c : > > lprintf (r -> pApp, "[%d]PERF: input =