Skip to content

Commit 6c62fd0

Browse files
Ming Leiaxboe
authored andcommitted
selftests: ublk: increase max nr_queues and queue depth
Increase max nr_queues to 32, and queue depth to 1024. Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 2f0a692 commit 6c62fd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/testing/selftests/ublk/kublk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ static int cmd_dev_get_features(void)
12031203
static int cmd_dev_help(char *exe)
12041204
{
12051205
printf("%s add -t [null|loop] [-q nr_queues] [-d depth] [-n dev_id] [backfile1] [backfile2] ...\n", exe);
1206-
printf("\t default: nr_queues=2(max 4), depth=128(max 128), dev_id=-1(auto allocation)\n");
1206+
printf("\t default: nr_queues=2(max 32), depth=128(max 1024), dev_id=-1(auto allocation)\n");
12071207
printf("%s del [-n dev_id] -a \n", exe);
12081208
printf("\t -a delete all devices -n delete specified device\n");
12091209
printf("%s list [-n dev_id] -a \n", exe);

tools/testing/selftests/ublk/kublk.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
#define UBLKSRV_IO_IDLE_SECS 20
5151

5252
#define UBLK_IO_MAX_BYTES (1 << 20)
53-
#define UBLK_MAX_QUEUES 4
54-
#define UBLK_QUEUE_DEPTH 128
53+
#define UBLK_MAX_QUEUES 32
54+
#define UBLK_QUEUE_DEPTH 1024
5555

5656
#define UBLK_DBG_DEV (1U << 0)
5757
#define UBLK_DBG_QUEUE (1U << 1)

0 commit comments

Comments
 (0)