Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1057805

Summary: Size returned by slapi_entry_size is not accurate
Product: Red Hat Enterprise Linux 6 Reporter: Noriko Hosoi <nhosoi>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED ERRATA QA Contact: Sankar Ramalingam <sramling>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: jgalipea, nhosoi, vashirov
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.2.11.15-34.el6 Doc Type: Bug Fix
Doc Text:
Cause: Calculating the size of entry in the memory was under estimated. Consequence: The entry cache size was larger than the specified size in the configuration. Result: The size of the entry cache is more accurate by calculating each entry size more accurately.
Story Points: ---
Clone Of:
: 1064006 (view as bug list) Environment:
Last Closed: 2014-10-14 07:52:56 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:    
Bug Blocks: 1061410    

Description Noriko Hosoi 2014-01-24 23:40:34 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/47677

1) slapi_dn_size implemented as a static function in entry.c is obsolete.
   It can be replaced with a slapi api slapi_sdn_get_size.
2) size of e_virtual_lock could be added to the size.

Comment 2 Noriko Hosoi 2014-06-26 23:50:55 UTC
This is a part of our effort preventing the server size growth.  To verify the bug, using some long running tests (e.g., reliability), check the server size before and after.  If the delta is reasonable, we could claim this fix was verified.

Comment 3 Viktor Ashirov 2014-07-24 12:01:42 UTC
Noriko, could you please elaborate on verification steps? 
What is meant by server size? Value of RSS of a process? 
What size of a delta is considered reasonable? Several megabytes, tens of megabytes? 
Thank you!

Comment 4 Noriko Hosoi 2014-07-24 17:05:31 UTC
(In reply to Viktor Ashirov from comment #3)
> Noriko, could you please elaborate on verification steps? 
> What is meant by server size? Value of RSS of a process? 
> What size of a delta is considered reasonable? Several megabytes, tens of
> megabytes? 
> Thank you!

Viktor, unfortunately, the delta is subtle and various.  There's no clear steps to verify this particular change.

I think sanity check is good enough for this bug.

Comment 5 Sankar Ramalingam 2014-09-17 18:09:09 UTC
Recent reliab15 execution against build 1.2.11.15-45 running fine. No issues reported from the execution. Hence, marking the bug as Verified as Sanity only.

Beaker job - https://beaker.engineering.redhat.com/jobs/749819

Comment 6 errata-xmlrpc 2014-10-14 07:52:56 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, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-1385.html