Bug 20949 - bcache: call force_wake_up_gc() if necessary in check_should_bypass()
Summary: bcache: call force_wake_up_gc() if necessary in check_should_bypass()
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: 6.6.7-1
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-13 11:15 UTC by geshifei
Modified: 2025-05-13 14:21 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description geshifei 2025-05-13 11:15:23 UTC
Description of problem:
高负载io场景,bcache

Version-Release number of selected component (if applicable):
无

How reproducible:
大负载压测

Steps to Reproduce:
1,设置bcache模块参数
   bcache bch_cutoff_writeback=70
  bch_cutoff_writeback_sync=90
2,fio按读写比例6:4压测
3,测试完成后,间隔一段时间执行cat /sys/block/bcache*/bcache/cache/cache_available_percent,查看是否会变大

Actual results:
部分bcache盘的cache_available_percent一直是4%,这会导致测试一轮后,bcache盘的可用空间只有nvme盘的4%

Expected results:
cache_available_percent应该随着时间递增而变大

Additional info:
这是bcache的一个bug,见kernel upstrem的提交 05356938a4be356adde4eab4425c6822f3c7d706
Comment 1 小龙 admin 2025-05-13 14:21:52 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5257