Skip to content

Commit

Permalink
dm thin: reduce endio_hook pool size
Browse files Browse the repository at this point in the history
commit 7768ed3 upstream.

Reduce the slab size used for the dm_thin_endio_hook mempool.

Allocation has been seen to fail on machines with smaller amounts
of memory due to fragmentation.

  lvm: page allocation failure. order:5, mode:0xd0
  device-mapper: table: 253:38: thin-pool: Error creating pool's endio_hook mempool

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
kergon authored and gregkh committed Aug 9, 2012
1 parent f74a7c9 commit ac9d9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-thin.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/*
* Tunable constants
*/
#define ENDIO_HOOK_POOL_SIZE 10240
#define ENDIO_HOOK_POOL_SIZE 1024
#define DEFERRED_SET_SIZE 64
#define MAPPING_POOL_SIZE 1024
#define PRISON_CELLS 1024
Expand Down

0 comments on commit ac9d9e6

Please sign in to comment.