From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:33896 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752358AbdIVRbh (ORCPT ); Fri, 22 Sep 2017 13:31:37 -0400 Date: Fri, 22 Sep 2017 19:31:45 +0200 From: Greg KH To: Eduardo Valentin Cc: stable@vger.kernel.org, shli@fb.com, neilb@suse.com, colyli@suse.de Subject: Re: [stable v4.9.y] Backports to fix fstrim time / CPU load on raid0 Message-ID: <20170922173145.GB6480@kroah.com> References: <20170922171606.GA22274@u40b0340c692b58f6553c.ant.amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170922171606.GA22274@u40b0340c692b58f6553c.ant.amazon.com> Sender: stable-owner@vger.kernel.org List-ID: On Fri, Sep 22, 2017 at 10:16:06AM -0700, Eduardo Valentin wrote: > Hello GregKH, > > I have been seeing several reports of performance issue with raid0 while performing fstrim on v4.9.y. > Currently, if one performs: > > # fio --name fio_test_file --direct=1 --rw=randwrite --bs=4k --size=5G --numjobs=8 --group_reporting --directory=/mount/raid0 > # rm -rf /media/nvme-raid0 > # time fstrim -vvv -a > real 3m41.102s > user 0m0.000s > sys 0m4.964s Also, is this a regression from older kernels? thanks, greg k-h