Skip to content

Commit

Permalink
ovsdb: Enable memory trimming after compaction by default.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
igsilya committed Jul 12, 2022
1 parent fe7382d commit e773140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS
Expand Up @@ -21,6 +21,9 @@ Post-v2.17.0
configuration in a clustered databse independently for each server.
E.g. for listening on unique addresses. See the ovsdb.local-config.5
manpage for schema details.
* Returning unused memory to the OS after the database compaction is now
enabled by default. Use 'ovsdb-server/memory-trim-on-compaction off'
unixctl command to disable.
- OVSDB-IDL:
* New monitor mode flag, OVSDB_IDL_WRITE_CHANGED_ONLY, allowing
applications to relax atomicity requirements when dealing with
Expand Down
2 changes: 1 addition & 1 deletion ovsdb/ovsdb-server.c
Expand Up @@ -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;
Expand Down

0 comments on commit e773140

Please sign in to comment.