Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/ucache_bench/server/UcacheBenchServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ void UcacheBenchServer::setupCacheLib() {
cacheConfig.setAccessConfig(
{config_.hash_power, config_.hashtable_lock_power});

// Configure number of CacheLib shards if specified
if (config_.cachelib_num_shards > 0) {
cacheConfig.setNumShards(config_.cachelib_num_shards);
}

// Generate alloc sizes (factor 1.25, min allocation size)
// This provides a good distribution of allocation classes for cache items
// Max alloc size increased to 64KB to support production traffic distribution
Expand Down
Loading