From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>,
Xen <list@xenhideout.nl>
Subject: Re: [linux-lvm] on discards
Date: Mon, 15 May 2017 10:08:46 +0200 [thread overview]
Message-ID: <ea8a866c-a59a-20c3-a0fa-18374b5294f0@gmail.com> (raw)
In-Reply-To: <f6fc4140fc2dc768e9eb18080f8442a5@xenhideout.nl>
Dne 15.5.2017 v 05:16 Xen napsal(a):
> On discards,
>
> I have a thin pool that filled up when there was enough space, because the
> filesystem hadn't issued discards.
>
> I have ext4 mounted with the discard option, I hope, because it is in the list
> of default mount options of tune2fs:
>
> Default mount options: user_xattr acl discard
>
> What can I do to ensure that it won't happen again?
>
> Is the filesystem really mounted with discard?
>
> It doesn't say so anywhere.
>
Hi
I'd not suggest to mount fs with discard - but rather run 'fstrim' in your
cron once a while.
Standalone 'small trim' on deleted file is quite inefficient and will not
resolve aggregation of continuous blocks for proper trimming.
For thin-pool - min size of trim is i.e. whole 64K chunk, - when it sits on
SSD you need to even trim much multiple pool chunks to free something on your SSD.
When you run 'fstrim' whole region of unused blocks is trimmed - to it's
always biggest possible chunk.
Regards
Zdenek
prev parent reply other threads:[~2017-05-15 8:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-15 3:16 [linux-lvm] on discards Xen
2017-05-15 8:08 ` Zdenek Kabelac [this message]
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=ea8a866c-a59a-20c3-a0fa-18374b5294f0@gmail.com \
--to=zdenek.kabelac@gmail.com \
--cc=linux-lvm@redhat.com \
--cc=list@xenhideout.nl \
/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).