From af678b03f7de4da1b5cdaec8d8f21222efb62e42 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 23 Feb 2021 17:38:39 +0100 Subject: [PATCH] Use memory-mapped segmented journal by default Segmented file implementation requires a buffer double the size of the file's maximum size. This ends up being allocated on-healp, which is wasteful from effeciency perspective. Switch default configuration so that it uses memory-mapped files instead. JIRA: CONTROLLER-1954 Change-Id: Icad9ef74c50467323e31567828a949c0cae52a9e Signed-off-by: Robert Varga --- .../src/main/resources/initial/factory-akka.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf index 97f8cce642..a70ca5de7a 100644 --- a/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf +++ b/opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf @@ -136,9 +136,9 @@ odl-cluster-data { max-entry-size = 16M # Maximum size of a segment max-segment-size = 128M - # Map each segment into memory. Note that while this can improve performance, - # it will also place additional burden on system resources. - memory-mapped = false + # Map each segment into memory. Defaults to true, use false to keep a heap-based + # buffer instead. + memory-mapped = true } } -- 2.36.6