How To Install cachelib on Fedora 36

In this tutorial we learn how to install cachelib in Fedora 36. cachelib is Pluggable caching engine for scale high performance cache services

Introduction

In this tutorial we learn how to install cachelib on Fedora 36.

What is cachelib

CacheLib is a C++ library providing in-process high performance caching mechanism. CacheLib provides a thread safe API to build high throughput, low overhead caching services, with built-in ability to leverage DRAM and SSD caching transparently.

We can use yum or dnf to install cachelib on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install cachelib.

Install cachelib on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install cachelib using dnf by running the following command:

sudo dnf -y install cachelib

Install cachelib on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install cachelib using yum by running the following command:

sudo yum -y install cachelib

How To Uninstall cachelib on Fedora 36

To uninstall only the cachelib package we can use the following command:

sudo dnf remove cachelib

cachelib Package Contents on Fedora 36

/usr/bin/cachebench
/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/da25d1c4ddfe02cc5fbdf1bcb41764bd5f1789
/usr/lib/.build-id/27
/usr/lib/.build-id/27/95a6a52ecd28957b58d4e27149bbf5e60b6700
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/b40c5506acd0dd0689724af17359660d438bf7
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/b8fb6290befb1519d5762a49a073d3c13da6d8
/usr/lib/.build-id/79
/usr/lib/.build-id/79/d7accd3a70e7c2503d4b6660c3ba84cf0ceaba
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/3449115f544a6e4a111147cf156be003493e82
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/90bc4f3be0621d62da7f94206a916757876cdd
/usr/lib64/libcachelib_allocator.so.16
/usr/lib64/libcachelib_allocator.so.16.20220314
/usr/lib64/libcachelib_cachebench.so.16
/usr/lib64/libcachelib_cachebench.so.16.20220314
/usr/lib64/libcachelib_common.so.16
/usr/lib64/libcachelib_common.so.16.20220314
/usr/lib64/libcachelib_datatype.so.16
/usr/lib64/libcachelib_datatype.so.16.20220314
/usr/lib64/libcachelib_navy.so.16
/usr/lib64/libcachelib_navy.so.16.20220314
/usr/lib64/libcachelib_shm.so.16
/usr/lib64/libcachelib_shm.so.16.20220314
/usr/share/cachelib
/usr/share/cachelib/test_configs
/usr/share/cachelib/test_configs/consistency
/usr/share/cachelib/test_configs/consistency/chained-items-stress-moving.json
/usr/share/cachelib/test_configs/consistency/chained-items-stress-no-moving.json
/usr/share/cachelib/test_configs/consistency/navy-with-deletes-inmem-buf.json
/usr/share/cachelib/test_configs/consistency/navy-with-deletes-stack-alloc-inmem-buf.json
/usr/share/cachelib/test_configs/consistency/navy-with-deletes-with-truncated-alloc-size.json
/usr/share/cachelib/test_configs/consistency/navy-with-deletes.json
/usr/share/cachelib/test_configs/consistency/navy-with-encryption-inmem-buf.json
/usr/share/cachelib/test_configs/consistency/navy-with-encryption.json
/usr/share/cachelib/test_configs/consistency/navy-with-reinsertion-inmem-buf.json
/usr/share/cachelib/test_configs/consistency/navy-with-reinsertion.json
/usr/share/cachelib/test_configs/consistency/navy.json
/usr/share/cachelib/test_configs/consistency/ram-with-deletes.json
/usr/share/cachelib/test_configs/consistency/ram.json
/usr/share/cachelib/test_configs/feature_stress
/usr/share/cachelib/test_configs/feature_stress/dram_cache.json
/usr/share/cachelib/test_configs/feature_stress/dynamic_refresh_time.json
/usr/share/cachelib/test_configs/feature_stress/free_list.json
/usr/share/cachelib/test_configs/feature_stress/item_destructor
/usr/share/cachelib/test_configs/feature_stress/item_destructor/dram.json
/usr/share/cachelib/test_configs/feature_stress/item_destructor/navy.json
/usr/share/cachelib/test_configs/feature_stress/item_destructor/navy_bighash.json
/usr/share/cachelib/test_configs/feature_stress/navy
/usr/share/cachelib/test_configs/feature_stress/navy/bc_fifo.json
/usr/share/cachelib/test_configs/feature_stress/navy/bh.json
/usr/share/cachelib/test_configs/feature_stress/navy/default.json
/usr/share/cachelib/test_configs/feature_stress/slab_release
/usr/share/cachelib/test_configs/feature_stress/slab_release/chained_items.json
/usr/share/cachelib/test_configs/feature_stress/slab_release/chained_items_moving.json
/usr/share/cachelib/test_configs/feature_stress/slab_release/default.json
/usr/share/cachelib/test_configs/feature_stress/slab_release/moving.json
/usr/share/cachelib/test_configs/hit_ratio
/usr/share/cachelib/test_configs/hit_ratio/cdn
/usr/share/cachelib/test_configs/hit_ratio/cdn/config.json
/usr/share/cachelib/test_configs/hit_ratio/cdn/pop.json
/usr/share/cachelib/test_configs/hit_ratio/cdn/sizes.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_assocs
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_assocs/config.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_assocs/pop.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_assocs/sizes.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_fbobj
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_fbobj/config.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_fbobj/pop.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_follower_fbobj/sizes.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_assocs
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_assocs/config.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_assocs/pop.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_assocs/sizes.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_fbobj
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_fbobj/config.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_fbobj/pop.json
/usr/share/cachelib/test_configs/hit_ratio/graph_cache_leader_fbobj/sizes.json
/usr/share/cachelib/test_configs/hit_ratio/kvcache_reg
/usr/share/cachelib/test_configs/hit_ratio/kvcache_reg/config.json
/usr/share/cachelib/test_configs/hit_ratio/kvcache_reg/pop.json
/usr/share/cachelib/test_configs/hit_ratio/kvcache_reg/sizes.json
/usr/share/cachelib/test_configs/integration_tests
/usr/share/cachelib/test_configs/integration_tests/cachelib_map.json
/usr/share/cachelib/test_configs/integration_tests/cachelib_map_asan.json
/usr/share/cachelib/test_configs/integration_tests/cachelib_range_map.json
/usr/share/cachelib/test_configs/integration_tests/cachelib_range_map_asan.json
/usr/share/cachelib/test_configs/integration_tests/fast_shutdown.json
/usr/share/cachelib/test_configs/integration_tests/high_refcount.json
/usr/share/cachelib/test_configs/simple_test.json
/usr/share/cachelib/test_configs/ssd_perf
/usr/share/cachelib/test_configs/ssd_perf/flat_kvcache_reg
/usr/share/cachelib/test_configs/ssd_perf/flat_kvcache_reg/config.json
/usr/share/cachelib/test_configs/ssd_perf/flat_kvcache_reg/pop.json
/usr/share/cachelib/test_configs/ssd_perf/flat_kvcache_reg/sizes.json
/usr/share/cachelib/test_configs/ssd_perf/graph_cache_leader
/usr/share/cachelib/test_configs/ssd_perf/graph_cache_leader/assoc_pop.json
/usr/share/cachelib/test_configs/ssd_perf/graph_cache_leader/assoc_sizes.json
/usr/share/cachelib/test_configs/ssd_perf/graph_cache_leader/config.json
/usr/share/cachelib/test_configs/ssd_perf/graph_cache_leader/fbobj_pop.json
/usr/share/cachelib/test_configs/ssd_perf/graph_cache_leader/fbobj_sizes.json
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_reg
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_reg/config.json
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_reg/pop.json
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_reg/sizes.json
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_wc
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_wc/config.json
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_wc/pop.json
/usr/share/cachelib/test_configs/ssd_perf/kvcache_l2_wc/sizes.json
/usr/share/cachelib/test_configs/throughput
/usr/share/cachelib/test_configs/throughput/navy_block_cache
/usr/share/cachelib/test_configs/throughput/navy_block_cache/navy_small_size_class.json
/usr/share/cachelib/test_configs/throughput/navy_block_cache/navy_small_stacked_alloc.json
/usr/share/cachelib/test_configs/throughput/navy_block_cache/navy_small_stacked_alloc_and_in_mem_buffer.json
/usr/share/cachelib/test_configs/throughput/navy_block_cache/navy_small_stacked_alloc_and_in_mem_buffer_throttled.json
/usr/share/cachelib/test_configs/throughput/same_value_get_throughput_high_contention.json
/usr/share/cachelib/test_configs/throughput/same_value_get_throughput_high_contention_try_lock.json
/usr/share/cachelib/test_configs/throughput/same_value_get_throughput_test_20_pools.json
/usr/share/cachelib/test_configs/throughput/same_value_get_throughput_test_single_pool.json
/usr/share/cachelib/test_configs/throughput/simple_get_throughput.json
/usr/share/cachelib/test_configs/throughput/simple_lone_get_throughput.json
/usr/share/cachelib/test_configs/throughput/simple_navy_delete_throughput.json
/usr/share/cachelib/test_configs/throughput/simple_online_throughput.json
/usr/share/cachelib/test_configs/throughput/simple_set_throughput.json
/usr/share/cachelib/test_configs/throughput/simple_set_throughput_with_chained_items.json
/usr/share/cachelib/test_configs/throughput/simple_trace_throughput.json
/usr/share/cachelib/test_configs/throughput/uniform_values_get_throughput_test.json
/usr/share/cachelib/test_configs/throughput/uniform_values_get_throughput_test_single_pool.json
/usr/share/doc/cachelib
/usr/share/doc/cachelib/BENCHMARKS.md
/usr/share/doc/cachelib/CHANGELOG.md
/usr/share/doc/cachelib/README.md
/usr/share/doc/cachelib/examples
/usr/share/doc/cachelib/examples/simple_cache
/usr/share/doc/cachelib/examples/simple_cache/CMakeLists.txt
/usr/share/doc/cachelib/examples/simple_cache/build.sh
/usr/share/doc/cachelib/examples/simple_cache/main.cpp
/usr/share/doc/cachelib/examples/simple_compact_cache
/usr/share/doc/cachelib/examples/simple_compact_cache/CMakeLists.txt
/usr/share/doc/cachelib/examples/simple_compact_cache/build.sh
/usr/share/doc/cachelib/examples/simple_compact_cache/main.cpp
/usr/share/licenses/cachelib
/usr/share/licenses/cachelib/LICENSE

References

Summary

In this tutorial we learn how to install cachelib on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).