Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2799341pxk; Sun, 27 Sep 2020 23:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0p8ww25AGgAbIu7i/JqDLpJ0ttoOC3Gk0ZZfq7rMmZNc6JQVTX5THrigteMgNGieuld+Q X-Received: by 2002:a17:907:432b:: with SMTP id ob19mr200396ejb.400.1601274311170; Sun, 27 Sep 2020 23:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601274311; cv=none; d=google.com; s=arc-20160816; b=cU5fufmqNPSm+9V+M8ffA5aL1TCWWj6MOu7IqWiadgs/KrYp+er0d1ESGcCYlseNcB b6c/dxQcYQtwNr0zv/D5ihXxmNXqk0lS6WTT47QtFEtAFYmn8aykNwbm8fNhLhmUB/Ga OXtuj2kuNtSKx+3Cd11C+v9czmu99sSeP3TAd927d8G19GyP1zKzOrKiEX30L4H3Mqkn 0Kmo0bz6c7vGQi02QuaxXkBkeCmO/i6HrBZI12cOQjYHn2qi6UEpQ2aTQuda5IS1XlsA mmgWm/GINPbilefZgCxhie4/99PqgIlVB9flq+BCv9EJ74EOEzyM3tba24TakfD3CAzA 18Ug== 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=xpbKVhLSxw0/se8FSNctw/50sw3ExFpYGyP6H7FZ+TpXyLX2FNq1tlyvvnVOivThQa 1KvL6lH3tq0xqx4Rw0VKkZkcUOx8go76DfJcrfakL1GC/IFU7rCHIhX/95rkCPHtNagx sIaV6LqktkuH9W6o7rEUk1zwP85tq4LNMztptfn+q8Aa3dx+KLrnn7ka8Gvnx3n/PvBt 6Tx1zyG8hdgj1ytJyl21Fdb3do8xk6TjQEhXMm8A5m/3YBFcuboMB8n7B+oHK3meuKs2 fiOMAyNkJ7fxa/3VWv9IERbSe565jab847AWhgog+9/+JbjlPtr+w75K89+SRkJ0neee 2GIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=iOZrGpE1; 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 bh20si29971ejb.294.2020.09.27.23.24.48; Sun, 27 Sep 2020 23:25:11 -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=iOZrGpE1; 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 S1726739AbgI1GWZ (ORCPT + 99 others); Mon, 28 Sep 2020 02:22:25 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:4311 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgI1GWD (ORCPT ); Mon, 28 Sep 2020 02:22:03 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 27 Sep 2020 23:20:23 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 28 Sep 2020 06:22:03 +0000 Received: from sandstorm.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Mon, 28 Sep 2020 06:22:02 +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 7/8] selftests/vm: run_vmtest.sh: update and clean up gup_test invocation Date: Sun, 27 Sep 2020 23:21:58 -0700 Message-ID: <20200928062159.923212-8-jhubbard@nvidia.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200928062159.923212-1-jhubbard@nvidia.com> References: <20200928062159.923212-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=1601274024; 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=iOZrGpE1V2vx/x1jHPAChPfkhgqmXz/fXJl5Q1lP6yZ7zDrdUv0fG/qVzSBG0oA+2 wBIw8kgoW4xBNmDZUTifk2W+NueIbu1XJ7AIDZvwRlJsMO487kk9J6abBqSdzyyWrK WCwUlLwIUWu4Bv2gOI6ChgxrrnGFMFB7qN4671uNwyG9pOrvUXBN+NW55I57vgyu5d 6xofNDV2xF5FjOpTBFisM22oYhtrxFDqqsapErM9VOHmymO0qBxOJ6Md2Pqt0Uo2Wb SpMPtW54tXRoOLKtg5B2fHgGRU8fwzC55VhUF5fEIxkHQMulsG480LkvyAmwfAFqoW njSkjDJ+eQJDw== 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