All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Steigerwald <Martin@lichtvoll.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: fstrim on BTRFS
Date: Thu, 29 Dec 2011 11:52:50 +0100	[thread overview]
Message-ID: <201112291152.51148.Martin@lichtvoll.de> (raw)
In-Reply-To: <4EFBE668.7030800@cn.fujitsu.com>

Am Donnerstag, 29. Dezember 2011 schrieb Li Zefan:
> Martin Steigerwald wrote:
> > Hi!
> >=20
> > With 3.2-rc4 (probably earlier), Ext4 seems to remember what areas =
it
> > trimmed:
> >=20
> > merkaba:~> fstrim -v /boot
> > /boot: 224657408 bytes were trimmed
> > merkaba:~> fstrim -v /boot
> > /boot: 0 bytes were trimmed
> >=20
> >=20
> > But BTRFS does not:
> >=20
> > merkaba:~> fstrim -v /
> > /: 4431613952 bytes were trimmed
> > merkaba:~> fstrim -v /
> > /: 4341846016 bytes were trimmed
> >=20
> >=20
> > Is it planned to add this feature to BTRFS as well?
>=20
> There's no such plan, but it's do-able, and I can take care of it.
> There's an issue though.
>=20
> Whether we want to store TRIMMED information on disk? ext4 doesn't
> do this, so the first fstrim will be slow though you've done fstrim
> in previous mount.
>=20
> For btrfs this issue can't be solved without disk format change that
> will break older kernels, but only 3.2-rcX kernels will be affected i=
f
> we push the following change into mainline before 3.2 release.

I can=B4t comment on the disk format change. But if it is accepted, I c=
an=20
give your patchset a spin before 3.3 merge window. Tell me when you=B4d=
 like=20
that.

If not, then AFAIK there is another disk format change necessary to rai=
se=20
hard link limit. So maybe then it makes sense to combine both disk form=
at=20
changes at some future kernel. Better an early one, before adoption rai=
ses=20
even more.

Thanks,
--=20
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2011-12-29 10:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-28 16:57 fstrim on BTRFS Martin Steigerwald
2011-12-29  4:02 ` Li Zefan
2011-12-29  4:21   ` Fajar A. Nugraha
2011-12-29  4:32     ` Fajar A. Nugraha
2011-12-29  4:37     ` Roman Mamedov
2011-12-29  4:42       ` Fajar A. Nugraha
2011-12-29  5:29         ` cwillu
2011-12-29 10:52   ` Martin Steigerwald [this message]
2012-01-03 21:05   ` Chris Mason
2011-12-29  4:29 ` Fajar A. Nugraha
2011-12-29  9:39   ` Li Zefan
2011-12-29  9:52     ` Fajar A. Nugraha
2011-12-30  6:19       ` Li Zefan
2011-12-30  6:35         ` Fajar A. Nugraha
  -- strict thread matches above, loose matches on Subject: below --
2014-10-31  0:21 Noah Massey

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=201112291152.51148.Martin@lichtvoll.de \
    --to=martin@lichtvoll.de \
    --cc=linux-btrfs@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 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.