[Samba] Repacking database from v1 to v2 format: how long does it take?

Francesco Malvezzi francesco.malvezzi at unimore.it
Mon Sep 30 07:40:41 UTC 2019


[...]
> 
> Thanks for confirming that.  I think you are probably hitting some
> pathological behaviours at the TDB layer when handling so many records,
> perhaps in the free list.
> 
> The way to debug this, if you are keen to, is to do a debug build of
> Samba run get a flame graph per:
> 
> http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html#Instructions
> 
> That will get us a better idea of which routines are 'hot' during your
> in-place upgrade.

I am not sure whether I got the correct graph:

https://send.firefox.com/download/161a3c864f996b32/#7REkvXE5e6dVxB8422YGWg

It was taken while the cpu was hot, five minutes log, during repack.
It's a 4 core box so it's correct there is a 25% cpu usage while the
others are idle.

If the graph is what you would expect, do you need a longer time slice?

thank you,

Franz



More information about the samba mailing list