惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
WordPress大学
WordPress大学
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
C
Check Point Blog
P
Proofpoint News Feed
H
Help Net Security
月光博客
月光博客
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
U
Unit 42
美团技术团队
I
InfoQ
A
About on SuperTechFans

LWN.net comments

tcmalloc's weird hack [LWN.net] Fixed? [LWN.net] mpd [LWN.net] Userspace AX.25 [LWN.net] RIP [LWN.net] My two cents... [LWN.net] pipx [LWN.net] Tragedy [LWN.net] A young man destined for glory [LWN.net] And 'less' won't let you search [LWN.net] A great loss [LWN.net] Sad and shocking news [LWN.net] Easy migration from Clementine [LWN.net] Sad coincidence [LWN.net] GNOME is actually usable thanks to Seth et al [LWN.net] Sad news :( [LWN.net] armhf supports preempt_rt [LWN.net] MusicBrainz accurracy [LWN.net] On open source maintainership [LWN.net] Let's stop here [LWN.net] Not a new thing [LWN.net] uv is indeed great pgmoneta Some comments on this on a Postgres blog feed [LWN.net] uv [LWN.net] going to Debian [LWN.net] Upgrading 64-bit-capable systems to 64-bit kernels? [LWN.net] Free Software foundations Maintainers can wait for code review but not for publish review? A reasonably extreme point of view [LWN.net]
This is an area where better block layer scheduling would...
koverstreet · 2026-06-27 · via LWN.net comments

When you've got background processes competing with foreground processes, the correct answer is priority scheduling. Trying to solve these problems above the block layer is probably doomed to failure.

Unfortunately, block layer scheduling is a mess - there's a cgroup interface, which doesn't work for in-kernel users like background writeback, and there's a bio interface which has never as far as I can tell actually worked. And there's two (!) competing block IO schedulers - the real one, and blk-writeback-throttling, which is really a scheduler in disguise. The writeback throttling scheduler has the right design for something that wants to limit load to the device to keep latencies low (so fsync is fast), but it has no priority interface (and the interface it does have is one of the more insane things in the block layer).

On top of that, if the device is doing writeback caching, the signal you get for doing wbt-throttle style latency limiting is crap. I've already moved all internal writes in bcachefs to REQ_FUA to avoid causing queuing delays for foreground writes, but writeback probably needs to be FUA too.