Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Oct 2016 23:36:33 +0100
From:      Paul Macdonald <paul@ifdnrg.com>
To:        freebsd-questions@FreeBSD.org
Subject:   pw add user slow
Message-ID:  <fd1e578c-58ef-5098-9d89-c3db814d7af4@ifdnrg.com>

next in thread | raw e-mail | index | archive | help

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

----------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fd1e578c-58ef-5098-9d89-c3db814d7af4>