Skip to content

Commit

Permalink
Increase the maximum of ancient slots allowed to be not combined
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Oct 17, 2024
1 parent ccdc567 commit 8ccef4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions accounts-db/src/ancient_append_vecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,9 @@ impl AccountsDb {
can_randomly_shrink: bool,
) {
let tuning = PackedAncientStorageTuning {
// only allow 10k slots old enough to be ancient
max_ancient_slots: 10_000,
// Slots old enough to be ancient. Setting this parameter
// to 100k makes ancient storages to be approx 5M.
max_ancient_slots: 100_000,
// re-combine/shrink 55% of the data savings this pass
percent_of_alive_shrunk_data: 55,
ideal_storage_size: NonZeroU64::new(get_ancient_append_vec_capacity()).unwrap(),
Expand Down

0 comments on commit 8ccef4e

Please sign in to comment.