[dm-devel] [PATCH] dm-crypt: increase mempool size

Mikulas Patocka mpatocka at redhat.com
Fri Jul 15 21:30:20 UTC 2016


Increase mempool size from 16 to 64 entries.

When swapping to dm-crypt, all available memory is temporarily exhausted
and dm-crypt is only using the mempool reserve. Increasing mempool reserve
improves swapping performance.

Signed-off-by: Mikulas Patocka <mpatocka at redhat.com>

Index: linux-2.6/drivers/md/dm-crypt.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-crypt.c
+++ linux-2.6/drivers/md/dm-crypt.c
@@ -181,7 +181,7 @@ struct crypt_config {
 	u8 key[0];
 };
 
-#define MIN_IOS        16
+#define MIN_IOS        64
 
 static void clone_init(struct dm_crypt_io *, struct bio *);
 static void kcryptd_queue_crypt(struct dm_crypt_io *io);




More information about the dm-devel mailing list