Bug 1780842

Summary: [RFE] set db home directory to /dev/shm by default
Product: Red Hat Enterprise Linux 8 Reporter: mreynolds
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact: Marc Muehlfeld <mmuehlfe>
Priority: urgent    
Version: 8.0CC: bsmejkal, nkinder, pasik, pcech, sgouvern, spichugi, tbordaz, tmihinto, vashirov
Target Milestone: rcKeywords: FutureFeature, Reopened, TestCaseNeeded, Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-1.4-8060020211021200750.ce3e8c9c Doc Type: Enhancement
Doc Text:
.Directory Server now stores memory-mapped files of databases on a `tmpfs` file system In Directory Server, the `nsslapd-db-home-directory` parameter defines the location of memory-mapped files of databases. This enhancement changes the default value of the parameter from `/var/lib/dirsrv/slapd-__instance_name__/db/` to `/dev/shm/`. As a result, with the internal databases stored on a `tmpfs` file system, the performance of Directory Server increases.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:43:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1843238, 2015928    
Bug Blocks: 1825061, 1894575    

Description mreynolds 2019-12-07 15:58:25 UTC
This bug is created as a clone of upstream ticket:

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

#### Issue Description

We get a slight performance boost by setting nsslapd-db-home-directory to /dev/shm (memory mapped file system).  We should investigate if this is worth setting by default.

Comment 1 mreynolds 2020-06-15 14:40:56 UTC
Moving to 8.4 as the selinux dependency has not been fulfilled...

Comment 9 RHEL Program Management 2021-06-07 07:30:37 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 10 thierry bordaz 2021-06-07 08:21:57 UTC
This bug is blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1843238. That is expected to land into 8.5 ITM16.
This is still valid to target this RFE for 8.6. Reopening the BZ.

Comment 12 mreynolds 2021-09-03 14:15:20 UTC
Fixed in selinux version: 

selinux-policy-3.14.3-79

Comment 20 errata-xmlrpc 2022-05-10 13:43:00 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-2022:1815