Skip to content

Commit 0a83df6

Browse files
Mikulas Patockasnitm
authored andcommitted
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>
1 parent 802934b commit 0a83df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-crypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ struct crypt_config {
181181
u8 key[0];
182182
};
183183

184-
#define MIN_IOS 16
184+
#define MIN_IOS 64
185185

186186
static void clone_init(struct dm_crypt_io *, struct bio *);
187187
static void kcryptd_queue_crypt(struct dm_crypt_io *io);

0 commit comments

Comments
 (0)