Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4100463pxk; Tue, 29 Sep 2020 14:30:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM/MSaDcsnDAswT4QvAxyvh9uvzSVOsQ0oHIu0c5cjBGLzsTIyFFxOGuVepRajJx6BPYbf X-Received: by 2002:aa7:c61a:: with SMTP id h26mr5357083edq.254.1601415036668; Tue, 29 Sep 2020 14:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601415036; cv=none; d=google.com; s=arc-20160816; b=KsFikzUPZJKjfpYiv4W3tgw8/TWnpLnDsAHUTdiYH+Sqjbw5FFQvvgz3B6X0YjJfID P5cO7zRRGNkWiJUxDwPN8eMeKbCVswldtBKLlm2Dh/LDmc7s3djLzRzeOJz/y12WlEHf 4hTbQkloPrXq8og0pS7ccl3TmYAjCsX+g9o9xiKw247dtbTfCTWnBIKx+cC8pPy+i4UN ZWTyyHboZOFdJIhE1bOZPjoAsDlauqkr52YLVioBbT0rjVuI9Z6l6KeC7bRp1UZZdnIL UDIpOrNH4rANvjnZleyXVrIpe9l4GLyT4Do3iubzc76iEZo9vW76srDHMLGSkskd1ZB5 VWEw== 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=EnpswkC06SgXdnmXzkGSyHyTa8dHGmVHmbkot3R5EyQ=; b=Sz2QMyGXjZ7//S0dI3tMH+w+BKHd3Ka9IdgjgA11xITfs5RRjgquQ4GKCDyKkJodwf WEzoM2BE349EPZ2QdiYOHDRBBLXNRnRDK7RCKVBN6QH/PBA3xVC6905dFHmzwN2VqEVG YBBWNaRqi9+T5b+qy6mCVUsbOKUF3dtnmxo62jh1F+vruWIWxdjyLN/muB7DWNL5jqLh LJiMFp2ThmU8Ir3RFyERcMPt1xdqf0lPgiieXKUCkQKbDlsuSZYVvvHC1v8ODnhKAQA3 Hpsg4u6N6LBoj5F1nD48/6c7SjGpeGHpNv47rvBvRPJdnwLJIO3cZenUxbtHR3bmOmSu sYwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="d2x/yEEN"; 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 u22si3379336edy.599.2020.09.29.14.30.13; Tue, 29 Sep 2020 14:30:36 -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="d2x/yEEN"; 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 S1729760AbgI2V2T (ORCPT + 99 others); Tue, 29 Sep 2020 17:28:19 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:9206 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729480AbgI2V1v (ORCPT ); Tue, 29 Sep 2020 17:27:51 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 29 Sep 2020 14:27:38 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 29 Sep 2020 21:27:50 +0000 Received: from sandstorm.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Tue, 29 Sep 2020 21:27:50 +0000 From: John Hubbard To: Andrew Morton CC: Jonathan Corbet , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Ralph Campbell , Shuah Khan , LKML , , , , , John Hubbard Subject: [PATCH v2 7/8] selftests/vm: run_vmtest.sh: update and clean up gup_test invocation Date: Tue, 29 Sep 2020 14:27:46 -0700 Message-ID: <20200929212747.251804-8-jhubbard@nvidia.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929212747.251804-1-jhubbard@nvidia.com> References: <20200929212747.251804-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601414858; bh=EnpswkC06SgXdnmXzkGSyHyTa8dHGmVHmbkot3R5EyQ=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=d2x/yEEN6ZWQm1O5jUde/Maw7aOdc0k/XR+E6ocF29cl1saYGwVkmMSfrEOyi97q/ 03qNmVjjSTgdT7zvZ14jPxL1zR2SRyIZcTT8B4lhO3a8+zb2AuYwlGumc5V7N2cLpj B6d2zrv+ngdnC1iRGimFC0H8cro1RZQFt8IQUlxF2scZwBgMnjeLhQ5CTAzlHDVyPW JL0MkPrwQiCkBcV1d/R6x08a9RhUopKi96FJ0O/50IoRDnbg0ZFIaegRc1IckZg5ux 1b5OjpSdjfq/gX7PJk5a0zuo9772P/CEPboXoGPiupVJ4sV4NyOmROk9XejjYQd/Lf vP3L5k9VUZBEA== 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 --- 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/selft= ests/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 =20 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=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 "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 if [ $? -ne 0 ]; then echo "[FAIL]" exitcode=3D1 --=20 2.28.0