Return-Path: X-Original-To: apmail-directory-users-archive@www.apache.org Delivered-To: apmail-directory-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3773DCC1 for ; Wed, 10 Oct 2012 07:21:37 +0000 (UTC) Received: (qmail 90988 invoked by uid 500); 10 Oct 2012 07:21:15 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 88500 invoked by uid 500); 10 Oct 2012 07:21:09 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 81070 invoked by uid 99); 10 Oct 2012 07:16:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 07:16:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bk0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 07:16:05 +0000 Received: by mail-bk0-f50.google.com with SMTP id q16so92770bkw.37 for ; Wed, 10 Oct 2012 00:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rqnONcZf7lrRzbZV1Y8JfWQecYKeHq33wWeHpUdASbs=; b=inaXjV3RVcuXEahoBMVRoFFOu4/2lvb8qsSn1M6F41VJt7UcnuCN7HFQHejKULXQOf 0KNDVK5jRMse5gK+s0GUIp4pDJmRI/CM4nZ7OFkbZ/+lEuXdBaYbC2PJbwNwmGLm3jr7 4e0vkbqfTuFezoPk7FNj9TjQWdXD+INC6cgyZqEqK+eCkeeuX+sfbtgs4oQEaH7IrCaY DqCmIg5lrhBfv8XYIYl1oOXvxX8I5TN77ZotOV8EiC5lE2fbeaxoCYthiKq/QX6j/xxl tuND2llhBZTkxLPAB3G/No8XDM477abJGeYoNR1BTUDEy6FEH2AQBFmd+rszu+vWfax0 CEKQ== Received: by 10.204.11.207 with SMTP id u15mr5150904bku.40.1349853343614; Wed, 10 Oct 2012 00:15:43 -0700 (PDT) Received: from Emmanuels-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net. [78.192.106.184]) by mx.google.com with ESMTPS id ia2sm198821bkc.11.2012.10.10.00.15.42 (version=SSLv3 cipher=OTHER); Wed, 10 Oct 2012 00:15:43 -0700 (PDT) Message-ID: <5075209F.4070803@gmail.com> Date: Wed, 10 Oct 2012 09:15:43 +0200 From: =?UTF-8?B?RW1tYW51ZWwgTMOpY2hhcm55?= Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: build monday from trunk very slow for ldif import References: <2BE7E81B77921F43A6A273C2DF2FA6A43CCCA9A467@IBSMBX.ibs-ag.com> In-Reply-To: <2BE7E81B77921F43A6A273C2DF2FA6A43CCCA9A467@IBSMBX.ibs-ag.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 10/10/12 4:55 AM, Carlo.Accorsi@ibs-ag.com a écrit : > Hi, I'm still trying finish the testing of all the Password policy work Karin did over the weekend but I have another issue that's come up. Ldif imports are extremely slow. > > During our testing, we often delete the entire partition directory to start fresh. When the server starts, it lays down the partition and .db files as defined config.ldif. > > Anyway, we used to import (via studio) an ldif file with 80k entries and it would load about 90 entries per second. That was great! > With this build it's going at about 4-5 entries per second. Hmmm. This is very slow. How many indexed attributes do you have ? I have done some tests locally, and I'm able to get up to 200 add/s, but with a simpler entry. > > We noticed is that previously, the partition .db files would not change (on disk) until after the ldif import was complete. > Then when we stopped the server, it was like the entire import got flushed to the disk at once. The files would go from 20K to 400MB. > With this build, it seems to be updating the files as it goes. Could this be the reason? It may be because we flush on disk for every single write. You could turn the ads-partitionSyncOnWrite flag to FALSE, so that the data are flush only ever ads-dsSyncPeriodMillis (default to 15 seconds) > > Also, this is the first build I noticed the .lg files in the partition directory. I think they're there for journaling but don't know if that's an option something new? It's a JDBM file which is created beside the db files, AFAIR. I have to double check that. > > We removed all the password policy Attributes from my ldif file thinking that was slowing it down but it's essentially the same performance. > Below is my partition and all the indexes are set like the one I included. Any changes that would affect this in the last few weeks. Anyone else seeing this? Thanks! > > dn: ads-partitionId=cpro,ou=partitions,ads-directoryServiceId=default,ou=config > objectclass: top > objectClass: ads-base > objectclass: ads-partition > objectclass: ads-jdbmPartition > ads-indexes: apacheRdn > ads-indexes: apacheSubLevel > ads-indexes: apachePresence > ads-indexes: apacheOneLevel > ads-indexes: apacheOneAlias > ads-indexes: apacheSubAlias > ads-indexes: apacheAlias > ads-indexes: entryCSN > ads-indexes: krb5PrincipalName > ads-indexes: objectClass > ads-indexes: ou > ads-indexes: uid > ads-indexes: employeeNumber > ads-indexes: displayName > ads-indexes: cn > ads-indexes: mail > ads-indexes: roomNumber > ads-indexes: pwdPolicySubEntry > ads-indexes: member > ads-indexes: description > ads-indexes: givenName > ads-indexes: sn > ads-indexes: administrativeRole > ads-partitionSuffix: o=cpro > ads-jdbmpartitionoptimizerenabled: TRUE > ads-partitioncachesize: 100 > ads-partitionsynconwrite: TRUE > ads-partitionid: cpro > ads-enabled: TRUE > > #index example, they're all like this..HasReverse=FALSE > dn: ads-indexAttributeId=uid,ou=indexes,ads-partitionId=cpro,ou=partitions,ads-directoryServiceId=default,ou=config > ads-indexattributeid: uid > ads-indexHasReverse: FALSE > ads-indexcachesize: 100 > objectclass: ads-index > objectclass: ads-jdbmIndex > objectclass: ads-base > objectclass: top > ads-enabled: TRUE > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com