This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
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 2183967 - "ip -b" gets OOM-killed when adding routes with NetworkManager active
Summary: "ip -b" gets OOM-killed when adding routes with NetworkManager active
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: iproute
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andrea Claudi
QA Contact: Mingyu Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-03 09:32 UTC by David Jaša
Modified: 2023-05-24 09:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-24 09:53:28 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
bird_routes.py (849 bytes, text/plain)
2023-04-03 09:32 UTC, David Jaša
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   RHEL-522 0 None Migrated None 2023-10-06 07:51:56 UTC
Red Hat Issue Tracker RHELPLAN-153878 0 None None None 2023-04-03 14:03:33 UTC

Description David Jaša 2023-04-03 09:32:34 UTC
Created attachment 1955430 [details]
bird_routes.py

Description of problem:
"ip -b" gets OOM-killed when adding routes with NetworkManager active.

Version-Release number of selected component (if applicable):
iproute-6.1.0-1.el9.x86_64

How reproducible:
frequently

Steps to Reproduce:
1. make sure that NetworkManager.service is active
2. prepare a routes file:
bird_routes.py testX6 6 $NUM > bird-routes
3. apply these commands:
ip -b bird-routes

Actual results:
on a machine with 4GB memory:
- NUM=100000 seems to pass always
- NUM between 400000 to 500000 sometimes works, sometimes OOMs
- NUM around one million or larger yields reliable OOM

OOM:
Mar 30 10:21:16 kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-0.slice/session-3.scope,task=ip,pid=26861,uid=0
Mar 30 10:21:16 kernel: Out of memory: Killed process 26861 (ip) total-vm:26388012kB, anon-rss:3335200kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:51676kB oom_score_adj:0

Expected results:
ip does keeps reasonable memory usage

Additional info:
* similar behaviour is for IPv4 as well however large NUM is needed to make it visible
* generating script is as used in NetworkManager CI: https://gitlab.freedesktop.org/NetworkManager/NetworkManager-ci/-/blob/main/prepare/bird_routes.py
* we created this scenario as a verification of bug 1861527 to mimick environment of BGP routers (where 2M of routes per interface are nothing exceptional). Over time, the scenario started failing for unclear reasons which turned out to be this bug

Comment 1 David Jaša 2023-04-03 14:02:01 UTC
Few more Additional info bullets:
* NM itself behaves as expected. It gets flooded by the sheer number of the new routes, however it keeps its resource usage under control
* when NM is disabled, the memory issues of ip do not occur. However as we need to verify NM behaviour, we need to have this working with NM running

Comment 2 Andrea Claudi 2023-05-24 09:53:28 UTC
This issue was migrated to JIRA. You can track it on https://issues.redhat.com/browse/RHEL-522


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