From: Zheng Liu <gnehzuil.liu@gmail.com>
To: Slava Pestov <sp@datera.io>
Cc: linux-bcache@vger.kernel.org, Zheng Liu <wenqing.lz@taobao.com>
Subject: Re: How to invalidate all cache
Date: Mon, 13 Oct 2014 11:45:37 +0800 [thread overview]
Message-ID: <20141013034536.GA13155@gmail.com> (raw)
In-Reply-To: <CACHGV4Jn3ML=2PO9FtoT4OXZCtpt56bOb=TmnVanv7Tm2MJyDg@mail.gmail.com>
Hi Slava,
Thanks for your reply.
On Sun, Oct 12, 2014 at 08:16:31PM -0700, Slava Pestov wrote:
> You can try to detach the backing device, which will cause all dirty
> data to be written back, and attach it again.
Yes, detaching a backing device will make all dirty data to be written
back to the backing device. But if I understand correctly it couldn't
invalidate all data in cache device. That means that after attaching
backing device the data in cache device is still valid. All I want to
do is to remove all data in cache device. Any idea?
Regards,
- Zheng
>
> On Sun, Oct 12, 2014 at 8:03 PM, Zheng Liu <gnehzuil.liu@gmail.com> wrote:
> > Hi all,
> >
> > I am trying to do some benchmarks against bcache, espeically in cache
> > miss scenario, but I don't find a user interface to invalidate all
> > cache. Anyone can tell me how to do that.
> >
> > Thanks in advance,
> > - Zheng
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-10-13 3:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-13 3:03 How to invalidate all cache Zheng Liu
2014-10-13 3:16 ` Slava Pestov
2014-10-13 3:45 ` Zheng Liu [this message]
2014-10-13 3:43 ` Re[2]: " Pavel Goran
2014-10-13 13:30 ` Zheng Liu
2014-10-13 18:13 ` (unknown) Eric Wheeler
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=20141013034536.GA13155@gmail.com \
--to=gnehzuil.liu@gmail.com \
--cc=linux-bcache@vger.kernel.org \
--cc=sp@datera.io \
--cc=wenqing.lz@taobao.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).