FW: Dynamic memory at runtime update and question

2010-01-27 Thread Yonts, Richard
Eric, Thanks for the explanation, I get it now. I was hoping to avoid the design decision that I have to make now--deciding beforehand what size of shared memory block to obtain. I had hoped that I could simply allow the available resources be available to me, not wasting any space with an ov

Dynamic memory at runtime update and question

2010-01-26 Thread Yonts, Richard
After further experimentation, I have determined that the shared memory code does something unexpected (at least, to me). I have multiple processes {A..E} that each ask for a block of memory using the apr_shm_create() call and convert it to a Node. Each process requests the memory from the sam

Re: dynamic memory at runtime

2010-01-23 Thread Dan Poirier
For an example, you might look in apache trunk at modules/aaa/mod_auth_digest.c. It uses shared memory to keep some common tables across processes. Dan

dynamic memory at runtime

2010-01-22 Thread Rich Yonts
I am trying to dynamically obtain memory from a pool at runtime. No matter how I tweak it, it does not seem to work correctly with multiple processes. I have some code below that ouputs something odd--this is one of numerous different tries, please do not worry too much about clever (or lack there