Skip to content

block/blk-throttle: Fix throttle slice time for SSDs#74

Closed
blktests-ci[bot] wants to merge 2 commits intolinus-master_basefrom
series/987100=>linus-master
Closed

block/blk-throttle: Fix throttle slice time for SSDs#74
blktests-ci[bot] wants to merge 2 commits intolinus-master_basefrom
series/987100=>linus-master

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Jul 31, 2025

Pull request for series with
subject: block/blk-throttle: Fix throttle slice time for SSDs
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=987100

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: 260f6f4
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: d6084bb
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from b04d1d8 to ca0ff25 Compare July 31, 2025 18:03
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 0b59764 to aee5bd3 Compare July 31, 2025 19:11
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: 831462f
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from ca0ff25 to f8f0e95 Compare July 31, 2025 19:17
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from aee5bd3 to ef18525 Compare July 31, 2025 20:07
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: c93529a
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from f8f0e95 to b4795c8 Compare July 31, 2025 20:13
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ef18525 to 3851b3f Compare July 31, 2025 20:55
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: cbbf0a7
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from b4795c8 to 7f2cff0 Compare July 31, 2025 21:01
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 3851b3f to 28b3384 Compare July 31, 2025 23:42
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Jul 31, 2025

Upstream branch: 6a68cec
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 7f2cff0 to 611cbd8 Compare July 31, 2025 23:48
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 28b3384 to 8ab9be5 Compare August 1, 2025 00:45
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 1, 2025

Upstream branch: f2d282e
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 611cbd8 to 5e65358 Compare August 1, 2025 00:51
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 8ab9be5 to 5b90760 Compare August 1, 2025 04:53
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 1, 2025

Upstream branch: 89748ac
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 5e65358 to 5b65b52 Compare August 1, 2025 04:58
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 3893da1 to aeddbbb Compare August 1, 2025 12:14
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 1, 2025

Upstream branch: 89748ac
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 5b65b52 to e23bd8b Compare August 1, 2025 12:20
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from aeddbbb to f380900 Compare August 1, 2025 12:39
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: c30a135
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 4625cc7 to 6b8b4ab Compare August 9, 2025 06:31
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from ae9bce3 to e263d6e Compare August 9, 2025 15:26
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 9, 2025

Upstream branch: 561c803
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 6b8b4ab to 86710ca Compare August 9, 2025 15:36
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e263d6e to 77110f5 Compare August 10, 2025 05:58
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: b96ddbc
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 86710ca to bdc3946 Compare August 10, 2025 06:09
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 77110f5 to a2e0474 Compare August 10, 2025 06:39
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: 2b38afc
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from bdc3946 to ba68420 Compare August 10, 2025 06:49
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a2e0474 to 36a8aec Compare August 10, 2025 16:54
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 10, 2025

Upstream branch: 8f5ae30
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from ba68420 to a375b1e Compare August 10, 2025 17:04
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 36a8aec to 1a46df6 Compare August 12, 2025 04:07
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 53e760d
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from a375b1e to 37ff59b Compare August 12, 2025 04:19
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 1a46df6 to 404c2ca Compare August 12, 2025 16:09
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 0e39a73
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/987100=>linus-master branch from 37ff59b to 79f3af1 Compare August 12, 2025 16:21
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 12, 2025

Upstream branch: 8742b2d
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: 91325f3
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: 3a4a036
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 13, 2025

Upstream branch: dfc0f63
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 14, 2025

Upstream branch: 0cc5352
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 14, 2025

Upstream branch: 24ea63e
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 15, 2025

Upstream branch: d7ee5bd
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

groeck added 2 commits August 20, 2025 21:11
Commit d61fcfa ("blk-throttle: choose a small throtl_slice for SSD")
introduced device type specific throttle slices if BLK_DEV_THROTTLING_LOW
was enabled. Commit bf20ab5 ("blk-throttle: remove
CONFIG_BLK_DEV_THROTTLING_LOW") removed support for BLK_DEV_THROTTLING_LOW,
but left the device type specific throttle slices in place. This
effectively changed throttling behavior on systems with SSD which now use
a different and non-configurable slice time compared to non-SSD devices.
Practical impact is that throughput tests with low configured throttle
values (65536 bps) experience less than expected throughput on SSDs,
presumably due to rounding errors associated with the small throttle slice
time used for those devices. The same tests pass when setting the throttle
values to 65536 * 4 = 262144 bps.

The original code sets the throttle slice time to DFL_THROTL_SLICE_HD if
CONFIG_BLK_DEV_THROTTLING_LOW is disabled. Restore that code to fix the
problem. With that, DFL_THROTL_SLICE_SSD is no longer necessary. Revert to
the original code and re-introduce DFL_THROTL_SLICE to replace both
DFL_THROTL_SLICE_HD and DFL_THROTL_SLICE_SSD. This effectively reverts
commit d61fcfa ("blk-throttle: choose a small throtl_slice for SSD").

After the removal of CONFIG_BLK_DEV_THROTTLING_LOW, it is no longer
necessary to enable block accounting, so remove the call to
blk_stat_enable_accounting(). With that, the track_bio_latency variable
is no longer used and can be deleted from struct throtl_data. Also,
including blk-stat.h is no longer necessary.

While at it, also remove MAX_THROTL_SLICE since it is not used anymore.

Fixes: bf20ab5 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW")
Cc: Yu Kuai <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
throtl_slice is now a constant. Remove the variable and use the constant
directly where needed.

Cc: Yu Kuai <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Aug 20, 2025

Upstream branch: b19a97d
series: https://patchwork.kernel.org/project/linux-block/list/?series=987100
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants