From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 516D4606A332 for ; Sat, 5 Dec 2026 08:34:05 +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=uQGU6A3Q Received: by kanga.kvack.org (Postfix) id 77C536B05B1; Sat, 5 Dec 2026 03:34:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 72D246B05B2; Sat, 5 Dec 2026 03:34:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 61C586B05B5; Sat, 5 Dec 2026 03:34:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 3886F6B05B1 for ; Sat, 5 Dec 2026 03:34:04 -0500 (EST) Received: from smtpin18.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay02.hostedemail.com (Postfix) with ESMTP id B520D120316 for ; Sat, 5 Dec 2026 08:34:03 +0000 (UTC) X-FDA: 85509266766.18.6892A0F Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by imf12.hostedemail.com (Postfix) with ESMTP id DF6B34000D for ; Sat, 5 Dec 2026 08:34:01 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=uQGU6A3Q; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 172.234.252.31 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796459642; b=Si4vzOaj30860C/aduFLElPMALVXHR0xTHR87dO88W34wYB7GAZsiGMI70OZ6xZ2TXj6WN ityGjy8OibEfIKaQTYQCrLqnRQgEH+hb1tz0Ez5C3drjSua9fyl/YiM9L0MDhsbohc4IYt 389tJBHX5uVuDeVOTcesRLQVQEGVQEM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796459642; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lE/UL3EDiv7msbXjiVDbM62CMrrFv21GlSCf/gJ0vVE=; b=Ykuzq572s7MvBOakekAFuYa3Bf1wIu5wnnYZkfAEh0R+m+eOOogNHatm+xgxe/3TvNvxJB KvPotO8qkFK+g/EnUVhkcZq4tXa9WjAKwkZVTalpjU8Ze9tpe79UK9ofspo6wcupWLotRZ 4qL70ANsP5xqwj0njWDDAfSRtPCbX8o= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=uQGU6A3Q; spf=pass (imf12.hostedemail.com: domain of akpm@linux-foundation.org designates 172.234.252.31 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id EEEF845C8D; Sat, 5 Dec 2026 08:34:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 582D51F00936; Sat, 5 Dec 2026 08:34:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796459640; bh=lE/UL3EDiv7msbXjiVDbM62CMrrFv21GlSCf/gJ0vVE=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=uQGU6A3QOmuhp/6l8S1SoDDqvzbLE2bJziyJHxX5B1EC8kDW2MUGAgrcVFXPkqSxD fndTzlAODoclz2Q2CJOZrjo9fdzHD5WXwnG+LdLkBYhn5tNlUmqm8Cgot48xIrT6ri HuZuJr0+Wn1BBUSmX90ysoVpe2dvkuH1qFq8kEpE= Date: Sat, 5 Dec 2026 00:33:59 -0800 From: Andrew Morton To: Kurt Lin Cc: David Hildenbrand , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Michal Hocko , Shuah Khan , Mina Almasry , Sayali Patil , Zi Yan , Song Hu , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Li Wang Subject: Re: [PATCH 0/4] selftests/mm: run all hugetlb cgroup reservation tests Message-Id: <20261205003359.261a676af447f5e8d90ef790@linux-foundation.org> In-Reply-To: <20261205-hugetlb-charge-multi-cgroup-v1-0-e88105afc12a@gmail.com> References: <20261205-hugetlb-charge-multi-cgroup-v1-0-e88105afc12a@gmail.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Archived-By: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Stat-Signature: 5mju5awpy9qi73uuehpyz71w96xksnzb X-Rspam-User: X-Rspamd-Queue-Id: DF6B34000D X-Rspamd-Server: rspam09 X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-HE-Tag: 1796459641-221167 X-HE-Meta: U2FsdGVkX18iePxTha+pmOWMWfWRVQik7y6nRvFyARRoTNlQYIdQNPlzccwFmRB+us42hM61lzOKPRoywINS+DgGlFMTzSFM2AmANGNXWSJli5X5EqeSoJgWgY9q8FQwpLayqiXxA8dKs0fiP0wJ1uJHwtTtzgPTv4Rpz4DpXPjKeevURkXZt74ePnlJhehBoc/cDPlaQIH3ODXIEmxYtTHDSr5lZmRQBGGuql7kpo5108m3O391BsFSpQef83M5Oqtq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Ubw2vU7bFPeyh3OOkJSXx/5bFyHGqed8SKUF2EzfwWsd5FuOqM7qI/IjrWegfisQpOIPRQFdV+TN50CH9uvb3yDqdzZ1QBXkNaNj+cA= Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sat, 05 Dec 2026 01:31:56 +0800 Kurt Lin wrote: > Song's "selftests/mm: restore hidden hugetlb reservation scenarios" was > dropped from mm-unstable because it made the hugetlb category of the > linux-mm CI time out [1]. The time goes into a 60 second wait in the > cases that expect a reservation to fail. As there has been no follow-up, > this series carries Song's patch (3/4, unchanged) behind fixes for that > (1-2/4), and fixes the multiple cgroups test it had to leave skipped > (4/4). That test failed only because of bugs in the script. > > Tested in a virtme-ng guest on mm-new: charge_reserved_hugetlb.sh > -cgroup-v2 passes all 84 checks in about 62 seconds, and > run_vmtests.sh -t hugetlb passes in 87 seconds. It also passes with > KASAN and lockdep on an mm-new that includes David's "mm/hugetlb: > various fixes (2)" v1. argh, this thing. 60 seconds isn't acceptable for a selftest! selftests are to test kernel functionality and nothing else. No stress testing, no performance testing. In, check, out, done. I'll grab these 4 on the grounds that they take the situation from "utterly awful" to merely "really bad", but tokenbot tells me that all this functionality (plus the functionality which the script fails to check) can be tested in about 1 second. > Found and fixed with the help of an AI coding assistant. I told it : That script takes about a minute to run whch is not acceptable for a ; selftest. Selftests are to test kernel fuctionality and nothing else. : No stress tests, no performance tests. : : I want you to figure out what kernel functionality that thing is : testing then propose a replacement C program which tests the same : functionality in a few seconds. Don't write anything yet - just scope : out the work. then : Is there additional related functionality which this script should test : but fails to so do? Result: it's not a trivial project. Numerous design-level decisions must be made which will require understanding of the APIs which are being tested and, in some cases, of their internal implementation details. And the "internal implementation details" part is problematic. Those things can change and we shouldn't implement tests which are designed to match observed current-kernel behavior! The tests should test the interface as we designed it and as we documented it and as we expect userspace to use it. > Not tested with cgroup v1 or other huge page sizes. That would need to change ;)