diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2016-07-15 23:30:20 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-08-15 15:23:14 +0200 |
commit | 0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b (patch) | |
tree | 73aaaffa807cffe67c08967e73cc0d7e3a3f2ff8 /drivers/md/dm-crypt.c | |
parent | dm round robin: do not use this_cpu_ptr() without having preemption disabled (diff) | |
download | linux-0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b.tar.xz linux-0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b.zip |
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 '')
-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); |