Skip to content

Commit 6b87540

Browse files
Reduce block cache sizes to 64 MiB (#1794)
1 parent ca1e4a3 commit 6b87540

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

snow/engine/snowman/transitive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/ava-labs/avalanchego/utils/wrappers"
3030
)
3131

32-
const nonVerifiedCacheSize = 128 * units.MiB
32+
const nonVerifiedCacheSize = 64 * units.MiB
3333

3434
var _ Engine = (*Transitive)(nil)
3535

vms/proposervm/state/block_state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/ava-labs/avalanchego/vms/proposervm/block"
2121
)
2222

23-
const blockCacheSize = 256 * units.MiB
23+
const blockCacheSize = 64 * units.MiB
2424

2525
var (
2626
errBlockWrongVersion = errors.New("wrong version")

vms/proposervm/vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const (
4747
DefaultMinBlockDelay = time.Second
4848

4949
checkIndexedFrequency = 10 * time.Second
50-
innerBlkCacheSize = 128 * units.MiB
50+
innerBlkCacheSize = 64 * units.MiB
5151
)
5252

5353
var (

vms/rpcchainvm/vm_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import (
6565

6666
// TODO: Enable these to be configured by the user
6767
const (
68-
decidedCacheSize = 256 * units.MiB
68+
decidedCacheSize = 64 * units.MiB
6969
missingCacheSize = 2048
7070
unverifiedCacheSize = 64 * units.MiB
7171
bytesToIDCacheSize = 64 * units.MiB

0 commit comments

Comments
 (0)