From owner-freebsd-stable@freebsd.org Mon Feb 15 10:09:13 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 F085AAA9B41 for ; Mon, 15 Feb 2016 10:09:12 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: from mail-qg0-x22a.google.com (mail-qg0-x22a.google.com [IPv6:2607:f8b0:400d:c04::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C0A8F1AEB for ; Mon, 15 Feb 2016 10:09:12 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: by mail-qg0-x22a.google.com with SMTP id y89so107036335qge.2 for ; Mon, 15 Feb 2016 02:09:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=U/qAtX4MYBqqDKNidTu8nlUi/k3wNv7DLi+BJGDAuqI=; b=J+haWcCFdFpAdOqe0OpHWSAHxJ2RLljlNKYp2gk+yHu9kh0tvcurBNqeLmzV0hxr+F 4p4ZP2mxRPglln7yGEJw9aaHnx2VPdYjLVUi3Y9iR7faGwjnUcmDtskQfYGB04bBfX50 zkEr7nxsWR8HvYdHe3VpCo1W+Mwmou0muGMFUBWbMT0SuuqaTkvDIgw9s6uMxVaNcaUg td+Sz1psxIU3U574osC6wOBr4sCqtIsEEtBiotX8L0alHB2vNzuIPknrf+jUIngOmlqz oMDULCcSK6S6vERL5ni/gScknnL1lUS8QucTawnU0FFoURy9mSOBbmiWMBPSf8ep/Vv4 P6Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=U/qAtX4MYBqqDKNidTu8nlUi/k3wNv7DLi+BJGDAuqI=; b=e7yEL9zgVsOwZpuB4GMWIIe71tZjf44OP81HOrk7V6IfZF02kSbNofRXYKUKwQvYY0 pL6hIaqsaNTXPI8trJ5BBDBQHPRSeAFZppUjZy7Us8NfhSkOMSQ/Atfifmh4Ee5jPBQQ Of4uOVU11GCgRImSPSteD5GtVtXqupKfNmurt5FNxPTVwWkth8SbihKhTe15uO5jG18f e8KCs9XPh4G4ZJLJ+z807uFLXTooHBcXoWwKOV+/+W1SxPpBaGKRmDF7zaj+lwY2m0IE FzfuG/ej7387T79fmMZd+TtFpS5BPCn04benVMwA2qTzjF4QEI681abPZ5KNUV3Rgm7K aKaw== X-Gm-Message-State: AG10YOSXkqUBJ/M/NGQuYUdbilZkp+fxDg56231GXDz+n400NiVanwaZxx0ML0Gfvc/MuQ== X-Received: by 10.140.20.39 with SMTP id 36mr18825789qgi.15.1455530951880; Mon, 15 Feb 2016 02:09:11 -0800 (PST) Received: from mbp.home (179-125-138-231.desktop.com.br. [179.125.138.231]) by smtp.gmail.com with ESMTPSA id e34sm10795182qga.4.2016.02.15.02.09.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Feb 2016 02:09:11 -0800 (PST) Sender: Renato Botelho Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: passwd and pw speed regression? From: Renato Botelho In-Reply-To: <56BCA298.9060000@sentex.net> Date: Mon, 15 Feb 2016 08:09:36 -0200 Cc: FreeBSD-STABLE Mailing List Content-Transfer-Encoding: 7bit Message-Id: <397202D9-9A58-40D9-9759-EBE54184835A@FreeBSD.org> References: <56BCA298.9060000@sentex.net> To: Mike Tancsa X-Mailer: Apple Mail (2.3112) 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: Mon, 15 Feb 2016 10:09:13 -0000 > On Feb 11, 2016, at 13:02, Mike Tancsa wrote: > > 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 ? A possible solution is being discussed at https://reviews.freebsd.org/D5186 If you can try out that patch and provide a feedback it would be great -- Renato Botelho