---------
- arch: updates and cleanup (!1858)
+Improvements
+------------
+- local-data: increase capacity to 63 GiB (logged MDB_MAP_FULL, !1885)
+
Knot Resolver 6.4.2 (2026-08-05)
================================
struct kr_cdb_opts opts = {
.is_cache = false,
.path = path ? path : "ruledb", // under current workdir
- // FIXME: the file will be sparse, but we still need to choose its size somehow.
- // Later we might improve it to auto-resize in case of running out of space.
// Caveat: mdb_env_set_mapsize() can only be called without transactions open.
+ // Note that this value does not affect file size thanks to not using MDB_WRITEMAP.
+ // Large mmap would cause issues with valgrind: https://stackoverflow.com/a/59834216
.maxsize = !overwrite ? 0 :
- (maxsize ? maxsize : (size_t)(sizeof(size_t) > 4 ? 2048 : 500) * 1024*1024),
+ (maxsize ? maxsize : (size_t)(sizeof(size_t) > 4 ? 63 * 1024 : 500) * 1024*1024),
};
int ret = the_rules->api->open(&the_rules->db, &the_rules->stats, &opts);