[Samba] Slow Samba4 Domain Join

Andrew Bartlett abartlet at samba.org
Fri Jul 4 04:58:38 MDT 2014


On Thu, 2014-07-03 at 12:47 -0700, Benjamin Arntzen wrote:
> I used "/usr/bin/time" to time how long it took to join a DC to our 
> domain. It took 9 hours, 54 minutes and 16 seconds.
> 
> The logs follow:
> 
> Committing SAM database
> Sending DsReplicateUpdateRefs for all the replicated partitions
> Setting isSynchronized and dsServiceName
> Setting up secrets database
> Joined domain DIGIPEN.EDU (SID S-1-5-21-REDACTED) as a DC
> 35461.84user 26.13system 9:54:16elapsed 99%CPU (0avgtext+0avgdata 
> 2082096maxresident)k
> 834288inputs+3317448outputs (1647major+897820minor)pagefaults 0swaps
> 
> The machines involved were both running Debian Wheezy and Samba 4.1.7 
> installed from backports.
> 
> Any assistance in figuring out why the domain join takes so long would 
> be much appreciated.

Remind me, how many objects are involved?

It really shouldn't be that bad, but like the slowness in
classicupgrade, we really need to dig into what specific part of Samba
is slowing this down.  It is probably the same part of ldb at issue
here.

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba mailing list