]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dm: add 'blk_mq_nr_hw_queues' and 'blk_mq_queue_depth' module params
authorMike Snitzer <snitzer@redhat.com>
Thu, 28 Jan 2016 21:52:56 +0000 (16:52 -0500)
committerMike Snitzer <snitzer@redhat.com>
Sun, 7 Feb 2016 02:29:31 +0000 (21:29 -0500)
commit00233304676fea773d458c02b026cf218b34e222
treea3dfe8d4d577d0e90722be9f87c99cae0c9caf97
parentbeb5bd65bdaf4abe27edd1c34588ebe5d7cfa29e
dm: add 'blk_mq_nr_hw_queues' and 'blk_mq_queue_depth' module params

Allow user to change these values via module params or sysfs.

'blk_mq_nr_hw_queues' defaults to 1 (max 32).

'blk_mq_queue_depth' defaults to 2048 (up from 64, which proved far too
small under moderate sized workloads -- the dm-multipath device would
continuously block waiting for tags (requests) to become available).
The maximum is BLK_MQ_MAX_DEPTH (currently 10240).

Keep in mind the total number of pre-allocated requests per rq-based DM
blk-mq device is 'blk_mq_nr_hw_queues' * 'blk_mq_queue_depth' (currently
2048).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c