From: Martin Steigerwald <Martin@lichtvoll.de>
To: Leonidas Spyropoulos <artafinde@gmail.com>
Cc: linux-btrfs@vger.kernel.org, Calvin Walton <calvin.walton@kepstin.ca>
Subject: Re: TRIM support
Date: Mon, 4 Jul 2011 21:51:03 +0200 [thread overview]
Message-ID: <201107042151.03835.Martin@lichtvoll.de> (raw)
In-Reply-To: <CAAeznTp0i4RCF61p-4SbFfipkHt9dzuAN=ec1ZrtEzD9Vxgx1g@mail.gmail.com>
Am Montag, 4. Juli 2011 schrieb Leonidas Spyropoulos:
> On Mon, Jul 4, 2011 at 5:20 PM, Martin Steigerwald <Martin@lichtvoll.de>
wrote:
> > Am Samstag, 2. Juli 2011 schrieben Sie:
> >> On Sat, 2011-07-02 at 19:08 +0100, Leonidas Spyropoulos wrote:
> >> > Hello,
> >> >
> >> > I just installed an archlinux with btrfs root partition and would
> >> > like to set the correct mount properties
> >> > Following this:
> >> > https://wiki.archlinux.org/index.php/Solid_State_Drives
> >> > it says there that I should use the discard mount parameter to
> >> > enable TRIM.
> >> >
> >> > I would like to ask by using ssd mount parameter would TRIM be
> >> > enabled? The SSD is Intel 320 Series 120Gb
> >>
> >> No, the "ssd" mount parameter has nothing to do with TRIM.
> >
> > [...]
> >
> >> The discard option is not currently automatically enabled; I think
> >> there may have been some performance issues in certain cases with
> >> drives that have slow trim implementations. But feel free to give it
> >> a try.
> >
> > As alternative use fstrim command from time to time or regularily
> > during a cron job. From what I understood it does batched discard of
> > all free blocks in a filesystem.
> >
> > merkaba:~> time fstrim -v /
> > /: 5044342784 bytes was trimmed
> > fstrim -v / 0,00s user 0,36s system 10% cpu 3,486 total
> >
> > merkaba:~> time fstrim -v /home
> > /home: 27062587392 bytes was trimmed
> > fstrim -v /home 0,00s user 0,92s system 20% cpu 4,512 total
> >
> > First one is BTRFS, second one is Ext4 - and will be, until I am
> > convinced that BTRFS has a fully featured and working fsck and until
> > its experimental flag is removed.
> >
> > fstrim is in util-linux(-ng) when its new enough.
>
> Do I need to run fstrim command while the partition is offline or can
> it be done while mounted?
It is run on a mount point, so I think the filesystem needs to be mounted.
They are here.
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
next prev parent reply other threads:[~2011-07-04 19:51 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-02 18:08 TRIM support Leonidas Spyropoulos
2011-07-02 19:45 ` Calvin Walton
[not found] ` <CAAeznTrfX9u9YXAz31cjsR=qxqrsnaPHLjZxqTaO4SDVBicF6A@mail.gmail.com>
2011-07-02 22:40 ` Leonidas Spyropoulos
2011-07-03 12:20 ` Hubert Kario
2011-07-03 12:56 ` Leonidas Spyropoulos
2011-07-03 14:46 ` Hubert Kario
[not found] ` <201107031654.03363.kario@wit.edu.pl>
[not found] ` <CAAeznTqPdQ99Qv7jFFthsZPdHN7ZedPszEJKhpe18gBEvR8=JQ@mail.gmail.com>
2011-07-03 15:28 ` Fwd: " Leonidas Spyropoulos
2011-07-04 16:20 ` Martin Steigerwald
2011-07-04 16:32 ` Leonidas Spyropoulos
2011-07-04 19:51 ` Martin Steigerwald [this message]
2011-07-10 8:33 ` Chris Samuel
2011-07-10 20:58 ` Leonidas Spyropoulos
2011-07-10 21:59 ` Fajar A. Nugraha
2011-07-10 22:34 ` Leonidas Spyropoulos
2011-07-11 6:04 ` Fajar A. Nugraha
2011-07-11 7:02 ` Leonidas Spyropoulos
2011-07-11 7:19 ` Fajar A. Nugraha
2011-07-11 5:53 ` Chris Samuel
2011-07-11 7:17 ` Ric Wheeler
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=201107042151.03835.Martin@lichtvoll.de \
--to=martin@lichtvoll.de \
--cc=artafinde@gmail.com \
--cc=calvin.walton@kepstin.ca \
--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).