Bug 1958349
| Summary: | ovn-controller doesn't release the memory after cluster-density run | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Mohit Sheth <msheth> | |
| Component: | Networking | Assignee: | Tim Rozet <trozet> | |
| Networking sub component: | ovn-kubernetes | QA Contact: | zhaozhanqi <zzhao> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | high | |||
| Priority: | high | CC: | astoycos, bbennett, bcafarel, dblack, dcbw, dceara, jlema, murali, smalleni | |
| Version: | 4.8 | Keywords: | Performance | |
| Target Milestone: | --- | |||
| Target Release: | 4.10.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | perfscale-ovn | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1967882 1996751 (view as bug list) | Environment: | ||
| Last Closed: | 2022-03-10 16:03:38 UTC | Type: | Bug | |
| 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: | 1967882, 1988565, 2024768 | |||
| Bug Blocks: | 1996751 | |||
|
Description
Mohit Sheth
2021-05-07 17:07:39 UTC
This might be related to malloc fastbins not being consolidated and not honoring M_TRIM_THRESHOLD (default 128KB) [0] [1]. One option would be to disable fast bins for ovn-controller although that needs to be scale tested properly as it might affect performance. This can be done at runtime without changing the OVN code by setting the GLIBC_TUNABLES before ovn-controller is started, e.g.: GLIBC_TUNABLES=glibc.malloc.mxfast=0 export GLIBC_TUNABLES [0] https://bugzilla.redhat.com/show_bug.cgi?id=921676 [1] https://sourceware.org/bugzilla/show_bug.cgi?id=14827 [2] https://sourceware.org/bugzilla/show_bug.cgi?id=14827#c7 We are observing the same behaviour in a 120 node baremetal cluster. Cluster density test was run on Friday and cleaned up on Friday. Since then, the cluster is in an idle state. Today Monday, the openshift-ovn-kubernetes memory usage is 730 GiB with a request of 78.2 GiB. CPU usage is 2.19 out of 5 requested. Env: - OCP 4.8.0-fc.9 - local gateway - ovn2.13-20.12.0-25.el8fdp.x86_64 Observed this on OCP 4.7.11 as well, after running some node-density workloads with 2000 services. The memory and CPU usage of OVN pods started increasing and new pod creation failed with error - CNI request timeout. Fix is present in 21.12.0-24.el8fdp On the build 4.10.0-0.nightly-2022-02-02-131023 I ran cluster density tests for 500 iterations on 100 worker nodes, and monitored the OVN-controller memory usage, it showed that the usage spiked for a bit before it went down to normal levels. Which makes this bz resolved. 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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056 |