From 677d2ae9d6dbfa936b5bf127847c452e2d9b5994 Mon Sep 17 00:00:00 2001 From: Pierre Boutillier Date: Tue, 29 Jan 2019 16:12:39 +0100 Subject: [PATCH] Synchronize (and fix) maximal size of lmdb dbs Store can now be up to 40 Go large (was 4 To!) Context can now be up to 400 Go large (was 40 Go) --- src/lib_shell/state.ml | 4 ++-- vendors/irmin-lmdb/irmin_lmdb.ml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib_shell/state.ml b/src/lib_shell/state.ml index 7740042bb..7f3b9d696 100644 --- a/src/lib_shell/state.ml +++ b/src/lib_shell/state.ml @@ -1287,8 +1287,8 @@ let read let init ?patch_context - ?(store_mapsize=4_096_000_000_000L) - ?(context_mapsize=40_960_000_000L) + ?(store_mapsize=40_960_000_000L) + ?(context_mapsize=409_600_000_000L) ~store_root ~context_root genesis = diff --git a/vendors/irmin-lmdb/irmin_lmdb.ml b/vendors/irmin-lmdb/irmin_lmdb.ml index 9bf0f1452..276e29f9f 100644 --- a/vendors/irmin-lmdb/irmin_lmdb.ml +++ b/vendors/irmin-lmdb/irmin_lmdb.ml @@ -104,7 +104,7 @@ module Conf = struct let root = Irmin.Private.Conf.root let mapsize = - Irmin.Private.Conf.key "mapsize" int64_converter 40_960_000_000L + Irmin.Private.Conf.key "mapsize" int64_converter 409_600_000_000L let readonly = Irmin.Private.Conf.key "readonly" bool_converter false