Embassy
ekv

Crates

git

Versions

default

Flavors

Constant ekv::config::SCRATCH_PAGE_COUNT

source ·
pub const SCRATCH_PAGE_COUNT: usize = raw::SCRATCH_PAGE_COUNT; // 4usize
Expand description

Amount of scratch pages reserved for compaction.

Note that ekv already reserves a bare-minimum amount of pages to guarantee compaction can always make forward progress, so it’s technically fine to set this to 0. However, setting it too low can cause write amplification due to having to do many smaller compactions instead of fewer larger ones, so it is not recommended.

Default: 4.