Skip to contentSkip to conversation

null_blk: update usage hints for submit_queues

PATCH New weiping zhang 1 participant 2 messages Oct 13, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/2 null_blk: update usage hints for submit_queues

update the range of submits_queues, and correct usage hints.

---
 Documentation/block/null_blk.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/block/null_blk.txt +3 -3
index 3140dbd860d8..1f8d92c70458 100644
@@ -55,10 +55,10 @@ irqmode=[0-2]: Default: 1-Soft-irq
 completion_nsec=[ns]: Default: 10.000ns
   Combined with irqmode=2 (timer). The time each completion event must wait.
 
-submit_queues=[0..nr_cpus]:
+submit_queues=[1..nr_cpus]:
   The number of submission queues attached to the device driver. If unset, it
-  defaults to 1 on single-queue and bio-based instances. For multi-queue,
-  it is ignored when use_per_node_hctx module parameter is 1.
+  defaults to 1. For multi-queue, it is ignored when use_per_node_hctx module
+  parameter is 1.
 
 hw_queue_depth=[0..qdepth]: Default: 64
   The hardware queue depth of the device.
Signature · 1 line
2.14.2
#2 lore raw

PATCH 2/2 null_blk: add usage hints for no_sched

In reply to a message not in the archive

This parameter provide an option to disable io scheduler when nullb* in multi-queue mode.

---
 Documentation/block/null_blk.txt | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/block/null_blk.txt +4 -0
index 1f8d92c70458..b7161c8e70f2 100644
@@ -73,3 +73,7 @@ use_per_node_hctx=[0/1]: Default: 0
 
 use_lightnvm=[0/1]: Default: 0
   Register device with LightNVM. Requires blk-mq and CONFIG_NVM to be enabled.
+
+no_sched=[0/1]: Default: 0
+  0: nullb* use default blk-mq io scheduler.
+  1: nullb* doesn't use io scheduler.
Signature · 1 line
2.14.2