Bug 1843874 - [RFE] ovsdb-server: Explore memory consumption reduction by shrinking unused space in hash maps
Summary: [RFE] ovsdb-server: Explore memory consumption reduction by shrinking unused ...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: OVN
Version: FDP 20.C
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: OVN Team
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-04 11:10 UTC by Ilya Maximets
Modified: 2023-07-13 07:25 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ilya Maximets 2020-06-04 11:10:23 UTC
ovsdb-server uses a lot of hash maps, but it never actually calls
hmap_shrink().  For example, if we will create a lot of logical switches
and ports for some special case and than remove all of them, ovsdb-server
will not return consumed memory to the system.

We need to explore how much memory we could save in such case and actually
shrink hash maps if needed.  'table->rows' might be a good candidate.

For the reference, concurrent hash maps in OVS (cmap) shrinks automatically if
memory usage is below than 20% of allocated space.  We might consider similar
approach.


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