From patchwork Thu Jan 25 15:46:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 13531193 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 73694C47258 for ; Thu, 25 Jan 2024 15:47:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E65546B007D; Thu, 25 Jan 2024 10:46:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id E15C26B007E; Thu, 25 Jan 2024 10:46:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D04CE6B0080; Thu, 25 Jan 2024 10:46:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id BE9F66B007D for ; Thu, 25 Jan 2024 10:46:59 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 3B86B1C184B for ; Thu, 25 Jan 2024 15:46:59 +0000 (UTC) X-FDA: 81718261758.03.CBC72C3 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by imf24.hostedemail.com (Postfix) with ESMTP id 93D7218001F for ; Thu, 25 Jan 2024 15:46:57 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=qpXjEHK2; spf=pass (imf24.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706197617; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=emuVVSszTWlfgOWV12qrqW6Pnl7QOdVJtgIGaTfhzWw=; b=aTM4+QEWnv0uOY0+IA4LCHY4Do+tNqSXFXuTozgDs3NS7XUOLvGPKDzo7iZOlljENgUKJT RvkNcV9R4i1SJz1T1CG8KevMJ0hqcQEwGU2oceg7oVGLrwMTZ/0HuGB5pL1JP3J4Pg9qWh CadLBAXXXN7IVwQVUKfBrqmQatkMNy4= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706197617; a=rsa-sha256; cv=none; b=zyMbItD+VZ2UjbRC7fdLk604gP1LX3odpMhXxooBE8NZ1Ym8OTqB47u1MljCol6+HCSmQ0 z99E4u54Ztr7q+9Up6gV89T4jYbSywF789qekNrck9uAqLLDZAbPGCoq3Au9ayCIPBmt5u 0nI5oydSaQJv4t6gfin59LUqZM5vcEk= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=qpXjEHK2; spf=pass (imf24.hostedemail.com: domain of usama.anjum@collabora.com designates 46.235.227.194 as permitted sender) smtp.mailfrom=usama.anjum@collabora.com; dmarc=pass (policy=quarantine) header.from=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 MIME-Version: 1.0 X-Rspamd-Queue-Id: 93D7218001F X-Rspam-User: X-Stat-Signature: hret3xrzbeik54jadmkzat549jtsjjet X-Rspamd-Server: rspam03 X-HE-Tag: 1706197617-626278 X-HE-Meta: U2FsdGVkX19fZ8QA1nDKEDEayZfp6wZWtKlDqX0M5Q4HZKn9XV/hiZt7Pa0SGCJPl4eUkLu+Cc8KTR8bJVHHtPONRQ8k6UpAYNWiz6ZUGdIHdv/U+heBvnc4Sk1N2GnkLjeC4pPx3FvigUlOmOm9HZdzc5S5lX0pmGOq6QRDbhKKPfuiIt7doov+BhGIaMsspQtAN0Ed+8id/gynZ4gWAMlId3LtDYx/TqsA9MUnCStgSbuV/7Eo06zrQ6hTToYWkKHI7397IlpLO02eLSG6Ev+CsQqJzdnvLCO5rWZbn27O78kQrmP0ZjYN3Buh376IhFjdm4WQM5RlehZrBWnYcEWrK/0A2b1DP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CwCv5i/KmN77QkhKRwVwt0tYiRW0GXnMy/bmeRee+R4YhS 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: List-Subscribe: List-Unsubscribe: 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(-)