folly::bm_llc_evict

Evict cache lines by writing to a large block of memory.

Synopsis

Declared in <folly/BenchmarkUtil.h>

void
bm_llc_evict(size_t value);

Description

Write to a large block of memory and evict whatever cache lines might currently be resident in any levels of cache.

Parameters

NameDescription
valueNumber of bytes to write over in order to evict the cache.