From: Mike Snitzer <snitzer@redhat.com>
To: Mahmoud Hanafi <mahmoud.hanafi@nasa.gov>
Cc: dm-devel@redhat.com, ejt@redhat.com
Subject: Re: dm-cache selective promotion of block
Date: Thu, 17 Dec 2015 16:18:06 -0500 [thread overview]
Message-ID: <20151217211805.GD25386@redhat.com> (raw)
In-Reply-To: <567308D6.8030306@nasa.gov>
On Thu, Dec 17 2015 at 2:11pm -0500,
Mahmoud Hanafi <mahmoud.hanafi@nasa.gov> wrote:
> We are experimenting with dm-cache and would like to be able to
> promote a range of block and pin them in the cache device.
>
> Are there any tool that can be used for this?
There isn't an interface to do that right now. But it _should_ be
possible to add a DM message to easily promote an origin block range.
Pinning isn't something we really do at this point so that'd require
more work.
But it could look something like this:
dmsetup message <cache_dev> 0 promote_oblocks <start> <end>
dmsetup message <cache_dev> 0 pin_oblocks <start> <end>
and:
dmsetup message <cache_dev> 0 demote_oblocks <start> <end>
dmsetup message <cache_dev> 0 unpin_oblocks <start> <end>
(where <start> and <end> are in either cache_block_size units or 512b
sectors... not sure which would be best, sectors is a bit more
approachable)
I could see this getting a bit cumbersome, not to mention the smq cache
policy really _should_ promote if it makes sense to cache a block, but
we'll certainly need Joe's thoughts on this.
Mike
next prev parent reply other threads:[~2015-12-17 21:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-17 19:11 dm-cache selective promotion of block Mahmoud Hanafi
2015-12-17 21:18 ` Mike Snitzer [this message]
2015-12-18 9:46 ` Joe Thornber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151217211805.GD25386@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=ejt@redhat.com \
--cc=mahmoud.hanafi@nasa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.