Re: [PATCH 0/4] dm: reduce memory overhead of DM devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 03, 2014 at 11:48:08AM +0000, Junichi Nomura wrote:
> This series of patches reduce the memory overhead of device-mapper
> device mainly by removing unused mempool for bio vecs.
> 
> DM creates per-device bioset to ensure forward progress under
> low memory situation and bioset always includes mempool for bvec.

Thanks, this looks like a good step forward.

I'd still love to go all the way and avoid any bio cloning.  I can
see two ways to do this:

 1) similar to the original block layer multipathing with a callback
    that allows the submitter to hook into the completion path at
    blk_update_request time.
 2) by not completing the io chain in req_bio_endio, similar to how
    we do it for requests that are part of a flush sequence using
    the REQ_FLUSH_SEQ.

While the first seems like the cleaner architecture it might be worth
to look into the second version given that 1) wasn't well received
last time, and 2) already works nicely for a very similar use
case.  If we end up implementing 1) it should also be able to replace
the current flag based completion hack for the flush sequence.

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux