OSDN Git Service

NVMe: increase depth of admin queue
authorJens Axboe <axboe@fb.com>
Fri, 6 Mar 2015 19:56:13 +0000 (12:56 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 31 Mar 2015 16:41:34 +0000 (10:41 -0600)
Usually the admin queue depth of 64 is plenty, but for some use cases we
really need it larger. Examples are use cases like MAT, where you have
to touch all of NAND for init/format like purposes. In those cases, we
see a good 2x increase with an increased queue depth.

Signed-off-by: Jens Axboe <axboe@fb.com>
Acked-by: Keith Busch <keith.busch@intel.com>
drivers/block/nvme-core.c

index 4dc858b..ef43278 100644 (file)
@@ -44,7 +44,7 @@
 
 #define NVME_MINORS            (1U << MINORBITS)
 #define NVME_Q_DEPTH           1024
-#define NVME_AQ_DEPTH          64
+#define NVME_AQ_DEPTH          256
 #define SQ_SIZE(depth)         (depth * sizeof(struct nvme_command))
 #define CQ_SIZE(depth)         (depth * sizeof(struct nvme_completion))
 #define ADMIN_TIMEOUT          (admin_timeout * HZ)