From owner-freebsd-questions@freebsd.org Mon Oct 17 23:01:41 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 2189DC15F9E for ; Mon, 17 Oct 2016 23:01:41 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from outbound.ifdnrg.com (outbound2.ifdnrg.com [193.200.98.38]) by mx1.freebsd.org (Postfix) with ESMTP id BAB6AA7E for ; Mon, 17 Oct 2016 23:01:40 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from [192.168.1.109] (cpc103070-sgyl39-2-0-cust295.18-2.cable.virginm.net [82.33.151.40]) (authenticated bits=0) by outbound.ifdnrg.com (8.15.2/8.15.2) with ESMTPSA id u9HMaYTH046210 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Mon, 17 Oct 2016 23:36:37 +0100 (BST) (envelope-from paul@ifdnrg.com) X-Authentication-Warning: outbound.ifdnrg.com: Host cpc103070-sgyl39-2-0-cust295.18-2.cable.virginm.net [82.33.151.40] claimed to be [192.168.1.109] To: freebsd-questions@FreeBSD.org From: Paul Macdonald Subject: pw add user slow Message-ID: Date: Mon, 17 Oct 2016 23:36:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Mon, 17 Oct 2016 23:01:41 -0000 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? thanks -- ------------------------- Paul Macdonald IFDNRG Ltd Web and video hosting ------------------------- t: 0131 5548070 m: 07970339546 e: paul@ifdnrg.com w: http://www.ifdnrg.com ------------------------- IFDNRG 40 Maritime Street Edinburgh EH6 6SA ---------------------------------------------------- Virtual Servers from £50.00pm High specification Dedicated Servers from £150.00pm ----------------------------------------------------