From: Mike Snitzer <snitzer@redhat.com>
To: "mlody3k ." <mlody3k@gmail.com>
Cc: dm-devel@redhat.com
Subject: Re: dm-cache + storage client experiment
Date: Wed, 20 Jan 2016 12:57:13 -0500 [thread overview]
Message-ID: <20160120175713.GB15897@redhat.com> (raw)
In-Reply-To: <CALU38fe9yDR7=P2eNez0fvgsrBmcY=Q=BvTnC5cPzu-o=MgbzA@mail.gmail.com>
On Tue, Jan 19 2016 at 11:01am -0500,
mlody3k . <mlody3k@gmail.com> wrote:
> Hi dm developers!
>
> I'm during the experiment with dm-cache and storage client and I would be
> very grateful if some of You will help me with some of my questions :).
>
> Simply, I would like to implement the write-through caching in the client
> where:
> - dm-cache is only responsible to check whether requested data is in the
> cache device (return requested data if hit, ENODATA if miss - do not read
> from origin) - in case of miss, my client will read data from the origin.
> - dm-cache will write only to the cache device - client will write data to
> the origin.
>
> Easily, I need to start dm-cache in writethrough mode without determining
> the origin device. More specifically, I need to make two changes in dm code:
> - Bypass the origin device while writing data
> - Do not remap the result to the origin device in case of read miss.
>
> So here's my questions:
> - Do the similar solution exists?
> - Do I have to change the policy code or maybe all of this things are
> contained in the target code?
> - Could someone reproduce the IO path in dm-cache code?
I vaguely recall fielding this type of question before...
DM cache doesn't provide this. And I'm not aware of any modifications
others have done to approximate what you're asking for.
I'm missing why the origin device driver's access isn't the equivalent
of your "client". If you need some shim for what is allowed through
this client you'd be better off developing a DM target that provides
this client-based access to the data. And _not_ modifying dm-cache.
prev parent reply other threads:[~2016-01-20 17:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-19 16:01 dm-cache + storage client experiment mlody3k .
2016-01-20 16:14 ` John Stoffel
2016-01-20 17:57 ` Mike Snitzer [this message]
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=20160120175713.GB15897@redhat.com \
--to=snitzer@redhat.com \
--cc=dm-devel@redhat.com \
--cc=mlody3k@gmail.com \
/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.