Bug 869443 - The sssd_nss process grows the memory consumption over time
The sssd_nss process grows the memory consumption over time
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd (Show other bugs)
Unspecified Unspecified
high Severity unspecified
: rc
: ---
Assigned To: Jakub Hrozek
Kaushik Banerjee
: Regression
Depends On:
  Show dependency treegraph
Reported: 2012-10-23 18:24 EDT by Jakub Hrozek
Modified: 2013-02-21 04:38 EST (History)
4 users (show)

See Also:
Fixed In Version: sssd-1.9.2-5.el6
Doc Type: Bug Fix
Doc Text:
No Documentation Needed
Story Points: ---
Clone Of:
Last Closed: 2013-02-21 04:38:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jakub Hrozek 2012-10-23 18:24:31 EDT
Description of problem:
The requests that the responders send to the Data Providers are allocated on the global context to ensure that even if the client disconnects, there is someone to read the reply. However, we forgot to free the structure that represents the request, which meant that the sssd_nss process grew over time.

Version-Release number of selected component (if applicable):

How reproducible:
quite hard

Steps to Reproduce:
1. set a very low cache timeout
2. run account requests in parallel
3. observe the sssd_nss process growing
Actual results:
sssd_nss process is growing

Expected results:
the consumption should stay pretty much the same

Additional info:
This is not easily reproducable, but apart from running many requests and watching the consumption grow, a quicker, but more involved way might be to check with the gdb that no tevent_req structures are allocated on top of the rctx after a request finishes. Please let me know which approach is preferable for QE.
Comment 2 Jakub Hrozek 2012-10-24 06:31:21 EDT
Upstream ticket:
Comment 4 Jenny Galipeau 2012-10-25 10:11:42 EDT
STI IPA automated testing can reproduce this issue and verify.
Comment 5 Jakub Hrozek 2012-10-30 19:24:04 EDT
Fixed upstream.
Comment 7 Jenny Galipeau 2012-11-15 10:15:44 EST
Hey Bruce:
Did you see this on the last execution?  Can this be set to VERIFIED?
Comment 8 baiesi 2012-11-27 10:28:35 EST
Not a defect I wrote up but was concerned with in the past. I just happened to be collecting this process info for sssd_nss the last 8 days with a build containing Jakubs fixes during my final system test run.

I applied mutithread ssh/sudo runtime load against the Ipa clients over a 8 day period subjecting each Ipa client to 50k attempts per day cycling through 10k Ipa users.  Over that period of time the ps aux process sssd_nss parameters %CPU, %MEM, VSZ, RSS was flat for both Ipa clients.  Samples were taken every 10 minutes, stored in my db for historical analysis.

Build Installed 11/16/2012
Red Hat Enterprise Linux Server release 6.4 Beta (Santiago)
IPA server version 3.0.1. API version 2.46
2 Ipa Servers
2 Ipa Clients

Pkgs installed
Comment 9 errata-xmlrpc 2013-02-21 04:38:07 EST
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.


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