Hi, 25,000 is definitely higher than what I would reasonably expect Samba 4.3 to handle. It should be significantly better in more recent versions (preferably to 4.7.5 by joining a new DC). When you have slow responses, is that with a number of concurrent users (or is it possible that there are specific users that are consistently slow)? Cheers. On 07/03/18 01:49, Kitsda Yonpladyod wrote:> > Dear Garming, > > > Thank you for your answer and sorry for asking in the wrong lists. > > > My samba have more than 25,000.- users. > > When I try to reverse the search expression. It look better > > but I notice that there are still slow response sometimes. > > > Regards, > > > Kritsada Yonpaladyod > > > > ------------------------------------------------------------------------ > *From:* Garming Sam <garming at catalyst.net.nz> > *Sent:* 05 March 2018 21:36 > *To:* Kitsda Yonpladyod > *Cc:* Samba List > *Subject:* Re: Samba 4.3 ldapsearch response time > 5 secs. > > Hi, > > User issues should generally go to samba at lists.samba.org which I've cc'd. > > How large is your database/how many users do you have? Is it still slow > if you reverse the search expression > (&(sAMAccountName=XXXX)(objectClass=person))? There have been a large > number of performance improvements made since 4.3, so upgrading to the > latest versions might be a good idea before any additional investigation. > > Cheers, > > Garming > > On 05/03/18 20:27, Kitsda Yonpladyod via samba-technical wrote: > > Dear Friends, > > > > > > I have problem with samba 4.3 AD DC, response times > > > > below are my ldapsearch time responses > > > > > > Kritsada-MacBook-Pro:~ kitsda$ ldapExecTime=`/usr/bin/time -lp > ldapsearch -h true.care -p 389 -b "DC=true,DC=care" -D > "CN=U-SVC-CMDB,OU=Users,OU=Standard,OU=Controls,OU=02-Resources,DC=true,DC=care" > -w Password -l 300 -z 1000 > "(&(objectClass=person)(sAMAccountName=Sutanya))" cn sAMAccountName` > > > > real 10.82 > > > > user 0.01 > > > > sys 0.00 > > > > 5406720 maximum resident set size > > > > 0 average shared memory size > > > > 0 average unshared data size > > > > 0 average unshared stack size > > > > 1390 page reclaims > > > > 0 page faults > > > > 0 swaps > > > > 0 block input operations > > > > 0 block output operations > > > > 15 messages sent > > > > 30 messages received > > > > 0 signals received > > > > 6 voluntary context switches > > > > 29 involuntary context switches > > > > >