All of lore.kernel.org
 help / color / mirror / Atom feed
From: Busby <chaimvy@gmail.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Does dm-thin support GC (garbage collection) ?
Date: Wed, 9 May 2012 14:03:12 +0800	[thread overview]
Message-ID: <CAJv3x-WpO85tOG0Gt8ZS5JV9Z_81G4F=_gHzSjtroVogAtgm4A@mail.gmail.com> (raw)
In-Reply-To: <20120508103032.GB4034@ubuntu>

I created pool without ignore_discard feature, is this the way to
enable discard? I mounted the ext4 with '--discard' args, I will trace
whether the ext4 really issue discard later.
Thanks.

Regards,
Busby


2012/5/8, Joe Thornber <thornber@redhat.com>:
> On Tue, May 08, 2012 at 03:21:31PM +0800, Busby wrote:
>>    I have tested that the blocks were reused in the other thin-lun of
>> this pool  when deleted a thin-lun .
>>    How can the blocks allocated for the thin-lun be dynamically
>> reclaimed? (use some method like 'discard' to tell the pool which
>> block should be reclaimed and whether the pool can reclaim it ?).
>>    When I mounted a filesystem on a thin-lun, create 4G bytes file
>> firstly, the pool have decreased  4G space, then I deleted the file,
>> the pool did not increase the size as I thought, after this, create a
>> 5G file, then the pool would decrease 1G size. So I think if the
>
> Have you enabled discard support in both the thin-pool _and_ the
> filesystem?  Have you confirmed that the filesystem issues the discard
> in your test scenario?  (eg, via blktrace).
>
> - Joe
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
>

  reply	other threads:[~2012-05-09  6:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07  7:28 Does dm-thin support GC (garbage collection) ? Busby
2012-05-07 13:22 ` Mike Snitzer
2012-05-08  5:01   ` Busby
2012-05-08  7:21     ` Busby
2012-05-08 10:30       ` Joe Thornber
2012-05-09  6:03         ` Busby [this message]
2012-05-09 13:47           ` Mike Snitzer

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='CAJv3x-WpO85tOG0Gt8ZS5JV9Z_81G4F=_gHzSjtroVogAtgm4A@mail.gmail.com' \
    --to=chaimvy@gmail.com \
    --cc=dm-devel@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 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.