• J
    blk-mq: limit memory consumption if a crash dump is active · aedcd72f
    Jens Axboe 提交于
    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: NJens Axboe <axboe@fb.com>
    aedcd72f
blk-mq.c 47.3 KB