linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Lukáš Czerner" <lczerner@redhat.com>
To: norritt@t-online.de
Cc: linux-ext4@vger.kernel.org
Subject: Re: Ongoing data reorganization/defragmentation?
Date: Wed, 12 Sep 2012 14:15:17 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.00.1209121411410.2222@new-host-2> (raw)
In-Reply-To: <5050BA08.80709@bytefortress.de>

On Wed, 12 Sep 2012, norritt@t-online.de wrote:

> Date: Wed, 12 Sep 2012 18:36:24 +0200
> From: norritt@t-online.de
> To: linux-ext4@vger.kernel.org
> Subject: Ongoing data reorganization/defragmentation?
> 
> Ongoing data reorganization/defragmentation?
> 
> In my efforts to optimize an ext4 for usage on SSDs, I have found information
> on the web about ext4 I've not been able to verify.
> 
> From what I've found out it's a good idea to:
> - mount with noatime, discard (if drive supports trim)

The -o discard option might be tricky since some devices still
handles it quite badly and you can experience big performance drops
(http://people.redhat.com/lczerner/discard/ although it is somewhat
outdated already). But you might to try to see yourself if it does
not hurt your performance.

The other option would be to use batched discard with fstrim (see
fstrim from util-linux) and run it once per (day, week, month).

Thanks!
-Lukas


  parent reply	other threads:[~2012-09-12 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 16:36 Ongoing data reorganization/defragmentation? norritt
2012-09-12 17:35 ` Andreas Dilger
2012-09-13 12:20   ` norritt
2012-09-12 18:15 ` Lukáš Czerner [this message]
2012-09-13 12:54   ` norritt

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=alpine.LFD.2.00.1209121411410.2222@new-host-2 \
    --to=lczerner@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=norritt@t-online.de \
    /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).