Skip to main content

BCache

BCache

Plugin: proc.plugin Module: /sys/fs/bcache

Maintained by Netdata

Overview​

Statistics for BCache (block layer cache) devices, including cache hit ratios, I/O operations, cache allocations, and bypass activity.

This collector is only supported on the following platforms:

  • Linux

This collector supports collecting metrics from multiple instances of this integration, including remote instances.

Default Behavior​

Auto-Detection​

Automatically detects BCache devices by reading stats from /sys/block/*/bcache/.

Limits​

The default configuration for this integration does not impose any limits on data collection.

Performance Impact​

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup​

Prerequisites​

No action required.

Configuration​

Options​

There are no configuration options.

via File​

The configuration file name for this integration is netdata.conf.

The file format is a modified INI syntax. The general structure is:

[section1]
option1 = some value
option2 = some other value

[section2]
option3 = some third value

You can edit the configuration file using the edit-config script from the Netdata config directory.

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config netdata.conf
Examples​

There are no configuration examples.

Alerts​

The following alerts are available:

Alert nameOn metricDescription
bcache_cache_dirty disk.bcache_cache_allocpercentage of cache space used for dirty data and metadata (this usually means your SSD cache is too small)
bcache_cache_errors disk.bcache_cache_read_racesnumber of times data was read from the cache, the bucket was reused and invalidated in the last 10 minutes (when this occurs the data is reread from the backing device)

Metrics​

Metrics grouped by scope.

The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.

Per disk​

Labels:

LabelDescription
deviceTBD
mount_pointTBD
device_typeTBD

Metrics:

MetricDescriptionDimensionsUnit
disk.bcache_cache_allocBCache Cache Allocationsununsed, dirty, clean, metadata, undefinedpercentage
disk.bcache_hit_ratioBCache Cache Hit Ratio5min, 1hour, 1day, everpercentage
disk.bcache_ratesBCache Ratescongested, writebackKiB/s
disk.bcache_sizeBCache Cache SizesdirtyMiB
disk.bcache_usageBCache Cache Usageavailpercentage
disk.bcache_cache_read_racesBCache Cache Read Racesraces, errorsoperations/s
disk.bcacheBCache Cache I/O Operationshits, misses, collisions, readaheadsoperations/s
disk.bcache_bypassBCache Cache Bypass I/O Operationshits, missesoperations/s

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.