From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796459752; b=0Q1uQKtpcpmhlzL2M2p/ZlEb0ESE19P+3S+nQ/R3aZH2WqXdrXGJo+WHbIZv5P/7UVdb fTzUdNskv2lucvO7fnNguVoVdiIlSRIzrbi4bgczQETc4Xsv7FIS+L+H6neMWPWaDpdJb ynIgpoP9m4iX3/+tsPrqHdAiODV0elLnTPMYAfyn2rmkCsvUpHAec72oRoDQXsrBbcOEX lBLk2pYXkamcPwsywqqYOnEroJiRwTR1qUG3FjAxkbkGhtonDMc96ufVDrPJVBHHbwLHS Ag+wPKox7atrREpbmTpJx5UMx7cKpgqSWF3KMzBEKyQPSzwUo1iDOcKQ9sQJjOQWoqw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796459752; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=GQBLMS5Ktuz9byaOkUOL5WR1REnNrWTNg62B0lejx14=; b=EiKkn3QXxGPPg5onfgvTLD57vAgy/kktnn6l7JpoBha3GZCVZ2EnjuiIuHGIpCPh/BLf TYMr2905BiDjKm1pfkxyJa7VVI5OlgYN7wHitaec0CbMavdXtXFVIO1GJoGj2B14Hk7BC f+1F5iXBFAfCeLoC2TkBpzV1R3lLsg9NmKcNYvLUBX6TJ1lyX+oW6a3Ax9VzCWoq9jKuN fiLcWn2HFIP3OBq0FBaomCT6ZZ3kEWHC7eyZe+dsejd9/hiWSTX8O6Um9iUBjCyiIm2C3 eVRTi3vwLuDdW7tGggnsjECvxBjGNBW8wiZ8jTmOsi+h8qNM8wTinLXr1lvAT7aiOig== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=nAfuiBCE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0420606A322 for ; Sat, 5 Dec 2026 08:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=nAfuiBCE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 894991F00936; Sat, 5 Dec 2026 08:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796459752; bh=GQBLMS5Ktuz9byaOkUOL5WR1REnNrWTNg62B0lejx14=; h=Date:To:From:In-Reply-To:References:Subject; b=nAfuiBCEBBH4pJZGvx0iKTnT0LvIxpIqVjHMOKYxFA+MStF5mD7giI0PC/OA8Xues R8Byxaba2sbPbjiu81knbiVbc9IkSMNyQUH5jtqbKfUSsDSFDDx03qizkVnqZkKtIP jxttmKolhdIjnePYcX4ari4eY9ghUvKUt770gxAA= Date: Sat, 05 Dec 2026 00:35:52 -0800 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org, shuah@kernel.org,sayalip@linux.ibm.com,rppt@kernel.org,mhocko@suse.com, li.wang@linux.dev,liam@infradead.org,husong@kylinos.cn,david@kernel.org, almasrymina@google.com,lylin1023@gmail.com,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261205-hugetlb-charge-multi-cgroup-v1-2-e88105afc12a@gmail.com> References: <20261205-hugetlb-charge-multi-cgroup-v1-2-e88105afc12a@gmail.com> Subject: + selftests-mm-dont-use-killall-wait-in-charge_reserved_hugetlbsh.patch added to mm-new branch Message-Id: <20261205083552.894991F00936@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: selftests/mm: don't use killall --wait in charge_reserved_hugetlb.sh has been added to the -mm mm-new branch. Its filename is selftests-mm-dont-use-killall-wait-in-charge_reserved_hugetlbsh.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-dont-use-killall-wait-in-charge_reserved_hugetlbsh.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Kurt Lin Subject: selftests/mm: don't use killall --wait in charge_reserved_hugetlb.sh Date: Sat, 05 Dec 2026 01:31:58 +0800 killall --wait checks only once a second whether the processes are gone, so each cleanup of a write_to_hugetlbfs process costs about a second, although it exits right away on SIGINT. Poll with pgrep every 0.1 seconds instead. With all test cases enabled, this cuts charge_reserved_hugetlb.sh -cgroup-v2 from 144 to 62 seconds in a virtme-ng guest. Link: https://patch.msgid.link/20261205-hugetlb-charge-multi-cgroup-v1-2-e88105afc12a@gmail.com Signed-off-by: Kurt Lin Signed-off-by: Andrew Morton Cc: David Hildenbrand Cc: Liam R. Howlett Cc: Vlastimil Babka Cc: Mike Rapoport Cc: Michal Hocko Cc: Shuah Khan Cc: Mina Almasry Cc: Sayali Patil Cc: Zi Yan Cc: Song Hu Cc: Li Wang tools/testing/selftests/mm/charge_reserved_hugetlb.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh~selftests-mm-dont-use-killall-wait-in-charge_reserved_hugetlbsh +++ a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh @@ -286,7 +286,10 @@ function cleanup_hugetlb_memory() { local cgroup="$1" if [[ "$(pgrep -f write_to_hugetlbfs)" != "" ]]; then echo killing write_to_hugetlbfs - killall -2 --wait write_to_hugetlbfs + killall -2 write_to_hugetlbfs + while pgrep -f write_to_hugetlbfs > /dev/null; do + sleep 0.1 + done wait_for_hugetlb_memory_to_get_depleted $cgroup fi set -e _ Patches currently in -mm which might be from lylin1023@gmail.com are selftests-mm-dont-wait-for-a-hugetlb-reservation-that-is-expected-to-fail.patch selftests-mm-dont-use-killall-wait-in-charge_reserved_hugetlbsh.patch selftests-mm-fix-and-enable-the-multiple-cgroups-hugetlb-tests.patch