linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ching lu <lsching17@gmail.com>
To: Eric Wheeler <bcache@lists.ewheeler.net>
Cc: linux-bcache@vger.kernel.org
Subject: Re: writeback mode behaviour on proper shut down
Date: Wed, 27 Apr 2016 09:45:22 +0800	[thread overview]
Message-ID: <CACHiF8C0A+Gmr5xYCRhB+dm0zLu3iyYysuQXNYAVLOmDUix5hg@mail.gmail.com> (raw)
In-Reply-To: <alpine.LRH.2.11.1604261953230.21555@mx.ewheeler.net>

is there any command for forcing flushing cache or invalidate cache?

On Wed, Apr 27, 2016 at 3:57 AM, Eric Wheeler <bcache@lists.ewheeler.net> wrote:
> On Tue, 26 Apr 2016, ching lu wrote:
>
>> Hi all,
>>
>> if i have 1 SSD caching 1 HDD using bcache, the cache mode is writeback
>>
>> if the PC shutdown/unmount normally, will all dirty data in the cache
>> be flushed to backing device before poweroff?
>
> No, it will remain in the cache.
>
>> i am afraid that SSD lose data if left without power for a long time.
>> e.g. hoilday.
>
> Wouldn't your data be retained if you used the SSD alone?  SSDs should be
> stable in a powered off state unless it is a bad device.
>
> There exist RAM-based disks that may be volatile, but that is unlikely to
> be your situation.
>
> --
> Eric Wheeler
>
>>
>> Thanks in advance,
>> C
>> --
>> 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
>>

  reply	other threads:[~2016-04-27  1:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-26  9:26 writeback mode behaviour on proper shut down ching lu
2016-04-26 19:57 ` Eric Wheeler
2016-04-27  1:45   ` ching lu [this message]
2016-04-27  2:10     ` Eric Wheeler
2016-04-28  3:55       ` ching lu
2016-05-11  1:14         ` 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=CACHiF8C0A+Gmr5xYCRhB+dm0zLu3iyYysuQXNYAVLOmDUix5hg@mail.gmail.com \
    --to=lsching17@gmail.com \
    --cc=bcache@lists.ewheeler.net \
    --cc=linux-bcache@vger.kernel.org \
    /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).