ctdb: Adding memory pool for queue callback

Swen Schillig swen at vnet.ibm.com
Wed Nov 7 16:03:42 UTC 2018

On Wed, 2018-11-07 at 16:48 +0100, Volker Lendecke wrote:
> On Wed, Nov 07, 2018 at 04:30:58PM +0100, Swen Schillig wrote:
> > Oh, didn't answer your last question....
> > yes, it does match the CTDB use pattern where we fetch a pool and
> > then
> > re-use that memory for as long as we use that queue/connection.
> Right, but the devil might be in the details: Do we have a hierarchy
> hanging off "data" allocated from the pool or not? And does this make
> a difference for overall performance?
The memory is used as the chunk as it was received and if anything
special needs to be done, the memory is getting copied into a new
structure and the old (pool-) memory is free'd.

Cheers Swen

More information about the samba-technical mailing list