You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
153739: server: raise DefaultCacheSize to 256MiB r=jbowens a=jbowens
Increase the default size of the storage engine's block cache from 128MiB to 256MiB. The 128MiB default is grossly inadequate, especially in the context of Pebble's 64MiB memtable size which subtracts from the block cache.
With the old 128 MiB cache size, the block cache size is effectively zero. We maintain one 64MiB memtable as the mutable memtable and one 64MiB memtable for recycling. Both draw down from the block cache's memory, leaving nothing for caching blocks.
We should consider updating the default to be a percentage of available memory (see #128190), but updating to a percentage is a more involved change and runs afoul of expectations of some tests. As a temporary stopgap, we double the fixed default size of the block cache.
Informs: #128190
Epic: none
Release note (ops change): Raises the cache size for the storage engine's block cache to 256MiB. Note production systems should always configure this setting.
Co-authored-by: Jackson Owens <[email protected]>
0 commit comments