This is a discussion on shared memory across child process within the Linux Web Servers forums, part of the Web Server and Related Forums category; Has anyone been successful in sharing memory among child processes? I was playing with Apache 2.0.40 and I ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Has anyone been successful in sharing memory among child processes?
I was playing with Apache 2.0.40 and I found apr_shm.h and apr_rmm.h that looked like they create and manipulate shared memory. It worked partially for me but I hit a wall with a bug I don't know where it's comming from. If you know of any way to share memory, whether from within apache's api or not, please let me know. It doesn't seem like a small problem to solve from scratch. Thanks, |
|
|||
|
In article <796b5647.0403021410.2a44f600@posting.google.com >,
eabouzou@yahoo.com (Ahab A.) writes: > Has anyone been successful in sharing memory among child processes? Why not? > I was playing with Apache 2.0.40 ferchrissake, upgrade! > If you know of any way to share memory, whether from within apache's > api or not, please let me know. It doesn't seem like a small problem > to solve from scratch. It isn't. It's complicated by the need to support the different MPMs. You need to use the APR - anything else will be hopelessly complicated. You might want to see if you can find Aaron Bannert's presentation on the APR (titled something like "advanced topics") from ApacheCon 2003. -- Nick Kew |
|
|||
|
Thanks for the reply. I did use the apr. I used the following headers:
apr_shmem.h, apr_rmm.h, and apr_global_mutex.h It worked partially ok for me but I ran into a bug where when memory gets low, something gets messed up in my pointers which were allocated from shared memory! I was thinking maybe I should try my luck with mmap and see how it goes from there. Any suggestions would be greatly appreciated! nick@hugin.webthing.com (Nick Kew) wrote in message news:<qbqgh1-06i.ln1@webthing.com>... > In article <796b5647.0403021410.2a44f600@posting.google.com >, > eabouzou@yahoo.com (Ahab A.) writes: > > Has anyone been successful in sharing memory among child processes? > > Why not? > > > I was playing with Apache 2.0.40 > > ferchrissake, upgrade! > > > If you know of any way to share memory, whether from within apache's > > api or not, please let me know. It doesn't seem like a small problem > > to solve from scratch. > > It isn't. It's complicated by the need to support the different MPMs. > You need to use the APR - anything else will be hopelessly complicated. > > You might want to see if you can find Aaron Bannert's presentation on > the APR (titled something like "advanced topics") from ApacheCon 2003. |
| Thread Tools | |
| Display Modes | |
|
|