From patchwork Mon Apr 15 01:22:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 10900053 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7CF7417E6 for ; Mon, 15 Apr 2019 01:22:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5835E287AB for ; Mon, 15 Apr 2019 01:22:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 487EA28867; Mon, 15 Apr 2019 01:22:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D68BB287AB for ; Mon, 15 Apr 2019 01:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726523AbfDOBWl (ORCPT ); Sun, 14 Apr 2019 21:22:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50484 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfDOBWl (ORCPT ); Sun, 14 Apr 2019 21:22:41 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0106530820DD; Mon, 15 Apr 2019 01:22:41 +0000 (UTC) Received: from localhost (ovpn-8-22.pek2.redhat.com [10.72.8.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id DE1645C1B4; Mon, 15 Apr 2019 01:22:37 +0000 (UTC) From: Ming Lei To: Omar Sandoval Cc: linux-block@vger.kernel.org, Ming Lei , Eric Sandeen , Dave Chinner , "Darrick J. Wong" , linux-xfs@vger.kernel.org Subject: [PATCH] nvme/012 & 013: avoid extremely slow xfs IO Date: Mon, 15 Apr 2019 09:22:29 +0800 Message-Id: <20190415012229.20689-1-ming.lei@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Mon, 15 Apr 2019 01:22:41 +0000 (UTC) Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It is observed that nvme/012 may take ~17 minutes to complete on aarch64, even worse it may trigger IO timeout on nvme-loop. Eric and Dave replied that it is because of too small log size on small disk. So pass '-l size=32m' to avoid the issue. With this patch, nvme/012 can be completed in one minute. Cc: Eric Sandeen Cc: Dave Chinner Cc: "Darrick J. Wong" Cc: linux-xfs@vger.kernel.org Signed-off-by: Ming Lei --- tests/nvme/012 | 2 +- tests/nvme/013 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nvme/012 b/tests/nvme/012 index 9a6801511df7..d7a8751ec752 100755 --- a/tests/nvme/012 +++ b/tests/nvme/012 @@ -46,7 +46,7 @@ test() { umount ${mount_dir} > /dev/null 2>&1 - mkfs.xfs -f /dev/"${nvmedev}n1" > /dev/null 2>&1 + mkfs.xfs -l size=32m -f /dev/"${nvmedev}n1" > /dev/null 2>&1 mount /dev/"${nvmedev}n1" "${mount_dir}" diff --git a/tests/nvme/013 b/tests/nvme/013 index e346cd4baa35..bc435f752dca 100755 --- a/tests/nvme/013 +++ b/tests/nvme/013 @@ -44,7 +44,7 @@ test() { umount ${mount_dir} > /dev/null 2>&1 - mkfs.xfs -f /dev/"${nvmedev}n1" > /dev/null 2>&1 + mkfs.xfs -l size=32m -f /dev/"${nvmedev}n1" > /dev/null 2>&1 mount /dev/"${nvmedev}n1" "${mount_dir}"