Bill Stoddard wrote:
Not sure what's the total httpd's time spent for palloc,
but I suppose it's quite a large value.
I saw no significant difference serving a 500 byte file:
Keep in mind that the whole idea behind APR pools is to minimize calls
to the native memory allocators (malloc/heap). If your benchmark
recycled the pool each time you did an allocation, the 3x difference is
not suprising, but that is a somewhat artifical benchmark imho.
Yes, it seems that the number of times the allocator is actually calling
malloc/free is low compared to the palloc calls.
Sorry for the noise :)
Regards,
MT.
smime.p7s
Description: S/MIME Cryptographic Signature