From patchwork Tue Oct 10 19:58:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 9997693 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 21A16601AE for ; Tue, 10 Oct 2017 20:47:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1351928778 for ; Tue, 10 Oct 2017 20:47:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 07ACA2877E; Tue, 10 Oct 2017 20:47:46 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 71D5928778 for ; Tue, 10 Oct 2017 20:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933465AbdJJUra (ORCPT ); Tue, 10 Oct 2017 16:47:30 -0400 Received: from mail-qt0-f177.google.com ([209.85.216.177]:51082 "EHLO mail-qt0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933567AbdJJT6f (ORCPT ); Tue, 10 Oct 2017 15:58:35 -0400 Received: by mail-qt0-f177.google.com with SMTP id f15so54939176qtf.7 for ; Tue, 10 Oct 2017 12:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z9AyegukDa+DzhdDEw6WhlD6VIQ9YQ3xvk3OawZauYk=; b=FsNBs5VPT8w0XN/SNaiapi+h+uc7Eg1iC6RVoWwu8DE446Kvfgo2NtoNo43IkvEUYb Fv3+rywdIeP15bnqF76IK8wgCbLxtB4MQpwPqUadHcKzat+WsPFlzDtIh9wIIC1wm9PE eImobjRdLWJxc/pa+vVWQJM5Kx3QdTNjxjDf/3z+rQH/il5q/7BFL5/9VMsoT6J9V16b d56T7baYYA+rU2S3lFLMz7IXa+RN/S39j7z6UFx04p8eVByFunaQ1J1y+Afc7j/Lk2IH VYnTS3N7sw9y8o2O83fky7A33/1jvUbqhsrAZvgbZovdsq4K6xAdaVIsoqghaMW4kOCL QCNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z9AyegukDa+DzhdDEw6WhlD6VIQ9YQ3xvk3OawZauYk=; b=ane9aymqcXz5Czmo173GrC/70JmbpcXih/oRj27PdHIIxoAEoJ24agwHib8ZuY90Ge Xr3CHZQVT/L9WPm9YmDo2CYVRwfmXNJUGjJgmJG9t5SwnGWH9uT16ZpyJbNr5jfc7R5B 8Lq8ABFDOlzU7UxaO4jFEgoNZb7l+4YbCht46MsrqxlJHOLLV3jeQI2St18or9TJv47m suVa86sWFSgy1ZDxF6cUwLmmVpj3Csa0tXtenu967wu3VnDXBwUVQ/tDcWzvHFox98sn mtkj4n08bSL7tVvXPwLSjKbq2qfyv0trAWatdyIyOZptiU6AoDoa1tOTjKviaFi5XU8t A5qg== X-Gm-Message-State: AMCzsaUch7qxvBvcGa00u8ma+vWqP7spsIKQvd2QeXazzOV8ySVLcXnA wJBK+Qbg7a9ASO+RHiRjsuqjPxzAjIQ= X-Google-Smtp-Source: AOwi7QAcgU4VLYfdGFvjfSziL1xVGcAv7M5ntjljOYskOtt91wph6UNmLNYlX2NzGTgK9Kg0tQNv5A== X-Received: by 10.200.44.163 with SMTP id 32mr19733312qtw.243.1507665514902; Tue, 10 Oct 2017 12:58:34 -0700 (PDT) Received: from localhost ([2606:a000:4381:1201:225:22ff:feb3:e51a]) by smtp.gmail.com with ESMTPSA id o26sm3785294qto.16.2017.10.10.12.58.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Oct 2017 12:58:34 -0700 (PDT) From: Josef Bacik To: fstests@vger.kernel.org, tytso@mit.edu, david@fromorbit.com, darrick.wong@oracle.com Cc: Josef Bacik Subject: [PATCH 2/2][v2] perf/001: a random write buffered fio perf test Date: Tue, 10 Oct 2017 15:58:31 -0400 Message-Id: <1507665511-23515-2-git-send-email-josef@toxicpanda.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507665511-23515-1-git-send-email-josef@toxicpanda.com> References: <1507665511-23515-1-git-send-email-josef@toxicpanda.com> Sender: fstests-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: fstests@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Josef Bacik This uses the new fio results perf helpers to run a rand write buffered workload on the scratch device. Signed-off-by: Josef Bacik --- v1->v2: - updated to use the new _require_fio_results helper and moved the _fio_results_init call to after teh _require_fio check tests/perf/001 | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/perf/001.out | 2 ++ 2 files changed, 76 insertions(+) create mode 100644 tests/perf/001 create mode 100644 tests/perf/001.out diff --git a/tests/perf/001 b/tests/perf/001 new file mode 100644 index 000000000000..2382f8b7f023 --- /dev/null +++ b/tests/perf/001 @@ -0,0 +1,74 @@ +#! /bin/bash +# perf/001 Test +# +# Buffered random write performance test. +# +#----------------------------------------------------------------------- +# (c) 2017 Josef Bacik +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +#----------------------------------------------------------------------- +# + +seq=`basename $0` +seqres=$RESULT_DIR/$seq +echo "QA output created by $seq" + +here=`pwd` +tmp=/tmp/$$ +fio_config=$tmp.fio +fio_results=$tmp.json +status=1 # failure is the default! +trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 + +# get standard environment, filters and checks +. ./common/rc +. ./common/filter +. ./common/perf + +# real QA test starts here +_supported_fs generic +_supported_os Linux +_require_scratch +_require_block_device $SCRATCH_DEV +_require_fio_results + +rm -f $seqres.full + +_size=(16 * $LOAD_FACTOR) +cat >$fio_config <> $seqres.full 2>&1 +_scratch_mount + +cat $fio_config >> $seqres.full +run_check $FIO_PROG --output-format=json --output=$fio_results $fio_config + +_scratch_unmount +_fio_results_compare $seq $fio_results +echo "Silence is golden" +status=0; exit diff --git a/tests/perf/001.out b/tests/perf/001.out new file mode 100644 index 000000000000..88678b8ed5ad --- /dev/null +++ b/tests/perf/001.out @@ -0,0 +1,2 @@ +QA output created by 001 +Silence is golden