[BLOCK] Don't pin lots of memory in mempools
Currently we scale the mempool sizes depending on memory installed
in the machine, except for the bio pool itself which sits at a fixed
256 entry pre-allocation.
There's really no point in "optimizing" this OOM path, we just need
enough preallocated to make progress. A single unit is enough, lets
scale it down to 2 just to be on the safe side.
This patch saves ~150kb of pinned kernel memory on a 32-bit box.
Signed-off-by:
Jens Axboe <jens.axboe@oracle.com>
Showing
- drivers/md/dm-crypt.c 1 addition, 1 deletiondrivers/md/dm-crypt.c
- drivers/md/dm-io.c 1 addition, 1 deletiondrivers/md/dm-io.c
- drivers/md/dm.c 1 addition, 1 deletiondrivers/md/dm.c
- drivers/scsi/scsi_lib.c 1 addition, 1 deletiondrivers/scsi/scsi_lib.c
- fs/bio.c 6 additions, 35 deletionsfs/bio.c
- include/linux/bio.h 1 addition, 1 deletioninclude/linux/bio.h
Loading
Please register or sign in to comment