SamatsWiki

   1 # Flush caches
   2 WRITEBACK_PERCENT=$(cat /sys/block/bcache0/bcache/writeback_percent)
   3 sudo echo 0 | sudo tee /sys/block/bcache0/bcache/writeback_percent
   4 # Watch this drop to zero
   5 watch -d cat /sys/block/bcache0/bcache/cache/bdev0/dirty_data
   6 sudo echo WRITEBACK_PERCENT | sudo tee /sys/block/bcache0/bcache/writeback_percent

Other resources

SamatsWiki: BCache (last edited 2019-06-16 08:39:46 by SamatJain)