[Top] [All Lists]

Re: [xfs-masters] how to use fstrim?

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [xfs-masters] how to use fstrim?
From: Greg Freemyer <greg.freemyer@xxxxxxxxx>
Date: Wed, 31 Jul 2013 09:26:35 -0400
Cc: Stefan Priebe <s.priebe@xxxxxxxxxxxx>, "xfs-masters@xxxxxxxxxxx" <xfs-masters@xxxxxxxxxxx>, "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ugepWp6wUOYu/ffa+K8t3daHXEQ6IbKVmahv0F9gZD0=; b=yxhh2SC5j5OG1d0Pn4798wB8Wx/OVNyvr3VAL9LEQ8Z1BtW/XHBuchlvdy0WWIB46W jTvWXXdsEvyBSCDQ2t1aAxvH94tG3V6fKmD65h7lRoGwZPv9G8BGhA/Rx2GI06WLSamO aSkz45LKEsnCGmtVbZrejwjdAIOFOqg/2Da0B6PfvkEuNcTKhGSojThNEWcXrwR56iVj 2qtHqFPgj6j242RUkXc3X8gWdCnmyQuMhvqxLUJZCgvg2Md2qsORbY0ZWl5nOUUWtXRM G9p6eCXPbtYKzYXgZnQ09NdBCEGLxOLz91WhukpTBM5MYf7uxfw3AH9R1xAc9xz/UanS Nnxg==
In-reply-to: <20130727015029.GT13468@dastard>
References: <51F2BD31.5060301@xxxxxxxxxxxx> <20130727015029.GT13468@dastard>
On Fri, Jul 26, 2013 at 9:50 PM, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> IOWs, the behaviour of fstrim on XFS is entirely dependent on the
> speed of the block layer and hardware implementations of discards.

And on a lot of SSDs, trim seems to act like a cache flush so it can
hit performance hard.  It should be scheduled for off-peak times
afaik.  It's not critical to run hourly or even daily.  If you can
schedule it once a week when other i/o is light that should be enough
for most workloads.

Greg Freemyer

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