[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: How do I verify that Openldap is using multiple threads on Freebsd5.2

OK.  So to get the threading working for Openldap in FreeBSD 5.2.1 I
need to do a Make world with "WITH_LIBMAP=yes" and use the "Kernel
Scheduled Entities".  Is that correct?


Xavier Beaudouin wrote:

On FreeBSD 5.2.1 default threads are same as on 4.x branch... Excepted if you add made a make world with "WITH_LIBMAP=yes" in /etc/make.conf....

Then if you use kse you'll get a system that can use all your processors...

If not... your openldap process will only use on CPU at time what ever number of CPU you have.


Le 8 oct. 04, à 23:45, James Saint-Rossy, Thomas a écrit :

I am trying to verify that my server running "FreeBSD 5.2.1-RELEASE" is actually using multiple threads for Openldap. The system has dual p4's with hyper threading. I've been searching the web and archive with no luck. Any insight would be appreciated.

When I do ps -axH all I get back is one process:
73670 ?? SLs 0:04.19 /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap:// -u ldap -g ldap

Top -H is similar and appears to only be using one of the processors at a time
70022 ldap 96 0 182M 62380K select 3 1:09 0.00% 0.00% slapd

The FreeBSD port seems to be passing "--with-threads=posix" to configure so I assume it's compiled with threads

Thanks, James Saint-Rossy.

Xavier Beaudouin - Unix System Administrator & Projects Leader.
President of Kazar Organization : http://www.kazar.net/
Please visit http://caudium.net/, home of Caudium & Camas projects