Skip to content

Commit

Permalink
increase cache size to 50 000 for next release (#5079)
Browse files Browse the repository at this point in the history
there are many places that have to read atxs, if number of atxs in epoch larger then what we cache it causes cache threshing
signficant and disk reads. for example in this epoch nodes in cloud peek every 5m with 140MB/s reads.

i set it to 50 000 to account for possible growth in the next epoch.
  • Loading branch information
dshulyak committed Sep 25, 2023
1 parent 16b5ad9 commit e33b109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ In order to enable provide following configuration:
* [#5024](https://github.com/spacemeshos/go-spacemesh/pull/5024) Active set will be saved in state separately from ballots.
* [#5032](https://github.com/spacemeshos/go-spacemesh/pull/5032) Ativeset data pruned from ballots.
* [#5035](https://github.com/spacemeshos/go-spacemesh/pull/5035) Fix possible nil pointer panic when node fails to persist nipost builder state.
* [#5079](https://github.com/spacemeshos/go-spacemesh/pull/5079) increase atx cache to 50 000 to reduce disk reads.

## v1.1.5

Expand Down
2 changes: 1 addition & 1 deletion datastore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Config struct {

func DefaultConfig() Config {
return Config{
ATXSize: 20_000,
ATXSize: 50_000,
MalfeasenceSize: 1_000,
}
}
Expand Down

0 comments on commit e33b109

Please sign in to comment.