ctdb: Adding memory pool for queue callback
Volker.Lendecke at SerNet.DE
Wed Nov 7 15:09:52 UTC 2018
On Wed, Nov 07, 2018 at 04:07:51PM +0100, Volker Lendecke via samba-technical wrote:
> On Wed, Nov 07, 2018 at 04:01:02PM +0100, Swen Schillig wrote:
> > In the area where the pool is introduced we almost always have the
> > situation that no memory from the pool is used (all mem available)
> > and we just want to make use of the fact that we re-use this memory.
> Right, and this is what the talloc speedtest under
> lib/talloc/testsuite.c:855ff also attempts.
> > I just wrote a quick program which is simulating this scenrario with
> > the 3 different options with which we could get such memory with the
> > following result
> > [swen at linux ~]$ ./a.out
> > It took 2.219697 seconds to execute 10 million talloc/free cycles.
> > It took 1.450206 seconds to execute 10 million talloc(pool)/free cycles.
> There must be a significant difference to the test program in
> lib/talloc/testsuite.c and yours. Why is your difference closer to a
> factor of 2 and not 2% like in lib/talloc/testsuite.c, and does that
> precisely match
oops, sentence cut of... "and does that precisely match the ctdb use
pattern" was what I wanted to say.
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