From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gentwo.org (gentwo.org [62.72.0.81]) (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 C74672206B9 for ; Fri, 20 Dec 2024 19:19:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734722353; cv=none; b=n6dY/tIIJaW5rWgS2ZiJldNMFq+SjaIJC5HtgFnBc+PoZqChMXvpUDBHVg+BItXgtSLiwcUT9SM+BV/GqGhBCP1UFYpb6uKBqz6Ci5g1xDY19rcXBM9/cR5ZVke/k0A9uJu7+3tSfnitxW7jb1HgNCc/LgFrpv9uVx1a0PEX+vE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734722353; c=relaxed/simple; bh=BCJwW/l1RFRYSntoHIRPivwtsXDQJZxWeTTuiodNsvk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=W4vHrlEeJjysZydwhAadcTnQrskHDPd5gagG80YCTFqTPOnV0qu7SCRF7/V1r2uVk2T87Zkjtpw+qc53X/ENxXEuhKYypxYZCDq5EuxfjGJSpso/h2FFRrqSgJckPIdQdCeQztQL4IWOuJs9ZH7keXHuQ0OEuf9eYNAVmeBDwy4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gentwo.org; spf=pass smtp.mailfrom=gentwo.org; dkim=pass (1024-bit key) header.d=gentwo.org header.i=@gentwo.org header.b=kRpk7kWr; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gentwo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentwo.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gentwo.org header.i=@gentwo.org header.b="kRpk7kWr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.org; s=default; t=1734720465; bh=BCJwW/l1RFRYSntoHIRPivwtsXDQJZxWeTTuiodNsvk=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=kRpk7kWrutmetMqNffs8Rnz3p0Jho/4X5gDM6+0F67jKXs5nbwKvkomEc7USCp0GJ ng959CBZE1eD7oe6rGM6AXf+Lka2Sr8Rh0yUKn/0xu9WeDaNhBdwvdY471vWHKDqIL HDsliWf5Y4/lsR1mQwpG5jx/8lBQpdcm5sYimQbk= Received: by gentwo.org (Postfix, from userid 1003) id 0689540737; Fri, 20 Dec 2024 10:47:45 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 0536B401E6; Fri, 20 Dec 2024 10:47:45 -0800 (PST) Date: Fri, 20 Dec 2024 10:47:44 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Ryan Roberts cc: Matthew Wilcox , Dev Jain , akpm@linux-foundation.org, david@redhat.com, kirill.shutemov@linux.intel.com, anshuman.khandual@arm.com, catalin.marinas@arm.com, vbabka@suse.cz, mhocko@suse.com, apopple@nvidia.com, dave.hansen@linux.intel.com, will@kernel.org, baohua@kernel.org, jack@suse.cz, srivatsa@csail.mit.edu, haowenchao22@gmail.com, hughd@google.com, aneesh.kumar@kernel.org, yang@os.amperecomputing.com, peterx@redhat.com, ioworker0@gmail.com, wangkefeng.wang@huawei.com, ziy@nvidia.com, jglisse@google.com, surenb@google.com, vishal.moola@gmail.com, zokeefe@google.com, zhengqi.arch@bytedance.com, jhubbard@nvidia.com, 21cnbao@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 02/12] khugepaged: Generalize alloc_charge_folio() In-Reply-To: Message-ID: References: <20241216165105.56185-1-dev.jain@arm.com> <20241216165105.56185-3-dev.jain@arm.com> <5e716fd3-2393-8d41-bb68-9f589e4db290@gentwo.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Fri, 20 Dec 2024, Ryan Roberts wrote: > > Could we move all the stats somewhere into sysfs where we can get them by > > page order? /proc/vmstat keeps getting new counters. > > This is exactly what has been done already for mthp stats. They live at: > > /sys/kernel/mm/transparent_hugepage/hugepages-kB/stats/. > > So there is a directory per size, and there is a file per stat. Then lets drop all THP and huge page counters from vmstat.