Bash script to monitor and adjust dirty cache size, writeback speed, bcache, device disk load.
Simple to use, various options, good error handling and usage and debug information, and it can be used as a service.
Example
start
bcacheMonitor --backend sdb --action setusage,waitlog
shutdown
bcacheMonitor --action sendzero
setusage,waitlog
Sets writeback optimizations and (default) mininum writeback rate, reads disk usage, and (deafult) sets the writeback rate so as not to overload the disks...