Skip to content

Commit

Permalink
Deps: adapt to irmin 3.8
Browse files Browse the repository at this point in the history
Irmin 3.8 unifies 3 LRUs into 1 so we allow 3 more items into the unified LRU

See mirage/irmin#2254
  • Loading branch information
Pierre Boutillier authored and Marge Bot committed Dec 15, 2023
1 parent 8d58923 commit bb853f6
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 23 deletions.
4 changes: 2 additions & 2 deletions manifest/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ let ipaddr =

let ipaddr_unix = external_sublib ipaddr "ipaddr.unix"

let irmin = external_lib "irmin" V.(at_least "3.7.2" && less_than "3.8.0")
let irmin = external_lib "irmin" V.(at_least "3.8.0" && less_than "3.9.0")

let irmin_pack =
external_lib "irmin-pack" V.(at_least "3.7.2" && less_than "3.8.0")
external_lib "irmin-pack" V.(at_least "3.8.0" && less_than "3.9.0")

let irmin_pack_unix = external_sublib irmin_pack "irmin-pack.unix"

Expand Down
4 changes: 2 additions & 2 deletions opam/octez-dac-node.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ depends: [
"tezos-dac-lib"
"tezos-dac-node-lib"
"octez-l2-libs"
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"octez-protocol-017-PtNairob-libs"
"octez-protocol-018-Proxford-libs"
]
Expand Down
4 changes: 2 additions & 2 deletions opam/octez-dal-node.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ depends: [
"tezos-dal-node-lib"
"tezos-dal-node-services"
"octez-l2-libs"
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"prometheus-app" { >= "1.2" }
"prometheus" { >= "1.2" }
"octez-protocol-017-PtNairob-libs"
Expand Down
4 changes: 2 additions & 2 deletions opam/octez-l2-libs.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ depends: [
"tezos-rust-libs" { = "1.6" }
"data-encoding" { >= "0.7.1" & < "1.0.0" }
"index" { >= "1.6.0" & < "1.7.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"aches-lwt" { >= "1.0.0" }
"yaml" { >= "3.1.0" }
"ppx_import"
Expand Down
6 changes: 3 additions & 3 deletions opam/octez-libs.opam
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ depends: [
"aches-lwt" { >= "1.0.0" }
"ipaddr" { >= "5.3.0" & < "6.0.0" }
"ptime" { >= "1.1.0" }
"mtime" { >= "1.4.0" & < "2.0.0" }
"mtime" { >= "2.0.0" }
"conf-libev"
"uutf"
"ringo" { >= "1.0.0" }
"qcheck-core" {with-test}
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"conf-rust"
"integers"
"integers_stubs_js"
Expand Down
2 changes: 1 addition & 1 deletion opam/octez-shell-libs.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ depends: [
"octez-version"
"aches-lwt" { >= "1.0.0" }
"index" { >= "1.6.0" & < "1.7.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"camlzip" { >= "1.11" & < "1.12" }
"tar"
"tar-unix" { >= "2.0.1" & < "3.0.0" }
Expand Down
4 changes: 2 additions & 2 deletions opam/octez-smart-rollup-node-Proxford.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ depends: [
"octez-l2-libs"
"octez-crawler"
"data-encoding" { >= "0.7.1" & < "1.0.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"aches" { >= "1.0.0" }
"aches-lwt" { >= "1.0.0" }
"octez-injector"
Expand Down
4 changes: 2 additions & 2 deletions opam/octez-smart-rollup-node-PtNairob.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ depends: [
"octez-l2-libs"
"octez-crawler"
"data-encoding" { >= "0.7.1" & < "1.0.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"aches" { >= "1.0.0" }
"aches-lwt" { >= "1.0.0" }
"octez-injector"
Expand Down
4 changes: 2 additions & 2 deletions opam/octez-smart-rollup-node-alpha.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ depends: [
"octez-l2-libs"
"octez-crawler"
"data-encoding" { >= "0.7.1" & < "1.0.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"aches" { >= "1.0.0" }
"aches-lwt" { >= "1.0.0" }
"octez-injector"
Expand Down
4 changes: 2 additions & 2 deletions opam/virtual/octez-deps.opam
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ depends: [
"integers"
"integers_stubs_js"
"ipaddr" { >= "5.3.0" & < "6.0.0" }
"irmin" { >= "3.7.2" & < "3.8.0" }
"irmin-pack" { >= "3.7.2" & < "3.8.0" }
"irmin" { >= "3.8.0" & < "3.9.0" }
"irmin-pack" { >= "3.8.0" & < "3.9.0" }
"jingoo"
"json-data-encoding" { >= "0.12" & < "0.13" }
"lambda-term" { >= "3.3.1" }
Expand Down
4 changes: 3 additions & 1 deletion src/bin_dal_node/constants.ml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ let shards_store_lru_size =
cache. Each entry in the cache maintains two open file descriptors (one via
regular file opening and one via mmap on the bitset region). Note that setting
a too high value causes a "Too many open files" error. *)
let irmin_internals_entries_per_toplevel_entry = 3 in
let number_of_slots = 256 in
let number_of_remembered_levels = 1 in
number_of_slots * number_of_remembered_levels
irmin_internals_entries_per_toplevel_entry * number_of_slots
* number_of_remembered_levels

(* Fewer cache sizes should be enough in practice,
but we cache 50 since each cache entry has quite a small memory footprint. *)
Expand Down
2 changes: 1 addition & 1 deletion src/lib_context/helpers/env.ml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ let index_log_size = 2_500_000
(* Caps the number of entries stored in the Irmin's LRU cache. As a
trade-off, increasing this value will increase the memory
consumption.*)
let lru_size = 5_000
let lru_size = 15_000

(* This limit ensures that no trees with more than [auto_flush]
mutations can exist in memory, bounding the memory usage of a
Expand Down
2 changes: 1 addition & 1 deletion src/lib_smart_rollup_node/configuration.ml
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ let refutation_player_buffer_levels = 5

let default_index_buffer_size = 10_000

let default_irmin_cache_size = 100_000
let default_irmin_cache_size = 300_000

let loser_warning_message config =
if config.loser_mode <> Loser_mode.no_failures then
Expand Down

0 comments on commit bb853f6

Please sign in to comment.