quetz-mod_python-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory (Grisha) Trubetskoy" <gri...@modpython.org>
Subject Re: Using shared memory to do global persistence
Date Sun, 20 Jul 2003 22:18:59 GMT

On Fri, 18 Jul 2003, Jonathan Gardner wrote:

> Hash: SHA1
> On Friday 18 July 2003 10:38, Gregory (Grisha) Trubetskoy wrote:
> >
> > Another complication with both shared memory and locks is that it is much
> > more difficult to create them from within a child process because base
> > addresses for same shm segment will differ. Therefore both locks and
> > shared memory have to be specified in the Apache config (and not
> > .htaccess).
> >
> But can't we also modify the shared object so that it uses the same
> (shmid, address offset) that we use to find a shared object in the first
> place?

The problem is that Python's C code doesn't do this, so you'd have to
essentially rewrite parts of Python, or limit the types of things stored
in shared memory to simple strings to keep it simple.


View raw message