Bug 488219 - Increasing clvmd memory consumption during vgscan
Summary: Increasing clvmd memory consumption during vgscan
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: lvm2-cluster
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Milan Broz
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-03 09:33 UTC by Milan Broz
Modified: 2018-10-27 14:23 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 490426 (view as bug list)
Environment:
Last Closed: 2009-09-02 11:57:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch (1.87 KB, patch)
2009-03-03 09:37 UTC, Milan Broz
no flags Details | Diff
Proposed patch (2.47 KB, patch)
2009-03-05 14:27 UTC, Milan Broz
no flags Details | Diff
Milan's patch backported to 2.02.37 (1.72 KB, patch)
2009-03-18 12:10 UTC, Bryn M. Reeves
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1394 0 normal SHIPPED_LIVE lvm2-cluster bug-fix and enhancement update 2009-09-01 12:00:40 UTC

Description Milan Broz 2009-03-03 09:33:48 UTC
Description of problem:

If periodically running vgscan in cluster (without any other loc operation),
memory consupmtion for clvmd increase and can cause OOM.

Caused by missing dm_pool_empty() call in VG context refresh path.

(possible workaround should be try to [re]activate some clustered LV,
this should flush the alocated pool data)

Version-Release number of selected component (if applicable):
lvm2-cluster-2.02.40-7.el5

How reproducible:
just run while :; do vgscan; done

and watch 
while :; do ps wax -o command,rss,vsz | grep [c]lv ; sleep 5 ; done

Comment 1 Milan Broz 2009-03-03 09:37:18 UTC
Created attachment 333853 [details]
Proposed patch

Comment 2 Milan Broz 2009-03-05 14:27:29 UTC
Created attachment 334132 [details]
Proposed patch

Also cover remote metadata backup command which has the same problem.

Comment 3 Milan Broz 2009-03-05 16:29:56 UTC
Patch is in upstream cvs (for lvm2 2.02.46), will be included in RHEL5.4

Comment 4 Bryn M. Reeves 2009-03-18 12:10:18 UTC
Created attachment 335687 [details]
Milan's patch backported to 2.02.37

2.02.37 doesn't have the vg_read_internal etc. changes. Patch is just a rediff for that version.

Comment 5 Debbie Johnson 2009-03-27 13:09:53 UTC
My customer needs this for 4.7.z.  Is this possible to get into this or 4.8?
Should I create a new BZ for that release?  One of the customers requesting this is Hilti.

Comment 10 Milan Broz 2009-05-21 09:24:17 UTC
Fix in version lvm2-cluster-2.02.46-1.el5.

Comment 12 Corey Marthaler 2009-06-11 19:14:48 UTC
Marking verified. Didn't notice an increase after countless vgscan ops.

clvmd -T20                  431464 519336
clvmd -T20                  431464 519336
clvmd -T20                  431464 519336
clvmd -T20                  431464 519336

lvm2-2.02.46-5.el5

Comment 14 errata-xmlrpc 2009-09-02 11:57:53 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1394.html


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