[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Adduser Script



> Well I started the script yesterday around 2PM or so and it is still
> running. It taking 3 minutes per addition to add a new user. I would say it
> is about 3/4 the way done.

> So far it has been running 18.5 hours. Has a total of 700 users to add.
> Seems to be taking longer and longer every time it has to add a new user.

This is because each time cadduser is invoked it does a use on a bunch 
of Cobalt's (autoloading) perl modules.  So to add one user it needs to
allocate and deallocate about 10 MB of memory, which really sucks on RaQ2's
60ns RAM.   For it taking longer on each pass, this is because with more users, 
it has to check more possible conflicts.  Since none of this is store in a
database on RaQ2 (postgres) it take much longer verify and add.
 
You might want to try adding all of the use Cobalt::* in cadduser 
into the script that is calling it.

*Warning* This can cause problems where vars contain bad info because they are
not initialized on each pass. 

>> the site list.  Please confirm as I'm not 100% sure on that one, but that
>> might help some :o)
>>

Yes, it should add the user to the UI that is what is happening when you
see the following message:
(offline mode: enter name=value pairs on standard input)

Jeff-