mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 16:31:18 +00:00
Use a smaller 24GB lmdb maximum
This commit is contained in:
parent
4c67016675
commit
3594f70c64
@ -118,7 +118,9 @@ impl Storage {
|
||||
// This has to be big enough for all the data.
|
||||
// Note that it is the size of the map in VIRTUAL address space,
|
||||
// and that it doesn't all have to be paged in at the same time.
|
||||
builder.set_map_size(1048576 * 1024 * 128); // 128 GB
|
||||
// Some filesystem that doesn't handle sparse files may allocate all
|
||||
// of this, so we don't go too crazy big.
|
||||
builder.set_map_size(1048576 * 1024 * 24); // 24 GB
|
||||
|
||||
let env = builder.open(&Profile::current()?.lmdb_dir)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user