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.
Wait for infinite loop and redirect the output to the (printed) log file.
The contents of the log file can be viewed in a desktop gadget or other commands that display it.

sendzero
Sends to all active monitors the 'setmax,waitzero' request action, to force flush the dirty cache.
Wait for zero dirty cache (currently for 90 seconds maximum).

bcache-backup.service is a sample service for systemd to handle bcacheMonitor on startup and shutdown of the operating system.

Features

  • bcacheMonitor [--backend device] [options]
  • bcacheMonitor --backend sdb[,sdc] --action setmin
  • bcacheMonitor --backend sdb[,sdc] --action setmax
  • bcacheMonitor --backend sdb[,sdc] --action [setmin|setmax],setusage
  • bcacheMonitor --backend sdb[,sdc] --action setusage,waitloop
  • bcacheMonitor --backend sdb[,sdc] --action setusage,waitlog
  • bcacheMonitor --action sendzero
  • bcacheMonitor --action showbcache

Project Samples

Project Activity

See All Activity >

License

GNU General Public License version 2.0 (GPLv2)

Follow bcacheMonitor

bcacheMonitor Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of bcacheMonitor!

Additional Project Details

Operating Systems

Linux

Intended Audience

Advanced End Users, System Administrators, End Users/Desktop

User Interface

Console/Terminal

Programming Language

Unix Shell

Related Categories

Unix Shell Storage Software, Unix Shell System Shells

Registered

2023-03-26