[mod_python] global persistence

Gregory Bond gnb at itga.com.au
Wed Jun 25 09:10:01 EST 2003

> It looks like each apache child process has own address space and same addres
> s 
> points 
> to physically different memory.
> Any suggestion has can I fix that?

That's true.  When the Apache process forks, each child process has different 
copy of the address space.  Same address, different contents.
You will need to use some explicity shared memory, either from a mmap'd file or
a shm segment.  This will imply a custom memory allocator and custom malloc()/
free() - like functions.  But you will need to make python use this shared
memory, and I have no idea if that is possible.

More information about the Mod_python mailing list