Re: swapping of mod_perl parent process / mlockall()

2001-08-01 Thread Doug MacEachern
On Mon, 16 Jul 2001, Adi Fairbank wrote: Actually, I don't want child processes to inherit the page locks across a fork. I just wanted to experiment with performance issues when only the parent process is locked in memory. (I have a theory that when the parent process swaps to disk, the

Re: swapping of mod_perl parent process / mlockall()

2001-07-16 Thread Adi Fairbank
Doug MacEachern wrote: On Tue, 26 Jun 2001, Adi Fairbank wrote: If this is the case, it would be helpful to prevent the parent process from *ever* swapping to disk. The Linux kernel has a system call mlockall() which disables all memory paging for the current process. This

Re: swapping of mod_perl parent process / mlockall()

2001-07-10 Thread Doug MacEachern
On Tue, 26 Jun 2001, Adi Fairbank wrote: Is it correct that when the Apache/mod_perl parent process swaps to disk, a large part of it (swapped pages) becomes unshared? Even after the kernel restores the pages from swap, do they remain unshared? So once the parent process becomes

swapping of mod_perl parent process / mlockall()

2001-06-26 Thread Adi Fairbank
Is it correct that when the Apache/mod_perl parent process swaps to disk, a large part of it (swapped pages) becomes unshared? Even after the kernel restores the pages from swap, do they remain unshared? So once the parent process becomes unshared, new apache children that are spawned only