ngx_slab_alloc memory size calculation

Bernd Dorn bernddorn at
Wed May 12 16:51:37 MSD 2010

hi all

i am currently implementing a queue in shared memory for a module, now i want to calculate how much memory/pages an allocation via ngx_slab_alloc ocopies in order to approximate the number of items i can put into the queue.

the memory per item differs, because they contain strings

does anybody know how to do this?

thanks in advance, bernd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3913 bytes
Desc: not available
URL: <>

More information about the nginx mailing list