Re: [389-users] Performance tuning - where to begin?

2011-02-04 Thread David Boreham
On 2/4/2011 1:29 PM, Andrew Kerr wrote:
> Since the machine isn't even opening up a socket, it makes me think you are 
> hitting either a connection limit or related file limit.
It won't open the connection once the listen queue has filled up (if it 
did then all that would happen is the box would run out of kernel 
memory). The problem is likely that the thread which calls accept() is 
not processing the new connections as fast as they arrive. Once that 
state is achieved, the queues fill and SYNs will be dropped.


--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


Re: [389-users] Performance tuning - where to begin?

2011-02-03 Thread David Boreham
On 2/3/2011 9:29 AM, Daniel Fenert wrote:
> There are plenty of configuration options, where should I look first?
>
My first guess would be that you've saturated one core. The server 
probably still processes new connections in a single thread (it did on 
Unix platforms last time I looked at the code at any rate). So although 
the CPU load overall is not 100%, once you max out one core, it won't be 
able to process new connections any faster. That said, the rate you are 
achieving seems quite low for a modern machine. It would be worthwhile 
looking to see if it is doing a reverse DNS lookup on the client IP address.
After that, try using pstack to see what the accept thread is spending 
its time on.



--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


Re: [389-users] Directory Re-population

2010-05-14 Thread David Boreham
On 5/14/2010 11:40 AM, Chun Tat David Chu wrote:
>
> We use 389 Directory as part of our development lab.  Every time when 
> we do a new test, we need to repopulate our 389 directory to a clean 
> slate (i.e. delete all existing data and re-create a base hierarchy 
> tree).
>
> Our current way of doing so is simply using the ldapdelete command to 
> remove all existing data and use ldapadd to re-create the base 
> hierarchy tree.  This approach is okay but sometime it could take up 
> to 20 to 30 minutes to delete all existing data depending on the 
> amount of data saved in the directory.
>
> Is there a more efficient way to repopulate the 389 Directory?

Yes. Import an almost empty LDIF file. You can also copy the on-disk 
database underneath a server (when it is shut down), if you know what 
you're doing.

--
389 users mailing list
389-us...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users