ctdb: Adding memory pool for queue callback

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Nov 7 16:05:52 UTC 2018

On Wed, Nov 07, 2018 at 05:03:42PM +0100, Swen Schillig wrote:
> 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?
> > 
> No.
> 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.

And what is the talloc hierarchy there? What does that hang off? Can
you point me at the code that does that?

With best regards,

Volker Lendecke

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de

More information about the samba-technical mailing list