All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leonidas Spyropoulos <artafinde@gmail.com>
To: Martin Steigerwald <Martin@lichtvoll.de>
Cc: linux-btrfs@vger.kernel.org, Calvin Walton <calvin.walton@kepstin.ca>
Subject: Re: TRIM support
Date: Mon, 4 Jul 2011 17:32:16 +0100	[thread overview]
Message-ID: <CAAeznTp0i4RCF61p-4SbFfipkHt9dzuAN=ec1ZrtEzD9Vxgx1g@mail.gmail.com> (raw)
In-Reply-To: <201107041820.11370.Martin@lichtvoll.de>

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 ena=
ble
>> > 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 dur=
ing 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 / =A00,00s user 0,36s system 10% cpu 3,486 total
>
> merkaba:~> time fstrim -v /home
> /home: 27062587392 bytes was trimmed
> fstrim -v /home =A00,00s user 0,92s system 20% cpu 4,512 total
>
> First one is BTRFS, second one is Ext4 - and will be, until I am conv=
inced
> 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?

>
> --
> Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
> GPG: 03B0 0D6C 0040 0710 4AFA =A0B82F 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 =A0http://vger.kernel.org/majordomo-info.html
>



--=20
Caution: breathing may be hazardous to your health.
--
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

  reply	other threads:[~2011-07-04 16:32 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 [this message]
2011-07-04 19:51       ` Martin Steigerwald
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='CAAeznTp0i4RCF61p-4SbFfipkHt9dzuAN=ec1ZrtEzD9Vxgx1g@mail.gmail.com' \
    --to=artafinde@gmail.com \
    --cc=Martin@lichtvoll.de \
    --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 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.