From owner-freebsd-stable@freebsd.org Thu Feb 11 15:02:49 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86286AA547A for ; Thu, 11 Feb 2016 15:02:49 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 59D711942; Thu, 11 Feb 2016 15:02:49 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id u1BF2lm9052320 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Feb 2016 10:02:47 -0500 (EST) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c] ([IPv6:2607:f3e0:0:4:5c30:ed1b:e203:c55c]) by lava.sentex.ca (8.14.9/8.14.9) with ESMTP id u1BF2kCM096078; Thu, 11 Feb 2016 10:02:46 -0500 (EST) (envelope-from mike@sentex.net) To: FreeBSD-STABLE Mailing List , garga@freebsd.org From: Mike Tancsa Subject: passwd and pw speed regression? X-Enigmail-Draft-Status: N1110 Organization: Sentex Communications Message-ID: <56BCA298.9060000@sentex.net> Date: Thu, 11 Feb 2016 10:02:48 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.75 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2016 15:02:49 -0000 I noticed that on a new RELENG_10 box we are building, password updates are taking a very long time to build. On the old RELENG_8 box, doing something simple like adding a user # time pw useradd test12345 0.062u 0.063s 0:00.14 85.7% 54+988k 196+134io 0pf+0w # time pw userdel test12345 0.164u 0.044s 0:00.20 100.0% 28+1181k 0+18io 0pf+0w On the new RELENG_10 box, # time pw useradd test12345 0.060u 0.120s 0:58.89 0.3% 58+146k 12+6485io 0pf+0w # time pw userdel test12345 0.125u 0.133s 0:58.80 0.4% 46+214k 13+9326io 0pf+0w # wc /etc/passwd 6113 14792 376128 /etc/passwd Yes, almost 60 seconds to add a user to the password file? Does anyone know what is going on to account for the large difference and how to work around it ? I am guessing https://svnweb.freebsd.org/base?view=revision&revision=285205 is the issue. Apart from keeping local source code changes, is there not a better way to not have reasonable speeds ? ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/