From patchwork Wed Jan 17 17:10:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Breno Leitao X-Patchwork-Id: 13522035 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 60249C47422 for ; Wed, 17 Jan 2024 17:11:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A1A316B0087; Wed, 17 Jan 2024 12:11:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 955386B0088; Wed, 17 Jan 2024 12:11:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7CC306B0089; Wed, 17 Jan 2024 12:11:15 -0500 (EST) 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 679A06B0088 for ; Wed, 17 Jan 2024 12:11:15 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2294BC0D55 for ; Wed, 17 Jan 2024 17:11:15 +0000 (UTC) X-FDA: 81689443710.17.57239B2 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by imf14.hostedemail.com (Postfix) with ESMTP id 3A18010000F for ; Wed, 17 Jan 2024 17:11:12 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of breno.debian@gmail.com designates 209.85.167.51 as permitted sender) smtp.mailfrom=breno.debian@gmail.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705511473; 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:in-reply-to:references:references; bh=DP69PvOk+lQM9++boQDvvmgfxQpk6r9vRPbBVvGiiUQ=; b=hD3TDzweI1FDIuLdQukuSFkZYymj9X323Bcq69fAKPbWYhHR3tPwlwbn+ARxT8fotE4f1R 5iJThi1AVbPO+nQzpscjy/xu9dadshUcs+6Ezuz3Mz5cBbs/1map9slQt4+Si1Fw/JnqSL G7WPKgegcWrroywlmJjA3nFNVOfJ7sk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705511473; a=rsa-sha256; cv=none; b=m8dimZKaw6Iz11mEaJkpPqJHpRsYA3RPt7LffLBcwJw3OZIj+00JlLscwYKcQISBZfnpG9 FbssHWcYu8R28KUSMjqj2sTIEmmurLddyvsqrrT7onK5IgDc837I+3A2+IMTYq+PCAhVMd dWC643CesCXwTtrFbMhtEtTeDdRPcLQ= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; spf=pass (imf14.hostedemail.com: domain of breno.debian@gmail.com designates 209.85.167.51 as permitted sender) smtp.mailfrom=breno.debian@gmail.com; dmarc=none Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-50eac018059so14525588e87.0 for ; Wed, 17 Jan 2024 09:11:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705511471; x=1706116271; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DP69PvOk+lQM9++boQDvvmgfxQpk6r9vRPbBVvGiiUQ=; b=l/wIIUizDdOvzmoqPrB/RcSNgYW9ohB05U1fItFP5oaP3tc+mBXzGpdZlLX5wtkmet eGXN41AQEYFxHvMzorAMVcX0ZwxAx+LNLBHg11NUVF55HMNUq27N8+9sKLooVhR+96jr yF1bzLEQK5Ki8IvNrkfAaEhGTswXFb1LuK5ZCDYFaMR3S4rNzC35oF/fvTsPFRkUby5Z lCWAGfDs+FgzmqIcgYi5GLg3PVD2/gBqayE//bIuwtHyBA82RSGw5KpSJBm9lrUCabuk pn+dNiGJkZS82AuBpAnT8YTV/TTT47djx8PtfLfg/+7Mr9OS86kUg/sXzTsuZBM3dCCu 0tOg== X-Gm-Message-State: AOJu0Yy94jrk8wiCuaa7CpA18MI94TWpFzc54bnGLb9dG0n8ip4FZ7u8 KJyNjoWACXdSSa/8Ihr2Xj8= X-Google-Smtp-Source: AGHT+IFjaNiYH3oaekOUfuYUMYM7ygcB8kqWaLO9WOSCMI6Gia6+k0oGOt0Aicaumyp4mmYxC/UTew== X-Received: by 2002:a05:6512:1155:b0:50e:7be3:c707 with SMTP id m21-20020a056512115500b0050e7be3c707mr5552398lfg.19.1705511471369; Wed, 17 Jan 2024 09:11:11 -0800 (PST) Received: from localhost (fwdproxy-cln-005.fbsv.net. [2a03:2880:31ff:5::face:b00c]) by smtp.gmail.com with ESMTPSA id p26-20020a1709061b5a00b00a298ade2e72sm7992905ejg.195.2024.01.17.09.11.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 09:11:11 -0800 (PST) From: Breno Leitao To: Andrew Morton , Shuah Khan Cc: lstoakes@gmail.com, willy@infradead.org, mike.kravetz@oracle.com, linux-mm@kvack.org (open list:MEMORY MANAGEMENT), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] selftests/mm: run_vmtests.sh: add hugetlb_madv_vs_map Date: Wed, 17 Jan 2024 09:10:58 -0800 Message-Id: <20240117171058.2192286-2-leitao@debian.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240117171058.2192286-1-leitao@debian.org> References: <20240117171058.2192286-1-leitao@debian.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 3A18010000F X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat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W0cK9VV9vaKw+6jVu5HdXtEE9mtCbsjeFHCbZN0O9Dxf9msmuhr3fIWxl7iSe9oj9/QxrtHOl1msZZvoS1OTpX2HQ8jSe2Zvi83xHnwtOWtp47yMf4IvBhYGpDqWaRH/8fYC5THX4pGL4oj64Y9Z75sUIwv2eOQ9o55xzLpIf8PSVrAl/1oNmvNpsYB4/0FmBqIvAGqXrZVcD32qP8aaSz+B+CjWAcZ/iSGeGaHXWL4PHnI/4Ywk3spFGz6iEM/QodT8H+u2v13TGtnYDo+/nBn+YdPe5YjYRCc6ji7Ft6lDVWpggDMVhJZfDbixTuh0Rpyg8l1smY1scAH/uGHzeWW6VqJlV7JgJIKXnecKFQ/gsuT0TQMItBXzvfk45FQB1o5CfqRxF3RuM24V9IlZSQOjPOHsFmUBcCI8nSulA72mIHUqL9KcjOloZKND1HJ0zu75b9Vt4Ml2kQQqOCH0VtmMib1Q1uvXIAy83A== 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: hugetlb_madv_vs_map selftest was not part of the mm test-suite since we didn't have a fix for the problem it found. Now that the problem is already fixed (see previous commit), let's enable this selftest in the default test-suite. Signed-off-by: Breno Leitao --- tools/testing/selftests/mm/run_vmtests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index a5e6ba8d3579..f41e1978e4d4 100755 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -256,6 +256,7 @@ nr_hugepages_tmp=$(cat /proc/sys/vm/nr_hugepages) # For this test, we need one and just one huge page echo 1 > /proc/sys/vm/nr_hugepages CATEGORY="hugetlb" run_test ./hugetlb_fault_after_madv +CATEGORY="hugetlb" run_test ./hugetlb_madv_vs_map # Restore the previous number of huge pages, since further tests rely on it echo "$nr_hugepages_tmp" > /proc/sys/vm/nr_hugepages