Issue 293 - slapd stability on Solaris 2.6 x86 (Solaris threads vs. Posix threads)
Summary: slapd stability on Solaris 2.6 x86 (Solaris threads vs. Posix threads)
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-09-17 18:03 UTC by trevor@pocketscience.com
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description trevor@pocketscience.com 1999-09-17 18:03:36 UTC
Full_Name: Trevor Porter
Version: 1.2.7
OS: Solaris 2.6 x86
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (209.24.64.3)


I have been stress testing slapd under Solaris 2.6 x86 and am having stability
problems when slapd is built with posix threads:

setenv LIBS "-lpthread -lposix4"
./configure --with-threads

The server dies (usually within a minute or two) under high load. No core file
is
produced.

I was able to get a stable server if I compile with Solaris threads:

setenv LIBS -lthread
./configure --with-threads

While monitoring the server I see that the number of threads slowly creeps up
as long as I continue to increase the load on the server. No suprise there.
However,
if I steadily reduce the load on the server, the number of threads remains the
same. Only when stopping all requests does the the number of threads ever go
down.
This is a concern as this is not likely to occur in a real production
environment.
I'm aware of the known lwp problem with Solaris not reaping threads. Is this
the
behaviour I'm seeing or is that problem more severe? Ideally I'd like to have a
stable server with no resource leakage. Any suggestions?

Also, I have installed the recommended Solaris threading patches.
 
Comment 1 Kurt Zeilenga 1999-09-17 19:51:02 UTC
changed notes
changed state Open to Feedback
Comment 2 Kurt Zeilenga 1999-09-17 19:53:18 UTC
At 06:03 PM 9/17/99 GMT, trevor@pocketscience.com wrote:
>Full_Name: Trevor Porter
>Version: 1.2.7
>OS: Solaris 2.6 x86
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (209.24.64.3)
>
>
>I have been stress testing slapd under Solaris 2.6 x86 and am having stability
>problems when slapd is built with posix threads:

I believe Solaris2 Pthreads (and lwp) are preemptive threading subsystems
and hence not supported.  Use --without-threads or a third party user
thread package.  See the FAQ for details.

  http://www.openldap.org/faq/index.cgi?file=11
Comment 3 Kurt Zeilenga 1999-09-24 00:54:57 UTC
changed state Feedback to Closed
Comment 4 OpenLDAP project 2014-08-01 21:06:08 UTC
Preemptive threads not supported.