From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30F55C4727F for ; Mon, 28 Sep 2020 19:26:24 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9397A2080C for ; Mon, 28 Sep 2020 19:26:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9397A2080C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E528E8E0001; Mon, 28 Sep 2020 15:26:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E28AB6B0070; Mon, 28 Sep 2020 15:26:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D65B08E0001; Mon, 28 Sep 2020 15:26:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0236.hostedemail.com [216.40.44.236]) by kanga.kvack.org (Postfix) with ESMTP id BF5916B006E for ; Mon, 28 Sep 2020 15:26:22 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 7FD31181AE869 for ; Mon, 28 Sep 2020 19:26:22 +0000 (UTC) X-FDA: 77313451404.16.color65_2b1217727184 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 24E7A10033C20 for ; Mon, 28 Sep 2020 19:26:22 +0000 (UTC) X-HE-Tag: color65_2b1217727184 X-Filterd-Recvd-Size: 4133 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf42.hostedemail.com (Postfix) with ESMTP for ; Mon, 28 Sep 2020 19:26:21 +0000 (UTC) IronPort-SDR: 9aZkKizp5vx394++38TzTLH6fQC50gEY0UGQR/ilFch2QVhZh2Kp3zcAwkvkOVBHV5GHtwjUVU i14dAMyEljuw== X-IronPort-AV: E=McAfee;i="6000,8403,9758"; a="246790815" X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="246790815" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 12:26:19 -0700 IronPort-SDR: TzX6TFCO5L2u0GF5oYraSXfcLVFcpO2leA/f1u4+7rdsT6EVUjArJr5XKfm3TVjvL0vzo2UVHi in4R+0hBM8CA== X-IronPort-AV: E=Sophos;i="5.77,315,1596524400"; d="scan'208";a="456961657" Received: from iweiny-desk2.sc.intel.com (HELO localhost) ([10.3.52.147]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2020 12:26:19 -0700 Date: Mon, 28 Sep 2020 12:26:19 -0700 From: Ira Weiny To: John Hubbard Cc: Andrew Morton , Jonathan Corbet , =?iso-8859-1?B?Suly9G1l?= Glisse , Ralph Campbell , Shuah Khan , LKML , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH 7/8] selftests/vm: run_vmtest.sh: update and clean up gup_test invocation Message-ID: <20200928192619.GF458519@iweiny-DESK2.sc.intel.com> References: <20200928062159.923212-1-jhubbard@nvidia.com> <20200928062159.923212-8-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200928062159.923212-8-jhubbard@nvidia.com> User-Agent: Mutt/1.11.1 (2018-12-01) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Sep 27, 2020 at 11:21:58PM -0700, John Hubbard wrote: > Run benchmarks on the _fast variants of gup and pup, as originally > intended. > > Run the new gup_test sub-test: dump pages. In addition to exercising the > dump_page() call, it also demonstrates the various options you can use > to specify which pages to dump, and how. > > Signed-off-by: John Hubbard > --- > tools/testing/selftests/vm/run_vmtest.sh | 24 ++++++++++++++++++------ > 1 file changed, 18 insertions(+), 6 deletions(-) > > diff --git a/tools/testing/selftests/vm/run_vmtest.sh b/tools/testing/selftests/vm/run_vmtest.sh > index d1843d5f3c30..e3a8b14d9df6 100755 > --- a/tools/testing/selftests/vm/run_vmtest.sh > +++ b/tools/testing/selftests/vm/run_vmtest.sh > @@ -124,9 +124,9 @@ else > fi > > echo "--------------------------------------------" > -echo "running 'gup_test -U' (normal/slow gup)" > +echo "running 'gup_test -u' (fast gup benchmark)" > echo "--------------------------------------------" > -./gup_test -U > +./gup_test -u > if [ $? -ne 0 ]; then > echo "[FAIL]" > exitcode=1 > @@ -134,10 +134,22 @@ else > echo "[PASS]" > fi > > -echo "------------------------------------------" > -echo "running gup_test -b (pin_user_pages)" > -echo "------------------------------------------" > -./gup_test -b > +echo "---------------------------------------------------" > +echo "running gup_test -a (pin_user_pages_fast benchmark)" > +echo "---------------------------------------------------" > +./gup_test -a > +if [ $? -ne 0 ]; then > + echo "[FAIL]" > + exitcode=1 > +else > + echo "[PASS]" > +fi > + > +echo "--------------------------------------------------------------" > +echo "running gup_test -ct -F 0x1 0 19 0x1000" > +echo " Dumps pages 0, 19, and 4096, using pin_user_pages (-F 0x1)" > +echo "--------------------------------------------------------------" > +./gup_test -ct -F 0x1 0 19 0x1000 Ah here it is... Maybe just remove that from the previous commit message. Ira > if [ $? -ne 0 ]; then > echo "[FAIL]" > exitcode=1 > -- > 2.28.0 > >