Bug 1285901

Summary: nunc-stans creates additional thread pool
Product: Red Hat Enterprise Linux 7 Reporter: Viktor Ashirov <vashirov>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED NOTABUG QA Contact: Viktor Ashirov <vashirov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: mreynolds, nkinder, rmeggins
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-22 21:34:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Viktor Ashirov 2015-11-26 23:00:40 UTC
Description of problem:
Build 389-ds-base-1.3.4.0-21.el7_2.x86_64:
# tail -n1 /etc/profile
export MAX_THREADS=100

nsslapd-threadnumber: 30
nsslapd-enable-nunc-stans: off

# ps huH p $(pidof ns-slapd) | wc -l
41

nsslapd-enable-nunc-stans: on
# ps huH p $(pidof ns-slapd) | wc -l
72

# ldapsearch -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=monitor" -s base  threads  -LLL
dn: cn=monitor
threads: 30

On the older version (389-ds-base-1.3.4.0-19.el7.x86_64):

nsslapd-enable-nunc-stans: off
# ps huH p $(pidof ns-slapd) | wc -l
41

nsslapd-enable-nunc-stans: on
# ps huH p $(pidof ns-slapd) | wc -l
142

# ldapsearch -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=monitor" -s base  threads  -LLL
dn: cn=monitor
threads: 30

Looks like nunc-stans created additional thread pool (30 + 100 + 12 service threads). And on a new version it's 30 + 30 + 12.

Comment 1 mreynolds 2015-12-22 21:34:28 UTC
Nunc-stans creates its own event catching thread pool, and it uses the DS thread number config setting.  So you should see double the number of threads.

Closing this out as not a bug, feel free to reopen it if I missed something.