Skip to contentSkip to conversation

WBT for SQ devices interface

DISCUSSION Jan Kara 3 participants 3 messages Apr 11, 2017 Block layer

lore
Share & tools
lore

Jan Kara

author
#0 lore raw

Hi,

when testing my fix for 0-day reports with writeback throttling I came across somewhat unexpected behavior with user interface of writeback throttling. So currently if CFQ is used as an IO scheduler, we disable writeback throttling because they don't go well together. However when user has CONFIG_BLK_WBT_SQ=y and switches IO scheduler to NOOP or DEADLINE writeback throttling still stays disabled. This is somewhat unexpected especially because the switching of IO scheduler from CFQ to something else can have happened behind user's back by some udev rule or so. So basically CONFIG_DEFAULT_CFQ=y and CONFIG_BLK_WBT_SQ=y don't make sense together.

So do people thing we should enable WBT if CONFIG_BLK_WBT_SQ=y and IO scheduler is switched from CFQ to something else?

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#1 lore raw
Quoted 9 lines · Jan Kara

when testing my fix for 0-day reports with writeback throttling I came across somewhat unexpected behavior with user interface of writeback throttling. So currently if CFQ is used as an IO scheduler, we disable writeback throttling because they don't go well together. However when user has CONFIG_BLK_WBT_SQ=y and switches IO scheduler to NOOP or DEADLINE writeback throttling still stays disabled. This is somewhat unexpected especially because the switching of IO scheduler from CFQ to something else can have happened behind user's back by some udev rule or so. So basically CONFIG_DEFAULT_CFQ=y and CONFIG_BLK_WBT_SQ=y don't make sense together.

:(

Quoted 2 lines

So do people thing we should enable WBT if CONFIG_BLK_WBT_SQ=y and IO scheduler is switched from CFQ to something else?

Yes please. If a scheduler doesn't like WBT then that is its own problem. Deadline with WBT has worked fine for me.

-h

maintainer
#2 lore raw
In reply to Jan Kara
Quoted 7 lines · Jan Kara

=20
Hi,
=20
when testing my fix for 0-day reports with writeback throttling I came across somewhat unexpected behavior with user interface of writeback throttling. So currently if CFQ is used as an IO scheduler, we disable writeback throttling because they don't go well together. However when use=

r

Quoted 3 lines

has CONFIG_BLK_WBT_SQ=3Dy and switches IO scheduler to NOOP or DEADLINE writeback throttling still stays disabled. This is somewhat unexpected especially because the switching of IO scheduler from CFQ to something els=

e

Quoted 3 lines

can have happened behind user's back by some udev rule or so. So basically=

CONFIG_DEFAULT_CFQ=3Dy and CONFIG_BLK_WBT_SQ=3Dy don't make sense together=

.

Quoted 3 lines

=20
So do people thing we should enable WBT if CONFIG_BLK_WBT_SQ=3Dy and IO scheduler is switched from CFQ to something else?

Yes, I think so. We should have consistent behavior in that area, regardless=
of the starting point.

--=20
Jens Axboe