From owner-freebsd-questions Tue Aug 7 1:58:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dell.dannyland.org (dell.dannyland.org [64.81.36.13]) by hub.freebsd.org (Postfix) with ESMTP id E4B0237B401 for ; Tue, 7 Aug 2001 01:58:43 -0700 (PDT) (envelope-from dannyman@toldme.com) Received: by dell.dannyland.org (Postfix, from userid 1001) id B0A435C79; Tue, 7 Aug 2001 02:00:39 -0700 (PDT) Date: Tue, 7 Aug 2001 02:00:39 -0700 From: dannyman To: =?iso-8859-1?Q?Bj=F6rn_T=F6rnqvist?= Cc: freebsd-questions@freebsd.org Subject: Re: Speeding up account-adding? Message-ID: <20010807020039.A14999@toldme.com> References: <013501c11f18$346fc1a0$0e00a8c0@bashful> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <013501c11f18$346fc1a0$0e00a8c0@bashful>; from bjorn.tornqvist@west.se on Tue, Aug 07, 2001 at 10:08:55AM +0200 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Aug 07, 2001 at 10:08:55AM +0200, Björn Törnqvist wrote: > At work, we need to add 100k+ loginaccounts on a single system, but > I've found that after about 15k accounts it takes ~5 seconds to add it > (through pw useradd). My guess is that its the pwmkdb that is slowing > things down at an exponetial rate - anyone know how to fix this? > > Please reply to me as I'm not a member of the list. You would labotomize pw to not call pwd_mkdb, and then carefully feed pw incremented UIDs, and then run pwd_mkdb when you are done. :) http://www.daemonnews.org/199905/user-mgmt.html -danny -- http://dannyman.toldme.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message