Add traffic policy for low cache available.
euleros inclusion category: feature bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=327 CVE: NA When cache available is low, bcache turn to writethrough mode. Therefore, All write IO will be directly sent to backend device, which is usually HDD. At same time, cache device flush dirty data to the backend device in the bcache writeback process. So write IO from user will damage the sequentiality of writeback. And if there is lots of IO from writeback, user's write IO may be block. This patch add traffic policy in bcache to solve the problem and improve the performance for bcache when cache available is low. Signed-off-by:qinghaixiang <xuweiqhx@163.com> Signed-off-by:
Xu Wei <xuwei56@huawei.com> Acked-by:
Xie XiuQi <xiexiuqi@huawei.com> Reviewed-by:
Li Ruilin <liruilin4@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com>
Showing
- drivers/md/bcache/bcache.h 49 additions, 0 deletionsdrivers/md/bcache/bcache.h
- drivers/md/bcache/btree.h 5 additions, 1 deletiondrivers/md/bcache/btree.h
- drivers/md/bcache/request.c 139 additions, 4 deletionsdrivers/md/bcache/request.c
- drivers/md/bcache/request.h 2 additions, 0 deletionsdrivers/md/bcache/request.h
- drivers/md/bcache/super.c 35 additions, 0 deletionsdrivers/md/bcache/super.c
- drivers/md/bcache/sysfs.c 56 additions, 0 deletionsdrivers/md/bcache/sysfs.c
- drivers/md/bcache/writeback.c 10 additions, 1 deletiondrivers/md/bcache/writeback.c
- drivers/md/bcache/writeback.h 4 additions, 2 deletionsdrivers/md/bcache/writeback.h
Please register or sign in to comment