From: "Sergey E. Kolesnikov" <rockingdemon@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: SSD TRIM on balance
Date: Fri, 18 Apr 2014 21:07:00 +0400 [thread overview]
Message-ID: <53515BB4.7070700@gmail.com> (raw)
Greetings everyone.
I've recently rebalanced my btrfs (kernel 3.13) running on two SSD
drives (raid-0) and a question arose.
Does btrfs perform TRIM on SSD balance? Fs is mounted with 'ssd' option,
but not 'discard'.
It seems fstrim only trims free chunks in allocated space, so we
possibly having a "trim leak" if no special treatment is taken on blocks
reallocated during balance operation.
root@midnight:/mnt/tmp# fstrim -v /
/: 0 bytes were trimmed
root@midnight:/mnt/tmp# btrfs fi df /
Data, RAID0: total=90.00GiB, used=86.84GiB
System, RAID1: total=32.00MiB, used=12.00KiB
Metadata, RAID1: total=4.00GiB, used=2.56GiB
root@midnight:/mnt/tmp# btrfs fi show /
Label: ssdbtrfs uuid: f61f749b-dce6-4e73-9d53-693e93ad61aa
Total devices 2 FS bytes used 89.41GiB
devid 1 size 111.31GiB used 49.03GiB path /dev/sda2
devid 2 size 111.31GiB used 49.03GiB path /dev/sdb2
Btrfs v3.12
Best regards,
Sergey E. Kolesnikov
next reply other threads:[~2014-04-18 17:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 17:07 Sergey E. Kolesnikov [this message]
2014-04-19 4:59 ` SSD TRIM on balance Duncan
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=53515BB4.7070700@gmail.com \
--to=rockingdemon@gmail.com \
--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 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).