Skip to content

Commit

Permalink
XANMOD: block/mq-deadline: Increase write priority to improve respons…
Browse files Browse the repository at this point in the history
…iveness

Signed-off-by: Alexandre Frade <kernel@xanmod.org>
  • Loading branch information
xanmod committed Aug 2, 2022
1 parent e421ad5 commit a83f6b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions block/mq-deadline.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* for the blk-mq scheduling framework
*
* Copyright (C) 2016 Jens Axboe <axboe@kernel.dk>
*
* Tunes for responsiveness by Alexandre Frade
* (C) 2022 Alexandre Frade <kernel@xanmod.org>
*/
#include <linux/kernel.h>
#include <linux/fs.h>
Expand All @@ -30,13 +33,13 @@
* See Documentation/block/deadline-iosched.rst
*/
static const int read_expire = HZ / 2; /* max time before a read is submitted. */
static const int write_expire = 5 * HZ; /* ditto for writes, these limits are SOFT! */
static const int write_expire = HZ; /* ditto for writes, these limits are SOFT! */
/*
* Time after which to dispatch lower priority requests even if higher
* priority requests are pending.
*/
static const int prio_aging_expire = 10 * HZ;
static const int writes_starved = 2; /* max times reads can starve a write */
static const int writes_starved = 1; /* max times reads can starve a write */
static const int fifo_batch = 16; /* # of sequential requests treated as one
by the above parameters. For throughput. */

Expand Down

0 comments on commit a83f6b7

Please sign in to comment.