Then I monitoring the cache_available_percent and writeback rate.
I no longer see the cache_available_percent dropped to 30 and writeback rate stucked at 4k.
I can see the rate got accelerated while the dirty buckets hit the writeback_rate_*_fp_term, which is expected
I used the same steps to verify it and can confirm it's succeeded in bionic-proposed too
fio --name=test1 --filename /dev/bcache0 --direct 1 --rw=randrw --bs=32k,4k --ioengine=libaio --iodepth=1
Then I monitoring the cache_available _percent and writeback rate. _percent dropped to 30 and writeback rate stucked at 4k. rate_*_ fp_term, which is expected
I no longer see the cache_available
I can see the rate got accelerated while the dirty buckets hit the writeback_