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
Tracking State column performance after removing filter and index block from block cache with different block cache sizes. After applying these changes we test out if the block cache size has any impact on the performance of the fetching data from the State column. Using the state-perf database tool to check out the performance of reading data from the State column.
This was run on the n2-highcpu-16 GCP node with persistent disk.
The only changes here in the codebase are set_cache_index_and_filter_blocks set to false and block_cache for the State column set to the value in measurements.
From these results, we can see that there is not much improvement when increasing the block cache size of the State. This needs to be taken with a grain of salt since the access pattern when doing state-perf benchmarks is always unique, but we saw in previous benchmarks that the increase in block cache does improve performance in measurements so we would expect some difference in improvements here but there was none.
But from the aspect of RocksDB we want to cache State in our own Storage layer since we know better which data we will use.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Introduction
Tracking State column performance after removing filter and index block from block cache with different block cache sizes. After applying these changes we test out if the block cache size has any impact on the performance of the fetching data from the State column. Using the
state-perf
database tool to check out the performance of reading data from the State column.This was run on the
n2-highcpu-16
GCP node with persistent disk.The only changes here in the codebase are
set_cache_index_and_filter_blocks
set tofalse
andblock_cache
for the State column set to the value in measurements.Measurements
Column state with block cache size 0MiB:
Column state with block cache size 16MiB:
Column state with block cache size 32MiB:
Column state with block cache size 512MiB:
From these results, we can see that there is not much improvement when increasing the block cache size of the State. This needs to be taken with a grain of salt since the access pattern when doing
state-perf
benchmarks is always unique, but we saw in previous benchmarks that the increase in block cache does improve performance in measurements so we would expect some difference in improvements here but there was none.But from the aspect of RocksDB we want to cache State in our own Storage layer since we know better which data we will use.
References:
cache_index_and_filter_blocks
for State and FlatState columns #9319Beta Was this translation helpful? Give feedback.
All reactions