Bcache Tuning

  • By Canonical BootStack Charmers
  • Storage
juju deploy bcache-tuning
Show information
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Channel Version Revision Published Runs on
latest/stable 8 8 14 Oct 2021
Ubuntu 20.04 Ubuntu 18.10 Ubuntu 18.04 Ubuntu 16.04
latest/candidate 8 8 14 Oct 2021
Ubuntu 20.04 Ubuntu 18.10 Ubuntu 18.04 Ubuntu 16.04


20.04 18.04 16.04 18.10


Helper charm for tuning of bcache block devices Read more

Relevant links

Discuss this charm

Share your thoughts on this charm with the community on discourse.

Join the discussion


This charm performs best-practice performance tuning of bcache devices on SD/NVMe based installations.

Cache Set Configuration

Disable performance based congestion behaviour - the SSD or NVMe will in all likelyhood always be faster than the underlying spindle:

congested_read_threshold_us: 0
congested_write_threshold_us: 0

Bcache Backing Device Configuration

Disable cache readahead:

readahead: 0

Disable writethrough of sequential data writes:

sequential_cutoff: 0

Set the amount of dirty data the cache device will hold before starting to persist to the backing device:

writeback_percent: 10

Sets unmanaged cache_mode:

cache_mode: unmanaged


To use this charm, simple deploy and relation to principle services:

juju deploy bcache-tuning
juju add-relation bcache-tuning ceph-osd
juju add-relation bcache-tuning nova-compute

This charm presents no configuration options.