Commit 015fcf13 authored by Gioh Kim's avatar Gioh Kim Committed by Jens Axboe

Documentation/ABI/rnbd-clt: Add description for nr_poll_queues

describe how to set nr_poll_queues and enable the polling
Signed-off-by: default avatarGioh Kim <gi-oh.kim@ionos.com>
Acked-by: default avatarJack Wang <jinpu.wang@cloud.ionos.com>
Link: https://lore.kernel.org/r/20210419073722.15351-15-gi-oh.kim@ionos.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2958a995
...@@ -56,3 +56,9 @@ Date: Feb 2020 ...@@ -56,3 +56,9 @@ Date: Feb 2020
KernelVersion: 5.7 KernelVersion: 5.7
Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com> Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description: Remap the disconnected device if the session is not destroyed yet. Description: Remap the disconnected device if the session is not destroyed yet.
What: /sys/block/rnbd<N>/rnbd/nr_poll_queues
Date: Feb 2020
KernelVersion: 5.7
Contact: Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>
Description: Contains the number of poll-mode queues
...@@ -85,6 +85,19 @@ Description: Expected format is the following:: ...@@ -85,6 +85,19 @@ Description: Expected format is the following::
By default "rw" is used. By default "rw" is used.
nr_poll_queues
specifies the number of poll-mode queues. If the IO has HIPRI flag,
the block-layer will send the IO via the poll-mode queue.
For fast network and device the polling is faster than interrupt-base
IO handling because it saves time for context switching, switching to
another process, handling the interrupt and switching back to the
issuing process.
Set -1 if you want to set it as the number of CPUs
By default rnbd client creates only irq-mode queues.
NOTICE: MUST make a unique session for a device using the poll-mode queues.
Exit Codes: Exit Codes:
If the device is already mapped it will fail with EEXIST. If the input If the device is already mapped it will fail with EEXIST. If the input
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment