summaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2022-06-30 13:27:00 +0200
committerIlya Maximets <i.maximets@ovn.org>2022-07-12 15:45:42 +0200
commite773140ec3f6d296e4a3877d709fb26fb51bc6ee (patch)
treeeec7637cec62ff714cdc87fcd466615e3ed26e00 /ovsdb
parentfe7382db67e913fa6f3028630f76e355078e2f84 (diff)
downloadopenvswitch-e773140ec3f6d296e4a3877d709fb26fb51bc6ee.tar.gz
ovsdb: Enable memory trimming after compaction by default.
Memory trimming was introduced in OVS 2.15 and didn't cause any issues in production environments since then, while allowing ovsdb-sever to consume a lot less memory in high scale OVN deployments. Enabling by default to make it easier to use. Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb')
-rw-r--r--ovsdb/ovsdb-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c
index 5549b4e3a..ddae685fd 100644
--- a/ovsdb/ovsdb-server.c
+++ b/ovsdb/ovsdb-server.c
@@ -80,7 +80,7 @@ static char *ssl_ciphers;
static bool bootstrap_ca_cert;
/* Try to reclaim heap memory back to system after DB compaction. */
-static bool trim_memory = false;
+static bool trim_memory = true;
static unixctl_cb_func ovsdb_server_exit;
static unixctl_cb_func ovsdb_server_compact;