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 1196320 - lldpad memory usage increases over time
Summary: lldpad memory usage increases over time
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lldpad
Version: 7.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Aaron Conole
QA Contact: Ondrej Mejzlik
URL:
Whiteboard:
Depends On:
Blocks: 1203710 1400961 1420851 1472751 1477664 1683960 1683961
TreeView+ depends on / blocked
 
Reported: 2015-02-25 17:04 UTC by Stuart Auchterlonie
Modified: 2023-03-08 07:27 UTC (History)
17 users (show)

Fixed In Version: lldpad-1.0.1-5.git036e314
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1275488 1683960 1683961 (view as bug list)
Environment:
Last Closed: 2019-08-06 13:18:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Output of /proc/<pid>/smaps for lldpad consuming excess memory (14.42 KB, text/plain)
2015-02-25 17:04 UTC, Stuart Auchterlonie
no flags Details
Strace output of a lldpad process that is malfunctioning. (48.58 KB, text/plain)
2016-12-19 22:29 UTC, Ted
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2339 0 None None None 2019-08-06 13:18:53 UTC

Description Stuart Auchterlonie 2015-02-25 17:04:48 UTC
Created attachment 995271 [details]
Output of /proc/<pid>/smaps for lldpad consuming excess memory

Description of problem:

lldpad memory usage increases over time

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

lldpad-0.9.46-2.el6.x86_64
lldpad-libs-0.9.46-2.el6.x86_64


How reproducible:

100% by customer

Steps to Reproduce:
1. run lldpad for an extended period of time
2.
3.

Actual results:

Memory usage of lldpad increases


Expected results:

Memory usage of lldpad should remain stable over time

Additional info:

See lines 44-46 of smaps data

Comment 1 Stuart Auchterlonie 2015-03-02 13:39:48 UTC
One further bit of information from the customer, every server that they
saw this happening on, is actually a VM running on an ESXi hypervisor.

So they shouldn't really be running lldpad on these servers, but equally
lldpad should not leak memory just because it's running on a VM.

Comment 7 Ted 2016-12-19 22:28:40 UTC
I am seeing the same problemm also on a ESXi hypervisors.  It appears to be trying to access something that doesn't exist on VMs and loops about once per second trying to access the resource.  Every time it loops, it adds about 5 bytes to the memory footprint.  These are El6 and El7 hosts.

Comment 8 Ted 2016-12-19 22:29:25 UTC
Created attachment 1233603 [details]
Strace output of a lldpad process that is malfunctioning.

Comment 13 Chris Leech 2018-05-23 23:02:09 UTC
Several of the subtype modules look to have incorrect return values when encountering unexpected TLVs.  It makes it look as if they have taken ownership of an allocation, and if nobody else actually claims it then the memory will be leaked.

I'm working up a test build, will share it when it's ready.

Comment 14 Chris Leech 2018-05-24 00:15:35 UTC
Test build for x86_64 RPMS at http://people.redhat.com/cleech/bz1196320/

Comment 23 Aaron Conole 2019-02-26 21:45:20 UTC
Brew build:
https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=853329

Comment 32 errata-xmlrpc 2019-08-06 13:18:45 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.

https://access.redhat.com/errata/RHBA-2019:2339

Comment 33 Jon Magrini 2020-01-23 18:32:11 UTC
*** Bug 1513811 has been marked as a duplicate of this bug. ***


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