dm crypt: increase mempool reserve to better support swapping
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 15 Jul 2016 21:30:20 +0000 (17:30 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 15 Aug 2016 13:23:14 +0000 (09:23 -0400)
commit0a83df6c8cacafbefc5b56b2fbcb92b0d75b744b
tree73aaaffa807cffe67c08967e73cc0d7e3a3f2ff8
parent802934b2cfde463b72cc1b9bc1c081895a90be53
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>
drivers/md/dm-crypt.c