Bug 1943310

Summary: [SCALE] enable OVN DB memory trimming on compaction
Product: OpenShift Container Platform Reporter: Dan Williams <dcbw>
Component: NetworkingAssignee: Tim Rozet <trozet>
Networking sub component: ovn-kubernetes QA Contact: Ross Brattain <rbrattai>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: anbhat, memodi, rbrattai, trozet, vpickard, zzhao
Version: 4.7   
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1908774 Environment:
Last Closed: 2021-04-05 13:56:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1908774    
Bug Blocks:    

Comment 3 zhaozhanqi 2021-03-30 08:31:26 UTC
@rbrattai Could you help check this bug since I saw you verified it on 4.8 version

Comment 4 Ross Brattain 2021-04-01 20:00:13 UTC
Verified on 4.7.0-0.nightly-2021-04-01-061355

observed "memory trimming after compaction enabled."  and "raft-log:" stat seems to decrease after compaction.

83:2021-04-01T19:52:21Z|00007|ovsdb_server|INFO|memory trimming after compaction enabled.
91:2021-04-01T19:52:30Z|00014|memory|INFO|98732 kB peak resident set size after 10.4 seconds
92:2021-04-01T19:52:30Z|00015|memory|INFO|cells:4203 monitors:0 raft-connections:4 raft-log:4940
139:2021-04-01T19:52:21Z|00007|ovsdb_server|INFO|memory trimming after compaction enabled.
152:2021-04-01T19:52:30Z|00017|memory|INFO|44452 kB peak resident set size after 10.2 seconds
153:2021-04-01T19:52:30Z|00018|memory|INFO|cells:47595 monitors:0 raft-connections:4 raft-log:984

97:2021-04-01T19:49:30Z|00009|ovsdb_server|INFO|memory trimming after compaction enabled.
102:2021-04-01T19:49:39Z|00014|memory|INFO|98040 kB peak resident set size after 10.5 seconds
103:2021-04-01T19:49:39Z|00015|memory|INFO|cells:4220 monitors:0 raft-connections:4 raft-log:4866
186:2021-04-01T19:56:51Z|00011|memory|INFO|48604 kB peak resident set size after 10.3 seconds
187:2021-04-01T19:56:51Z|00012|memory|INFO|cells:47229 monitors:0 raft-connections:4 raft-log:1112

109:2021-04-01T19:54:59Z|00013|memory|INFO|101240 kB peak resident set size after 10.2 seconds
110:2021-04-01T19:54:59Z|00014|memory|INFO|cells:4181 monitors:0 raft-connections:4 raft-log:5004
111:2021-04-01T19:54:59Z|00015|ovsdb_server|INFO|memory trimming after compaction enabled.
152:2021-04-01T19:54:59Z|00012|ovsdb_server|INFO|memory trimming after compaction enabled.
153:2021-04-01T19:55:01Z|00013|memory|INFO|46832 kB peak resident set size after 10.0 seconds
154:2021-04-01T19:55:01Z|00014|memory|INFO|cells:47351 monitors:1 raft-connections:4 raft-log:1090 sessions:1

Comment 6 errata-xmlrpc 2021-04-05 13:56:42 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 (Moderate: OpenShift Container Platform 4.7.5 security and bug fix 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.