You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by Sterling Hughes <st...@bumblebury.com> on 2003/06/24 21:20:09 UTC
Re: Shared memory
Well, portability is a concern. mmap() with MAP_ANONYMOUS is the best
way to do shared memory on systems that support it (it automatically
cleans up shared memory for you, and it is just as fast). But
MAP_ANONYMOUS is not POSIX, iirc its supported on only FreeBSD and Linux
(definitely not Windows).
-Sterling
On Tue, 2003-06-24 at 15:22, Gregory (Grisha) Trubetskoy wrote:
> I see this question asked a lot on the mod_python list, so I spent some
> time looking at this -
>
> Unless I'm missing something, Python's mmap module makes it very easy.
> Given that mmap is standard in Python, does anyone have any opinion on it
> vs APR shared memory
> (http://apr.apache.org/docs/apr/group__APR__SHM.html)? Would there be any
> benefit in building a mod_python interface to APR SHM?
>
> Grisha
--
"A business that makes nothing but money is a poor kind of business."
- Henry Ford