Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1003701pxu; Mon, 26 Oct 2020 01:14:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMUSOwPfW+YRSkgXJeavvhRktvcYoS1CDuuIEiHuUk4ruMWHn+WWXw6KIqIePFgEdx/vxY X-Received: by 2002:a17:906:e55:: with SMTP id q21mr14195505eji.338.1603700055725; Mon, 26 Oct 2020 01:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603700055; cv=none; d=google.com; s=arc-20160816; b=yo5SDrdA04criBPLXKLtIEBmOqN/cSqPE3zz/1SGfEyZki1td1foCjghwI2ouXNtCn Hw093GIT2vBeyxwm2PyN/uazHxLcJxKfks+YgD+zkwB5JJo9+KeRIe3gnfGbF6aJzsUI 5E9IaOxiZRofai704AFu0YCpohsxco/K8ZCy3k98C4rWi4PH72VLCZyQrByGCxOx7tiy L4Sdq28YPcsqJT8tC81rhnJ+sR10mHoz3WbRPOquTw22AyHTPbjoZFViLJVruNaGa/YL ns6V3bpOylagB+ZXrISIR2JHwRoDgTSrWZfKBmHVBIbYsfcXLmDO+iJ9bir8vzbxrMzq jkaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=kXhIomNPDXSJUAeDw7QMEoffInptLRlozO6MNqQpgtY=; b=FaBb1Cr9lAIBYHNvGnAD3M/4Dxo3wa7wT3qQAIZ4EJKVbUUinACi/BCJ7hpne7MXa/ VR+XpJY+bwJ8SNiA+MWVuXZb3ocvVfeE7NE6q7Xlf8QkHR5QQGi7m5HcL8d4plWijcuW dOgRuEy3OO/KbevToKSDmChXyF40AD3PjXjS1Z8zXRYklgDMlw1uVe6PkHxTBK8rVGzC RqEiQuIRRvrKk7nq/cobxhMOScVCjlFNuwecdygy1CiApy6rGBlVx8EInBM/CYsVdlyV ZsfvysT6dEMGUnuPGR18Fpa5nh45cDQyM7PzYrtZRAewrRHh/dKw1Wq2YyLJ8gTj9QAE pJIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="nQ/vYKgn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si6354312edx.29.2020.10.26.01.13.53; Mon, 26 Oct 2020 01:14:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="nQ/vYKgn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1770586AbgJZGlN (ORCPT + 99 others); Mon, 26 Oct 2020 02:41:13 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:11580 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1770543AbgJZGlC (ORCPT ); Mon, 26 Oct 2020 02:41:02 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 25 Oct 2020 23:41:09 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 26 Oct 2020 06:41:01 +0000 Received: from sandstorm.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Mon, 26 Oct 2020 06:41:01 +0000 From: John Hubbard To: Andrew Morton CC: Shuah Khan , Mike Rapoport , Ralph Campbell , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jonathan Corbet , LKML , , , John Hubbard Subject: [PATCH v3 7/9] selftests/vm: run_vmtests.sh: update and clean up gup_test invocation Date: Sun, 25 Oct 2020 23:40:19 -0700 Message-ID: <20201026064021.3545418-8-jhubbard@nvidia.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201026064021.3545418-1-jhubbard@nvidia.com> References: <20201026064021.3545418-1-jhubbard@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603694469; bh=kXhIomNPDXSJUAeDw7QMEoffInptLRlozO6MNqQpgtY=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type:X-NVConfidentiality: Content-Transfer-Encoding; b=nQ/vYKgns44XaoejV8YzR6nOeGow4IlDX6kRCsL2ezmIdjzrU11SSIovmPelmHRah veQovypKnBpgNbg2Vly9kj4sBYvwdkbNlcj/WOfu6JADkmKkS+dH8760c+c/jdlxf+ +qPoq77990uLl1APXVGwuCRuY0PpIDEoytYUK+vN5565I9+tAOBVFojT9M+pZyxDO3 msYnob0qCH8h3fZZt/1Va/JT30DdHULC5gexH/gS71Qjx5/H+Wo+p9oAkwwMt4aN7U AlL1Gldw2PKjRKdYP0LdRazq945xUJupTKytzKKaWTZwvMjfa8jkanXzNsoQ+66S/W PcBE9c/0GdWnw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: J=C3=A9r=C3=B4me Glisse Cc: Jonathan Corbet Cc: Ralph Campbell Cc: Shuah Khan --- tools/testing/selftests/vm/run_vmtests.sh | 28 ++++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/tools/testing/selftests/vm/run_vmtests.sh b/tools/testing/self= tests/vm/run_vmtests.sh index d1843d5f3c30..4ac84b350d9f 100755 --- a/tools/testing/selftests/vm/run_vmtests.sh +++ b/tools/testing/selftests/vm/run_vmtests.sh @@ -123,10 +123,10 @@ else echo "[PASS]" fi =20 -echo "--------------------------------------------" -echo "running 'gup_test -U' (normal/slow gup)" -echo "--------------------------------------------" -./gup_test -U +echo "------------------------------------------------------" +echo "running: gup_test -u # get_user_pages_fast() benchmark" +echo "------------------------------------------------------" +./gup_test -u if [ $? -ne 0 ]; then echo "[FAIL]" exitcode=3D1 @@ -134,10 +134,22 @@ else echo "[PASS]" fi =20 -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=3D1 +else + echo "[PASS]" +fi + +echo "------------------------------------------------------------" +echo "# Dump pages 0, 19, and 4096, using pin_user_pages:" +echo "running: gup_test -ct -F 0x1 0 19 0x1000 # dump_page() test" +echo "------------------------------------------------------------" +./gup_test -ct -F 0x1 0 19 0x1000 if [ $? -ne 0 ]; then echo "[FAIL]" exitcode=3D1 --=20 2.29.0