diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2016-07-15 17:30:20 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-08-15 09:23:14 -0400 |
commit | 0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b (patch) | |
tree | 73aaaffa807cffe67c08967e73cc0d7e3a3f2ff8 /drivers/md | |
parent | 802934b2cfde463b72cc1b9bc1c081895a90be53 (diff) |
dm crypt: increase mempool reserve to better support swapping
Increase mempool size from 16 to 64 entries. This increase improves
swap on dm-crypt performance.
When swapping to dm-crypt, all available memory is temporarily exhausted
and dm-crypt can only use the mempool reserve.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 4e9784b4e0ac..eedba67b0e3e 100644 --- a/drivers/md/dm-crypt.c +++ b/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); |