From owner-freebsd-questions@freebsd.org Tue Oct 18 03:47:28 2016 Return-Path: Delivered-To: freebsd-questions@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 579A0C15B2F for ; Tue, 18 Oct 2016 03:47:28 +0000 (UTC) (envelope-from sales6@meritvendor.com) Received: from mail-it0-x245.google.com (mail-it0-x245.google.com [IPv6:2607:f8b0:4001:c0b::245]) (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 25E95699 for ; Tue, 18 Oct 2016 03:47:28 +0000 (UTC) (envelope-from sales6@meritvendor.com) Received: by mail-it0-x245.google.com with SMTP id z65so104126088itc.2 for ; Mon, 17 Oct 2016 20:47:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meritvendor.com; s=google; h=mime-version:message-id:date:subject:from:to; bh=06Tok/dMRcEnByWyiWITUuwufQXRkkaB0QMhiInHZlM=; b=leYa+MLfwEuEKXGKBcflxfK8dEVYBCA27sk37mjpdd5IRTJYvUXKmuO0N3KjjQqIrg eD/05XwBoryxag6CwROIgi2LQWi12xRsOE2bS+bdlfHD7ntrk68BQ19hGd9mLvfj5HW/ i9Wit8pdHhoXZsK2bqpXgInAs5C5tsQqIHYPk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to; bh=06Tok/dMRcEnByWyiWITUuwufQXRkkaB0QMhiInHZlM=; b=m67gYE4Ir1KMpckXLI43fA5k4bzpU4JYAw5qbm4vHK0RAkVuXKFRZ9kw21C/cD8P28 UqJAT8sf+GTPqduztISIRMXGzHPU2nQNpiuc9IlehxkS29A9bvMeD9fVcH7tl13QufbR Isx5DC5+AaGxXSCi1sZPwl+e1w1PSRuf1Dgo0+Q1g/85kbGzBj2iYR4lLZcXhOfi9N+k DbG5oVoM3Zqu4GWdb3aF5wSQsEBy+LLtCTm8YPQiEQqiD4ANax6lj0Js38LJhPtmMkC2 nX1zUwCy00zg3JPEsxie+H2eVaFTe/IHBB26cfLD/lNXRt7JFwX1K65hc/GdsMtlrTMp vdzA== X-Gm-Message-State: AA6/9Rn7SjQfTZqVJ6fWOQSCfeO/JLwosr5a29i2zpfHxWD7LI8Kp44aFMGSUVoJOZd14aLUIQPmrA9V2uL7d4+Y MIME-Version: 1.0 X-Received: by 10.36.205.6 with SMTP id l6mr3861082itg.38.1476762445704; Mon, 17 Oct 2016 20:47:25 -0700 (PDT) Message-ID: <94eb2c07eeeefe7535053f1b8c7d@google.com> Date: Tue, 18 Oct 2016 03:47:25 +0000 Subject: Attention required: Important information for your website: freebsd.org From: Luis Miguel To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 03:47:28 -0000 DQoNCkhpIGZyZWVic2Qub3JnIFRlYW0sDQoNCg0KSSB0cnVzdCB5b3UgYXJlIGRvaW5nIHNwbGVu ZGlkbHkuDQoNCg0KTXkgdGVhbSBoYXMgZ29uZSB0aHJvdWdoIHlvdXIgd2Vic2l0ZSBhbmQgY29t cHJlaGVuZHMgdGhhdCBpdOKAmXMgd2VsbCBidWlsdC4NCk9mIGNvdXJzZSwgdGhlIHNpdGUgY2Fu IGJlIGltcHJvdmVkIGluIHNldmVyYWwgd2F5cyB0byBnZXQgYmV0dGVyIHNhbGVzIGFuZA0KcmV2 ZW51ZS4gSWYgeW91IHdvdWxkIGxpa2UsIEkg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pbmVzLiBZb3Ugd2lsbCBiZSBnZXR0aW5nIGFsbC1pbi1vbmUg c2VydmljZXMgd2hlbiB5b3UgY29udGFjdCB1cy4NCg0KDQpJZiB5b3UgaGF2ZSBhbnkgcXVlc3Rp b25zLCBwbGVhc2Ugbm90IGhlc2l0YXRlIHRvIGNvbnRhY3QuIE15IHRlYW0gYW5kIEkNCmxvb2sg Zm9yd2FyZCB0byBoZWFyaW5nIGZyb20gYW5kIGJlIG9mIGhlbHAgdG8gaW1wcm92ZSB0aGUgdmlz aWJpbGl0eSBvZg0KeW91ciB3ZWJzaXRlLg0KDQoNCkJlc3QgUmVnYXJkcywNCipMdWlzIE1pZ3Vl bCAqDQo= From owner-freebsd-questions@freebsd.org Tue Oct 18 06:44:23 2016 Return-Path: Delivered-To: freebsd-questions@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 7CD8FC16827 for ; Tue, 18 Oct 2016 06:44:23 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp3.irishbroadband.ie [62.231.32.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49A5EFE5 for ; Tue, 18 Oct 2016 06:44:22 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1bwO8J-0000dL-Iq for freebsd-questions@freebsd.org; Tue, 18 Oct 2016 07:44:19 +0100 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.87 (FreeBSD)) (envelope-from ) id 1bwO8k-000Bz4-9G for freebsd-questions@freebsd.org; Tue, 18 Oct 2016 06:44:46 +0000 Date: Tue, 18 Oct 2016 07:44:15 +0100 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: pw add user slow Message-Id: <20161018074415.0f6575675db30d0b83d9b8ec@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 06:44:23 -0000 On Mon, 17 Oct 2016 23:36:33 +0100 Paul Macdonald wrote: > > Hi, > > I have to migrate an imap server, which uses about 6000 local accounts > for mail delivery > > I'm using a script that creates system acounts using: > > /usr/sbin/pw adduser $LOCAL_USER -u$UID-gGID-d $PATH -s/bin/false > > I'm finding this grows ever more slow, up to 10 seconds per account on a > SATA box , and on a test SSD box ( 20 acc's per second initially) even > that slows to about 1 account created per second. > > why does this slow down as more accounts are added? Because for each one it updates text files (passwd and master.passwd) and regenerates databases (pwd.db and spwd.db) from the text files. The fastest way to do this sort of thing is to directly update passwd and master.passwd and then run pwd_mkdb. -- Steve O'Hara-Smith