diff options
author | Jens Axboe <axboe@fb.com> | 2014-09-17 16:27:03 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-09-22 20:00:08 +0200 |
commit | aedcd72f6c283dffefbb8b808ae67bdd2c6eb11a (patch) | |
tree | 62b4cee6a4f3ae622068d48a00e177ad06ac04f4 /fs/cifs | |
parent | blk-mq: remove unnecessary blk_clear_rq_complete() (diff) | |
download | linux-aedcd72f6c283dffefbb8b808ae67bdd2c6eb11a.tar.xz linux-aedcd72f6c283dffefbb8b808ae67bdd2c6eb11a.zip |
blk-mq: limit memory consumption if a crash dump is active
It's not uncommon for crash dump kernels to be limited to 128MB or
something low in that area. This is normally not a problem for
devices as we don't use that much memory, but for some shared SCSI
setups with huge queue depths, it can potentially fill most of
memory with tons of request allocations. blk-mq does scale back
when it fails to allocate memory, but it scales back just enough
so that blk-mq succeeds. This could still leave the system with
not enough memory to make any real progress.
Check if we are in a kdump environment and limit the hardware
queues and tag depth.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/cifs')
0 files changed, 0 insertions, 0 deletions