Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp43140rdb; Thu, 25 Jan 2024 07:47:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdp3hRJ3yltmxnhuXErDnkk1SjotqzEiDOlInudZ3QF4SJ/UHM/cPRGqWU+6fQ4kHU2hbH X-Received: by 2002:a05:622a:81:b0:42a:726a:ed9f with SMTP id o1-20020a05622a008100b0042a726aed9fmr180672qtw.79.1706197628829; Thu, 25 Jan 2024 07:47:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706197628; cv=pass; d=google.com; s=arc-20160816; b=XF0VcoezI6Fud+rUtcv7NIV1xdpgLGfchEncs2fy39vS3NEe2CQD6BnsrmZS95qLz3 aOTzlbcmRGgb/pqCI873IiDSqchinOPsLye+H5ZBz7OVMqsjhX7XDiuAfMeB9cVHTNgt sRQE/pJqGg5ANRhUwtee39kvnNqGJrYNDsKYK1YIuhD94A8HDr/oldkLPYTLij8YcQRI OvD6W3UdFrv9js3HeurfhLg0u3lFE3Sdwe//a38Ulkxf8Pm4jcmpJZ+ed3JpCoIVYGKD yUzFzdyAwzAyIkL9wqA2/Cd/nHBUmNZrMCSTCMbBH6I4cpXnbXyqtb+clTFd8EVmPfab g44A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=emuVVSszTWlfgOWV12qrqW6Pnl7QOdVJtgIGaTfhzWw=; fh=GI+QUBHPqwETgj91+OjmAHfGmBmxeZg5KGm08En4mD4=; b=KmabIyVf0i92d0/wtTsV0M+Xg/D6wGduVwz2z9C3BPuTUlLyVvING/oANjaKRW+Pm6 Okv413De2sb2Sh8/Ge3u4VpyUX26BrAipBt/niS/Lj21aKA4D4bZB4Q93aln3ndGQrIo QRjaNlayiAVVVfkJfs3nZHk4yQ9RXcWYCrLqHwsVlXV1D8IlmAS/7N0LgbDCrlpIqlhG If1Pkuf6yVaBKwoR+vzyIX4T/wuF9UHnST8eGqBYxXy5BFmq7tkNLwBJQaKg26Bc/jbO 3zC8Ek7CML2EHXHHhvNpo/LD/hE8Nh41IQPsfvYFIX12U7Fp+KlyHqx4LOTXbDz+wljt 8zeA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=qpXjEHK2; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-38842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d17-20020ac85ad1000000b0042a3110a2b2si12655866qtd.344.2024.01.25.07.47.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 07:47:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=qpXjEHK2; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-38842-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38842-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9719C1C22B9D for ; Thu, 25 Jan 2024 15:47:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDA0C7318D; Thu, 25 Jan 2024 15:46:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="qpXjEHK2" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B8EA7316D; Thu, 25 Jan 2024 15:46:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706197619; cv=none; b=pz5Gkw3YTG2idcc9IevSevf6uaE5AIiyOO61A4IJYT4w2sDp9ey/gE16eLBNLdwSnBQR5sWknLaOCmViELUy0i2QlBzmbD8p6Yx8qYC8bt60M4s5Cgv+WvgTT2psb8waZCj3D6vJc32usPhNMusWsROmqUbamJAU/vh7XJWGpV0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706197619; c=relaxed/simple; bh=hXCl5ifi2xUqFFL/6Lz0q2a/DC39aj5N2wlFm3EAR4w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h6IODkETNPnJuYUdpfzm0UMtPbn/JH4ektUGPgCvDzOBLHa09eKiZwR/uYDc8sycYEiwNM8UYVTjwwP3oMpECxPQOpZFV71fivS01TeM+yKSBAauUm6kXdQXNHDMlBkUDDfcvZ74pCVVUk8J8EoSZLDs7/eRnl3mchh1Y3amy10= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=qpXjEHK2; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706197615; bh=hXCl5ifi2xUqFFL/6Lz0q2a/DC39aj5N2wlFm3EAR4w=; h=From:To:Cc:Subject:Date:From; b=qpXjEHK2NZ70YWG1YdHVRZctb+7U/gODCpmOts/SDEAcB2aiuJW5om0qO5r+hw3Bx AtCn2V5hij8gEAKP3THzUk1+Cu1RkMo/BE7ebWw23sFORV7ROwbRc80mpJzKIbjIhl kbly9umGaJxQtg7JaTAu6jvot9iYS5+JxGQTdBk9OGfL6YZOdtVJxEUqaNl1haDRgo EL1YtRQvSCxjuSxZKPUH1ad69ymspe938S1mfZTPaDS76QgeG+ZtJq9HyJhTaYdmsz u6L35Em+tDA2iOdW7t6mlhC6yT2jcLlN6eobEkrrD/1HKyWcsLMX8y6h3nA5SNMzUM ABQmp2bPIlV+w== Received: from localhost.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 3B4EA37820C2; Thu, 25 Jan 2024 15:46:53 +0000 (UTC) From: Muhammad Usama Anjum To: Andrew Morton , Shuah Khan Cc: Muhammad Usama Anjum , kernel@collabora.com, Ryan Roberts , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/5] selftests/mm: Improve run_vmtests.sh Date: Thu, 25 Jan 2024 20:46:03 +0500 Message-ID: <20240125154608.720072-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In this series, I'm trying to add 3 missing tests to vm_runtests.sh which is used to run all the tests in mm suite. These tests weren't running by CIs. While enabling them and through review feedback, I've fixed some problems in tests as well. I've found more flakiness in more tests which I'll be fixing with future patches. hugetlb-read-hwpoison test is being added where it can only run with newly added "-d" (destructive) flag only. Not sure why it is failing again. So once it become stable, we can think of moving it to default set of tests if it doesn't have any side-effect to them. Cc: Ryan Roberts Cc: Andrew Morton --- Changes in v3: - Add cover letter - Fix flakiness in tests found during enablement - Move additional tests down in the file - Add "-d" option which poisons the pages and aren't being useable after the test v2: https://lore.kernel.org/all/20240123073615.920324-1-usama.anjum@collabora.com Muhammad Usama Anjum (5): selftests/mm: hugetlb_reparenting_test: do not unmount selftests/mm: run_vmtests: remove sudo and conform to tap selftests/mm: save and restore nr_hugepages value selftests/mm: protection_keys: save/restore nr_hugepages settings selftests/mm: run_vmtests.sh: add missing tests tools/testing/selftests/mm/Makefile | 5 +++ .../selftests/mm/charge_reserved_hugetlb.sh | 4 +++ .../selftests/mm/hugetlb_reparenting_test.sh | 9 +++-- tools/testing/selftests/mm/on-fault-limit.c | 36 +++++++++---------- tools/testing/selftests/mm/protection_keys.c | 34 ++++++++++++++++++ tools/testing/selftests/mm/run_vmtests.sh | 10 +++++- 6 files changed, 76 insertions(+), 22 deletions(-) -- 2.42.0