RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1843604 - reduce the cost of allocation/free when open/close a connection
Summary: reduce the cost of allocation/free when open/close a connection
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: thierry bordaz
QA Contact: RHDS QE
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-03 16:11 UTC by mreynolds
Modified: 2021-05-18 15:45 UTC (History)
7 users (show)

Fixed In Version: 389-ds-1.4-8040020201125182123.866effaa
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:45:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4184 0 None closed contention on connection mutex allocation 2021-01-11 12:32:59 UTC

Description mreynolds 2020-06-03 16:11:06 UTC
Issue Description

Using searchrate/mutrace there is a contention on pthread_mutex_init. fixing this contention give a throughput gain (~15%)
Package Version and Platform

1.4.3
Steps to reproduce

Import 100K entries + searchrate
Actual results

    /lib64/libmutrace.so(pthread_mutex_init+0xf4) [0x7fef8b5082d4]
    /sbin/ns-slapd(connection_table_get_connection+0x1b3) [0x41c5c5]
    /sbin/ns-slapd() [0x421563]
    /sbin/ns-slapd() [0x41ea0e]
    /sbin/ns-slapd(slapd_daemon+0x743) [0x41f87e]
    /sbin/ns-slapd(main+0xead) [0x428786]
    /lib64/libc.so.6(__libc_start_main+0xf3) [0x7fef8acdf1a3]
    /sbin/ns-slapd(_start+0x2e) [0x411a4e]

Expected results

No contention at this point



Upstream ticket:

https://pagure.io/389-ds-base/issue/51131

Comment 1 thierry bordaz 2020-06-17 14:00:44 UTC
Fixed upstream with a patch provided by William. -> POST

Comment 11 sgouvern 2020-11-23 10:22:24 UTC
Need more time to ensure sanity checking, moving to ITM 4

Comment 13 sgouvern 2020-11-23 14:52:39 UTC
Being on branch : origin/stream-1.4-rhel-8.4.0 / rhpkg prep / 389-ds-base-1.4.3.16 directory :

changes in ldap/servers/slapd/conntable.c are not present, it seems that they have not been backported.
marking ASSIGNED and FailedQA

Comment 16 sgouvern 2020-11-30 08:50:56 UTC
On branch : origin/stream-1.4-rhel-8.4.0 / rhpkg prep / 389-ds-base-1.4.3.16 directory, for build 389-ds-base-1.4.3.16-3.module+el8.4.0+8869+55706461.x86_64

Changes are present in ldap/servers/slapd/conntable.c

Marking as verified:tested

Comment 19 sgouvern 2020-11-30 16:42:27 UTC
verified:tested (see comment 16) with build 389-ds-1.4-8040020201125182123.866effaa 
-> marking as VERIFIED

Comment 21 errata-xmlrpc 2021-05-18 15:45:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (389-ds:1.4 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1835


Note You need to log in before you can comment on or make changes to this bug.