From patchwork Sat May 21 08:38:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: patrick wang X-Patchwork-Id: 12857745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2EC4C433EF for ; Sat, 21 May 2022 08:38:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 088366B0073; Sat, 21 May 2022 04:38:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 036946B0074; Sat, 21 May 2022 04:38:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E413D6B0075; Sat, 21 May 2022 04:38:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D537F6B0073 for ; Sat, 21 May 2022 04:38:50 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id B3575696 for ; Sat, 21 May 2022 08:38:50 +0000 (UTC) X-FDA: 79489099620.11.72BF130 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by imf16.hostedemail.com (Postfix) with ESMTP id AF8C218001C for ; Sat, 21 May 2022 08:38:37 +0000 (UTC) Received: by mail-pj1-f50.google.com with SMTP id ev18so9853512pjb.4 for ; Sat, 21 May 2022 01:38:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JifwYnD6JO0kOV61Ln5I93dJxrKHSoYK3bTtvWqPo9s=; b=IfwIadc/gfqz1l+D/XvQVz8sUI7LNyNig02LUX7Nx3A5oAwQEGtseWjwXl8Lz1UMom DTSx8BK/FYzL8VGeFiFiJp/YiaZNGzpBy6lReK2S1DachCgSJzGAw1hwdGWWUGpzK8gX gs2FaVMwoY2TjWX2YHomgmB4VSXIQ2b4SzbtumQcnPciIz6JA0pFaMpmC86Fefus8faX hJz0NTz7bIKCh4J6W78D2WGm4v4udFFEcuvGer39liOUHFAzIbmA2gWPiEOCiiAxVZ/Z wW9RrNse4ZjNDu91f9YmBg5Fb3uyXhFTDCD7kAdV85aaN2a2R+ektUEQbV91ekKCkYUy +8Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JifwYnD6JO0kOV61Ln5I93dJxrKHSoYK3bTtvWqPo9s=; b=3COWF2pfeEFWzlnDzybGT1NKv0CzjVtcuDH81qd7lipUSZKozZrAQDDiRBxI4M67pF s0AXu5KVc2WW1TEDuR2TwVKex/OeVeDvshLqxu/fzuKS1kAj14gWbdR7ptv7hmC25eC1 KtNAwhQt5LR3UIqX05X9VPY57y/fk8ApEJsbbb3UX7E9j7OqCdjeAPwij1n7r5d+ckt8 uGQwpqS13T8MwO2XC4vfpwwtve9pLH4dts7JVWd5DoU6BLpEn7CjfjM0iFi7gh55m6Oz 9TZ6YTDOiksKfdi9C37vO4oMXCsiUJwN27tPDUhiEu1RUEcSvP3CwYL5eu+txTFvwQwv d71w== X-Gm-Message-State: AOAM530eA2peUDB7XJ//Ev0jLr3mbZjGO/0OIaKrvbR5ukwPNkckzu1j GQzruSF5JJ65OnoixWJ2QsU= X-Google-Smtp-Source: ABdhPJyHSwmxq/BUcPtiGeaOIa9ApUD2tKNORjgg1PkOAZaXH5D5ZoCezl2qk2NGuxpmDgjR8LruuQ== X-Received: by 2002:a17:90a:4615:b0:1df:40e6:6474 with SMTP id w21-20020a17090a461500b001df40e66474mr15500678pjg.194.1653122329370; Sat, 21 May 2022 01:38:49 -0700 (PDT) Received: from localhost ([101.86.206.159]) by smtp.gmail.com with ESMTPSA id f7-20020a6547c7000000b003db8691008esm1022381pgs.12.2022.05.21.01.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 01:38:49 -0700 (PDT) From: Patrick Wang To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, patrick.wang.shcn@gmail.com Subject: [PATCH 1/3] selftests: vm: check numa_available() before operating "merge_across_nodes" in ksm_tests Date: Sat, 21 May 2022 16:38:23 +0800 Message-Id: <20220521083825.319654-2-patrick.wang.shcn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220521083825.319654-1-patrick.wang.shcn@gmail.com> References: <20220521083825.319654-1-patrick.wang.shcn@gmail.com> MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: AF8C218001C X-Stat-Signature: 1kg1gtim6ebbn569w7u9wp5epsqhdapc Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="IfwIadc/"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf16.hostedemail.com: domain of patrick.wang.shcn@gmail.com designates 209.85.216.50 as permitted sender) smtp.mailfrom=patrick.wang.shcn@gmail.com X-Rspam-User: X-HE-Tag: 1653122317-474907 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: Currently, ksm_tests operates "merge_across_nodes" with NUMA either enabled or disabled. In a system with NUMA disabled, these operations will fail and output a misleading report given "merge_across_nodes" does not exist in sysfs: ---------------------------- running ./ksm_tests -M -p 10 ---------------------------- f /sys/kernel/mm/ksm/merge_across_nodes fopen: No such file or directory Cannot save default tunables [FAIL] ---------------------- So check numa_available() before those operations to skip them if NUMA is disabled. Signed-off-by: Patrick Wang --- tools/testing/selftests/vm/ksm_tests.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/vm/ksm_tests.c b/tools/testing/selftests/vm/ksm_tests.c index fd85f15869d1..2fcf24312da8 100644 --- a/tools/testing/selftests/vm/ksm_tests.c +++ b/tools/testing/selftests/vm/ksm_tests.c @@ -221,7 +221,8 @@ static bool assert_ksm_pages_count(long dupl_page_count) static int ksm_save_def(struct ksm_sysfs *ksm_sysfs) { if (ksm_read_sysfs(KSM_FP("max_page_sharing"), &ksm_sysfs->max_page_sharing) || - ksm_read_sysfs(KSM_FP("merge_across_nodes"), &ksm_sysfs->merge_across_nodes) || + numa_available() ? 0 : + ksm_read_sysfs(KSM_FP("merge_across_nodes"), &ksm_sysfs->merge_across_nodes) || ksm_read_sysfs(KSM_FP("sleep_millisecs"), &ksm_sysfs->sleep_millisecs) || ksm_read_sysfs(KSM_FP("pages_to_scan"), &ksm_sysfs->pages_to_scan) || ksm_read_sysfs(KSM_FP("run"), &ksm_sysfs->run) || @@ -236,7 +237,8 @@ static int ksm_save_def(struct ksm_sysfs *ksm_sysfs) static int ksm_restore(struct ksm_sysfs *ksm_sysfs) { if (ksm_write_sysfs(KSM_FP("max_page_sharing"), ksm_sysfs->max_page_sharing) || - ksm_write_sysfs(KSM_FP("merge_across_nodes"), ksm_sysfs->merge_across_nodes) || + numa_available() ? 0 : + ksm_write_sysfs(KSM_FP("merge_across_nodes"), ksm_sysfs->merge_across_nodes) || ksm_write_sysfs(KSM_FP("pages_to_scan"), ksm_sysfs->pages_to_scan) || ksm_write_sysfs(KSM_FP("run"), ksm_sysfs->run) || ksm_write_sysfs(KSM_FP("sleep_millisecs"), ksm_sysfs->sleep_millisecs) || @@ -720,7 +722,8 @@ int main(int argc, char *argv[]) if (ksm_write_sysfs(KSM_FP("run"), 2) || ksm_write_sysfs(KSM_FP("sleep_millisecs"), 0) || - ksm_write_sysfs(KSM_FP("merge_across_nodes"), 1) || + numa_available() ? 0 : + ksm_write_sysfs(KSM_FP("merge_across_nodes"), 1) || ksm_write_sysfs(KSM_FP("pages_to_scan"), page_count)) return KSFT_FAIL; From patchwork Sat May 21 08:38:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: patrick wang X-Patchwork-Id: 12857746 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A482C433EF for ; Sat, 21 May 2022 08:38:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DCCBD6B0074; Sat, 21 May 2022 04:38:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D7D956B0075; Sat, 21 May 2022 04:38:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C455E6B0078; Sat, 21 May 2022 04:38:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B60A46B0074 for ; Sat, 21 May 2022 04:38:55 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 8BA5E335E4 for ; Sat, 21 May 2022 08:38:55 +0000 (UTC) X-FDA: 79489099830.05.24A83E2 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by imf03.hostedemail.com (Postfix) with ESMTP id 0EFD0200D4 for ; Sat, 21 May 2022 08:38:43 +0000 (UTC) Received: by mail-pg1-f177.google.com with SMTP id x12so9560965pgj.7 for ; Sat, 21 May 2022 01:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7HhP/+Tz7HqPlFeIBm2iprd3q70O4euGT7YcNpr3mWc=; b=hXMeES/xeQKEcJ1ukUWTmAZjW/Yn5h3NdUtnltYTBkiZXKmfFWoC7gAoDy7oVdncMR 29DRdkRNIyU6VWLVP73s28B20gf+P9k2yMe85iZQAQUN223ezp5fz7STGxtQK8zRkJAU 2Dwh2JxeLvAWvUbsOccpTvzHws4oEpsgq87hp++uPDpMNod496bkgX9pWTA/J5TiXZG0 O+BZ1aGqXKhMVhK3lyi4/WTziqlmuC5aqMTju2tEc4x+gQWDOGWEGMm0GnWUHpCv8qOP 6/wQfZ6BPfBJLuA6qTBn1ZtqCwz8vkrZLLZYVU5ewIUP/1CZT6hZl+LsRaVMEJhATP9a wpag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7HhP/+Tz7HqPlFeIBm2iprd3q70O4euGT7YcNpr3mWc=; b=0OjGOhN8yrQRENAWIemz0vOegNjyle67gEPz79WklYboPwsAEfxxn1NimUhfKuRF5Z YLPHXIn1FqlYsIAb9kqjx/a5WeYjsC0MiRi6QtC0AgG7Z5fLi13Zc9h8bwOqMuIleBtP osfM5MKuwCKDaupzWkVKh92RVIbIhtkIU41A+1S485lt2SAg93HigTqBvYNpzoWwzpbO inuCaUVdxl4EOY2V+ASXkiU2yr5D3PBYjkAwB3lvspmo1rx09LkqNUTgh/vvz8laVBtv kOdO7avH8YXhZY2ma82EnD0rcm2bqrsSPP0v0LiYyU8DNGYREzSRt1FPCWHuYwbT5+9L ygTA== X-Gm-Message-State: AOAM530vsDTF19xk0bfjuUaIiWyhfjSkZvR73dpCeACtKT3M0WAIQjRt fVpE/gBf0vdjp9uJFv/VQzQ= X-Google-Smtp-Source: ABdhPJxmNzwbbOgrYwN/RywNuxBQ+XVH+IqftKjcwTFeAmYDx0XD7ictM0eR1P3h//ybjX72vvr7oQ== X-Received: by 2002:a65:6a15:0:b0:3f6:13ea:1cfb with SMTP id m21-20020a656a15000000b003f613ea1cfbmr12070450pgu.495.1653122334280; Sat, 21 May 2022 01:38:54 -0700 (PDT) Received: from localhost ([101.86.206.159]) by smtp.gmail.com with ESMTPSA id e5-20020a17090ada0500b001d81a30c437sm3104182pjv.50.2022.05.21.01.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 01:38:53 -0700 (PDT) From: Patrick Wang To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, patrick.wang.shcn@gmail.com Subject: [PATCH 2/3] selftests: vm: add "test_hmm.sh" to TEST_FILES Date: Sat, 21 May 2022 16:38:24 +0800 Message-Id: <20220521083825.319654-3-patrick.wang.shcn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220521083825.319654-1-patrick.wang.shcn@gmail.com> References: <20220521083825.319654-1-patrick.wang.shcn@gmail.com> MIME-Version: 1.0 Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="hXMeES/x"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of patrick.wang.shcn@gmail.com designates 209.85.215.177 as permitted sender) smtp.mailfrom=patrick.wang.shcn@gmail.com X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 0EFD0200D4 X-Stat-Signature: 3uwtkqu65n3ad74m97wn13uz6uputin6 X-HE-Tag: 1653122323-391748 X-Bogosity: Ham, tests=bogofilter, spamicity=0.006391, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The "test_hmm.sh" file used by run_vmtests.sh dose not be installed into INSTALL_PATH. Thus run_vmtests.sh can not call it in INSTALL_PATH: --------------------------- running ./test_hmm.sh smoke --------------------------- ./run_vmtests.sh: line 74: ./test_hmm.sh: No such file or directory [FAIL] ----------------------- Add "test_hmm.sh" to TEST_FILES so that it will be installed. Signed-off-by: Patrick Wang --- tools/testing/selftests/vm/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile index 12897927311e..44f25acfbeca 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -92,6 +92,7 @@ endif TEST_PROGS := run_vmtests.sh TEST_FILES := test_vmalloc.sh +TEST_FILES += test_hmm.sh KSFT_KHDR_INSTALL := 1 include ../lib.mk From patchwork Sat May 21 08:38:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: patrick wang X-Patchwork-Id: 12857747 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5632C433F5 for ; Sat, 21 May 2022 08:39:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4A61B6B0075; Sat, 21 May 2022 04:39:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 455846B0078; Sat, 21 May 2022 04:39:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31DBA6B007B; Sat, 21 May 2022 04:39:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2493D6B0075 for ; Sat, 21 May 2022 04:39:02 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id ED3AB32691 for ; Sat, 21 May 2022 08:39:01 +0000 (UTC) X-FDA: 79489100082.02.DB4BE39 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by imf04.hostedemail.com (Postfix) with ESMTP id 4B9AF40019 for ; Sat, 21 May 2022 08:38:47 +0000 (UTC) Received: by mail-pj1-f54.google.com with SMTP id l20-20020a17090a409400b001dd2a9d555bso9625336pjg.0 for ; Sat, 21 May 2022 01:39:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tKgtsXuVOi1QNn+QUr5+/f8fxa0uMqPOrJbyR3xVqo0=; b=PcvLX+AA42K/25xPIdhOA63RFpR1f19sOBPb+tpMTk/vYfdDylBmA3zvj1V8AfdyJM yH2L6Ycg8fzsqKZYGZy3W1WmmJyUvjUreM2B7YgteISXqtRn33ZkiYs7IAogmCJsZX68 vKn3m2gVPb81kEZi54ovkwYjYA1Dqfoy4GIOi8hlBGkcjvrsp7/djrqCsTMRmeXRV8ib k7DEreDnAjqZiZgG+sgYXs3Z/cbW+JA+85GdcAIIwpbCGbnPg7yE5tG336p8tBl2/4/T AP3S6juCJNIPRar4Ag5g7t1kKZUKUEciK8Lq6ffCOz0WzQm9ErbrYVdjrF2FnKLwhzMv YY+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tKgtsXuVOi1QNn+QUr5+/f8fxa0uMqPOrJbyR3xVqo0=; b=laiFblSeiAXVUnH7MeqnYfDR5TwnkDZ2ywYVTbr/eXQ3FQh6+oyfzwbKaVJiZ2FNaW 5VgpwOFNzmLPhNW86QevRmRNU6MJO+RaJrBs7GvLoY9fIwn7L1SHGqRooEfXJPjDIXJw GVHdbCG0HEtmQLGrWrUb81jO6sBXuvVcfqrlebBADkkpIu7lstw7Ma93BmUU7b3jVEch u3ZqyGQ11+Jws87b5PCJMeGwfEeJnLsazGUtChGVMuR6nlXN++tzly9rsyGnqRNVDmc4 SVW9ghzuNw1yuCRQb1HBs4QH0ux9KWTv2aOipDLAKaPnCwXMMw12iJ+1X5zpjL1Cmiw8 5bVg== X-Gm-Message-State: AOAM532N+rwhG5HhOQHVwRzGydNcFb1dKBCbqPFIt1YA79EuXPKJwo0n WqDQhOx0jlJRHWgwrg15Oyg= X-Google-Smtp-Source: ABdhPJzW5Zypglg3GnAusYqT8bGachbUQvrGnVuNFpQOSI9vw8LS83RB6jAV5DSZjw2EJNt+HsBD2Q== X-Received: by 2002:a17:90a:ec01:b0:1df:56aa:6b7b with SMTP id l1-20020a17090aec0100b001df56aa6b7bmr15213129pjy.230.1653122340763; Sat, 21 May 2022 01:39:00 -0700 (PDT) Received: from localhost ([101.86.206.159]) by smtp.gmail.com with ESMTPSA id j13-20020a170902da8d00b0015e8d4eb260sm1031755plx.170.2022.05.21.01.38.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 01:39:00 -0700 (PDT) From: Patrick Wang To: akpm@linux-foundation.org, shuah@kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, patrick.wang.shcn@gmail.com Subject: [PATCH 3/3] selftests: vm: add the "settings" file with timeout variable Date: Sat, 21 May 2022 16:38:25 +0800 Message-Id: <20220521083825.319654-4-patrick.wang.shcn@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220521083825.319654-1-patrick.wang.shcn@gmail.com> References: <20220521083825.319654-1-patrick.wang.shcn@gmail.com> MIME-Version: 1.0 X-Rspamd-Server: rspam11 X-Rspamd-Queue-Id: 4B9AF40019 X-Stat-Signature: k1m59q5h4jdpc3ekbojmo9p6oejcg5zm X-Rspam-User: Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PcvLX+AA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf04.hostedemail.com: domain of patrick.wang.shcn@gmail.com designates 209.85.216.54 as permitted sender) smtp.mailfrom=patrick.wang.shcn@gmail.com X-HE-Tag: 1653122327-50246 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000827, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The default "timeout" for one kselftest is 45 seconds, while some cases in run_vmtests.sh require more time. This will cause testing timeout like: not ok 4 selftests: vm: run_vmtests.sh # TIMEOUT 45 seconds Therefore, add the "settings" file with timeout variable so users can set the "timeout" value. Signed-off-by: Patrick Wang --- tools/testing/selftests/vm/settings | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/testing/selftests/vm/settings diff --git a/tools/testing/selftests/vm/settings b/tools/testing/selftests/vm/settings new file mode 100644 index 000000000000..9abfc60e9e6f --- /dev/null +++ b/tools/testing/selftests/vm/settings @@ -0,0 +1 @@ +timeout=45