Use memory-mapped segmented journal by default 28/95328/4
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Feb 2021 16:38:39 +0000 (17:38 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 6 May 2021 15:27:48 +0000 (15:27 +0000)
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 <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-clustering-config/src/main/resources/initial/factory-akka.conf

index fb0afde4868fcf8ead803883b72c6ff0e63ea2f7..ed6c7b9d64887970a8ad7837cb00d7d3079c9953 100644 (file)
@@ -144,9 +144,9 @@ odl-cluster-data {
           max-entry-size = 16M
           # Maximum size of a segment
           max-segment-size = 128M
           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
         }
       }
 
         }
       }