linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Xen <list@xenhideout.nl>
To: Linux lvm <linux-lvm@redhat.com>
Subject: [linux-lvm] 2 questions on LVM cache
Date: Wed, 27 Apr 2016 10:50:13 +0000	[thread overview]
Message-ID: <29e7f847e1150949aa52c58fa33cf8cd@dds.nl> (raw)

1. Does LVM cache support discards of the underlying blocks (in the 
cache) when the filesystem discards the blocks?

I was reading https://lwn.net/Articles/293658/ which makes it clear that 
years ago kernel developers were introducing discard behaviour into 
Linux filesystems with respect to flash devices and their need to copy 
for wear leveling.

I know so little about it, but I have seen the "discard" flag mentioned 
so much with respect to SSDs, that I must assume these discards are 
there. Are LVM cache blocks discarded when the filesystem layer discards 
these blocks?

Where can I find this info?

In https://www.redhat.com/archives/linux-lvm/2016-April/msg00030.html I 
mentioned that such a discard feature would be necessary in order for a 
filesystem to communicate to a block device layer which blocks are in 
use, and for a block device layer to communicate back a set of available 
blocks if these dynamically change.




I forgot the other question lol.

I'm interested in this solution to 
"https://bugzilla.redhat.com/show_bug.cgi?id=1189215" but I will respond 
in my other email (LVM Thin: Handle out of space conditions better).

             reply	other threads:[~2016-04-27 10:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 10:50 Xen [this message]
2016-04-27 11:10 ` [linux-lvm] 2 questions on LVM cache Zdenek Kabelac

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=29e7f847e1150949aa52c58fa33cf8cd@dds.nl \
    --to=list@xenhideout.nl \
    --cc=linux-lvm@redhat.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).