Move only dirty data when gc runnning, in order to reducing write amplification.
euleros inclusion category: feature bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=327 CVE: NA Bcache will move all data, including clean and dirty data, in bucket when gc running. This will cause big write amplification, which may reduce the cache device's life. This patch provice a switch for gc to move only dirty data, which can reduce write amplification. Signed-off-by: Nqinghaixiang <xuweiqhx@163.com> Signed-off-by: NXu Wei <xuwei56@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com> Reviewed-by: NLi Ruilin <liruilin4@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录