[Top] [All Lists]

Re: mount options question

To: Dave Chinner <david@xxxxxxxxxxxxx>,Stefan Ring <stefanrin@xxxxxxxxx>
Subject: Re: mount options question
From: Greg Freemyer <greg.freemyer@xxxxxxxxx>
Date: Fri, 29 Aug 2014 07:26:59 -0400
Cc: Xfs <xfs@xxxxxxxxxxx>,weber@xxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to:cc :message-id; bh=ECpCMf8S2hiuCO+hLw6n9QCpUwSjkwxqlC1+5fQXiu0=; b=TezQ0E0CA8Eq23zCl0MpdSR66SeUY6C2jPkuPaUjZXapA+1kFcfTIoAR3gLKYsYukA P3r10CncVxKNKMUG85vfgCASwOhzhFf7wJn+6BTrJlCar0X7qrfReP4VVT/sihkDibOW e3ihAipK5XDCdRofuSh2MNXaDpLk9PoTtC47Mrsimuj0UlRvlfKuOPdk3A48Hth0rN7j qsSB2SOYJzwRTkfmXH+TFCXkPHVHC14WIJBTXMlBQmNRpdQdbKekkroV2ZbBNu9+mb0o pnTwOOcqGP/+OaWh9tkB9tj4rYGgoArTMGxl/dr3XxnjHRF/owSqRvJQ58Oh15tzJLsQ pvlw==
In-reply-to: <20140829083738.GD20518@dastard>
References: <3dc9caf6f9b415f6e4c0ebac1f1626d3@xxxxxxxxxx> <20140827230732.GN20518@dastard> <CAAxjCEy9UyjDVrTZ4GdRyDy330wUqLGWurzrLAE6-7Q0KdYzvA@xxxxxxxxxxxxxx> <20140829083738.GD20518@dastard>
User-agent: K-9 Mail for Android

On August 29, 2014 4:37:38 AM EDT, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
>On Fri, Aug 29, 2014 at 08:31:43AM +0200, Stefan Ring wrote:
>> On Thu, Aug 28, 2014 at 1:07 AM, Dave Chinner <david@xxxxxxxxxxxxx>
>> > On Wed, Aug 27, 2014 at 12:14:21PM +0200, Marko Weber|8000 wrote:
>> >>
>> >> sorry dave and all other,
>> >>
>> >> can you guys recommend me the most stable / best mount options for
>> >> my new server with ssdÂs and XFS filesystem?
>> >>
>> >> at moment i would set: 
>> >> or is just "default" the best solution and xfs detect itself whats
>> >>
>> >> can you guide me a bit?
>> >>
>> >> as eleavtor i set elevator=noop
>> >>
>> >> i setup disks with linux softraid raid1. On top of the raid is LVM
>> >> (for some data partations).
>> >>
>> >>
>> >> would be nice to hear some tipps from you
>> >
>> > Unless you have specific requirements or have the knowledge to
>> > understand how the different options affect behaviour, then just
>> > the defaults.
>> Mostly agreed, but using "discard" would be a no-brainer for me. I
>> suppose XFS does not automatically switch it on for non-rotational
>> storage.
>Yup, you're not using your brain. :P
>mount -o discard *sucks* on so many levels it is not funny. I don't
>recommend that anybody *ever* use it, on XFS, ext4 or btrfs.  Just
>use fstrim if you ever need to clean up a SSD.

In particular trim is a synchronous command in many SSDs, I don't know about 
the impact on the kernel block stack. For the SSD itself that means the SSDs 
basically flush their write cache on every trim call.

I often tell people to do performance testing with and without it and report 
back to me if they see no degradation caused by -o discard.  To date no one has 
ever reported back.  I think -o discard should have never been introduced and 
certainly not 5 years ago.  In theory, SSDs that handle trim as a asynchronous 
command are now available, but I don't know any specifics.

In any case, fstrim works for almost all workloads and doesn't have the 
potential continuous negative impact of -o discard.

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

<Prev in Thread] Current Thread [Next in Thread>