Skip to content

Commit

Permalink
perf: reclaim heap memory after compaction.
Browse files Browse the repository at this point in the history
(cherry picked from commit 77c92ca)
  • Loading branch information
oilbeater committed Apr 25, 2021
1 parent 703174a commit 1b35390
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dist/images/start-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,11 @@ else
fi
fi
fi

# Reclaim heap memory after compaction
# https://www.mail-archive.com/ovs-dev@openvswitch.org/msg48853.html
ovs-appctl -t /var/run/ovn/ovnnb_db.ctl ovsdb-server/memory-trim-on-compaction on
ovs-appctl -t /var/run/ovn/ovnsb_db.ctl ovsdb-server/memory-trim-on-compaction on

chmod 600 /etc/ovn/*
tail -f /var/log/ovn/ovn-northd.log

0 comments on commit 1b35390

Please sign in to comment.