io_uring: increase IORING_MAX_ENTRIES to 32K for-5.4/io_uring-2019-09-15
authorDaniel Xu <dxu@dxuuu.xyz>
Sat, 14 Sep 2019 21:23:45 +0000 (14:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 Sep 2019 23:06:22 +0000 (17:06 -0600)
Some workloads can require far more than 4K oustanding entries. For
example memcached can have ~300K sockets over ~40 cores. Bumping the max
to 32K seems to work pretty well.

Reported-by: Dan Melnic <dmm@fb.com>
Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c

index 3c8859d417eb56a0c76e41115ef6fe3b6a77d71d..0dadbdbead0fbfef8b0f2373756b3254832ada53 100644 (file)
@@ -75,7 +75,7 @@
 
 #include "internal.h"
 
-#define IORING_MAX_ENTRIES     4096
+#define IORING_MAX_ENTRIES     32768
 #define IORING_MAX_FIXED_FILES 1024
 
 struct io_uring {