From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 D52E03E5A05 for ; Tue, 7 Jul 2026 10:25:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783419948; cv=none; b=FQBfY6lhLFzsPM47Qn19lPMda+8aE7k5S7ra8sffsw51LmxZCqKxlYEjQGlX9Mw35tqNDE49MNCwR9ERoUs7KRHDK7/pgFgD0OjyCTZiSacVVZLUdCd/iFKY15pEbiWIz102D0u/ONw8uXTTYpDrY0LpkvG6xSbWNmx7HgPZkNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783419948; c=relaxed/simple; bh=gqOFLV/X0owYRcnHzvrsp/DH0uPVs/VkzGR4wK4JoEk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QbqOWnUCIvFVLnCC9tYLMP4K18ORUE0LBxEPT8cudfuheg74D+SWpt/QlHQ/19+8JRw/4/AYStYDcmN5HmHuafOI6Wjri4t7k0FSwnRJRJ2iBZmPlYlj0j+g8aIFg57KNCCaj0UFppbUpJm5OoaOiO9v+nADjZYdkegfY+AQ8Hw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JKmPBoCb; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=h+ysaTAo; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JKmPBoCb"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="h+ysaTAo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1783419944; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VR1L8Tfvs37DPjneOYKS8+jqtMz73BhJHMeN7x0oADU=; b=JKmPBoCb6Zwqoof+61MNUKqqQU/izuLxLFYyPtUPGJPeIcn5nAcNGwhrrau4lL0DsIC4xX yvQux7riNFZ86VHpm1SSWIdPVGHpX+ll6qTpfgmOTHkHAyDHVElMgtIMGqoQ5ipsUC9ATQ BrlojwdzQJgSeXRevqsc+7mtKckuXKY= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-67-gVmR-tOTN4CJXF3sDWTDAQ-1; Tue, 07 Jul 2026 06:25:43 -0400 X-MC-Unique: gVmR-tOTN4CJXF3sDWTDAQ-1 X-Mimecast-MFC-AGG-ID: gVmR-tOTN4CJXF3sDWTDAQ_1783419942 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-4731a357b0aso3564322f8f.2 for ; Tue, 07 Jul 2026 03:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1783419942; x=1784024742; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=VR1L8Tfvs37DPjneOYKS8+jqtMz73BhJHMeN7x0oADU=; b=h+ysaTAov3SneTnGvdTxjJHZRjtE2BMG6kSy16rltr0jDQkPb1Kgm/7TVkQ+C/pLlf RvwqSkZYoqyeQCq15fcUZjOy8beNb2jcOxsRWC6is89AQ6MKFC3F94hJIFePwGHdOYhq /lS6ahdF5lsh93TxcxyRTXgnzatG1Rnh2TpGUpEPYeaNLAEyxSgTwZLT4Ymob1psizgK /OVNi3o764tkdHL+PC49zsTSd84ft2JRv+dskg64s+L72CePTj+gYfBNyBI9g1EfcHEl 6Z5qryey5DH2O1d5pCjhLkbuknVZUaqxh7INQ4MK/cxFdYkMhj3WwIkyi+HbVY7t/b1E RvuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783419942; x=1784024742; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=VR1L8Tfvs37DPjneOYKS8+jqtMz73BhJHMeN7x0oADU=; b=Ypn8QAmViSOjrOX4VrwiKTJ0WBejtqy9DA/LMuuG38kTOQGhjeWJguUUPpt7pJ6Z9B 2zC7+2Cive4zkYDVYFfs0Ro9S1IzWUsXBAD54ekRBF5fAOAh8/tSQ6AzA0amSXJDWgyQ td4NWF3AVFumT5PHm4sM0pvuTxwgN1JnleZZgtAaApZyYZQThIaeZvsufdHQAyGQkjrk IS54eiIYSoC9gMj7fcYFwLhzEpFAudIg/VVJDsrlU5nYVuuo3Ht6R7yCKO9vfj3myy91 c6UPKt5v8sBB8whgXceau4JfImAZnHG5sb7e85DucFoZmJBndEFGTcMGldWQw8RAsMOX fTpQ== X-Forwarded-Encrypted: i=1; AHgh+Roe3Qql0W7OW6G7hzKdzmgSVtmIO1BegbDs9IEyKxx+Gzz38fBuK1SRRdVkhKF0FvS6XPTocz6u3Ys2vXY=@vger.kernel.org X-Gm-Message-State: AOJu0YyXuHx52mzkEDhC16mJDgiRhAfgPqYOvrAPBqQIy14R7UkoAgrR 2+/GfGLgY659Z0gxF+Xc5VKN+k7b29e3XGqJEdHCfggv1+ebtGGIngQjw+KaOHUXnc4E86QlsCX CnbznogTxIyfTXqlbDbIbHycr2mlWzzc3WfIE7zhWrl4kLyo2GEg0HoMEI5Qp4uaV9w== X-Gm-Gg: AfdE7clX/NnBLpjjpqh07B2jfBLyXXz4U4HNIBbXzCz/tAAZOj0oztL7FbSqrWazraM wUb8hpamHmi9kosTSw7+hNZNir76cvnZkOQiK8xZzsfdRuTzccya76xwnf4MtsSpqgDowrEKn6J RxnRTgzXCWA1GZNTqq0jlRgddLyZ22dOT7HBpXCwGYggP7gx+WHDNmqyiiKh7WMy7jcMgZsXzKF klLl32W0G4biYKEu1hZ36ccQGzKWa4K00MKDyUCjA8S7SRLhuYWAboR93P5zzQ/G95b6Q3/DW9R oloOyT1QyHDgUFLMoTlpdYn6XjhH36sEE8NChS+RKNbXLOGdmkLfDmCi6e+vCg0zY8TiQtI4QcS F62BfZQ8hRYxmbB38cf/Vy1TelWiBZGW2 X-Received: by 2002:a05:600c:1383:b0:493:b647:1acd with SMTP id 5b1f17b1804b1-493df090a95mr49448535e9.36.1783419941239; Tue, 07 Jul 2026 03:25:41 -0700 (PDT) X-Received: by 2002:a05:600c:1383:b0:493:b647:1acd with SMTP id 5b1f17b1804b1-493df090a95mr49448105e9.36.1783419940603; Tue, 07 Jul 2026 03:25:40 -0700 (PDT) Received: from redhat.com (IGLD-80-230-68-31.inter.net.il. [80.230.68.31]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa039b126sm32286020f8f.24.2026.07.07.03.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2026 03:25:40 -0700 (PDT) Date: Tue, 7 Jul 2026 06:25:36 -0400 From: "Michael S. Tsirkin" To: "David Hildenbrand (Arm)" Cc: Sourav Panda , muchun.song@linux.dev, osalvador@suse.de, akpm@linux-foundation.org, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, mhklinux@outlook.com, fvdl@google.com, gthelen@google.com, mike.kravetz@oracle.com, pasha.tatashin@soleen.com, rientjes@google.com, riel@surriel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [RFC PATCH 0/6] mm/hugetlb: Dynamic, NUMA-aware HugePage Cache & Free Page Reporting Message-ID: <20260707062428-mutt-send-email-mst@kernel.org> References: <20260707064235.1386552-1-souravpanda@google.com> <9624988a-366e-4884-9408-3f3b88c27290@kernel.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 Content-Disposition: inline In-Reply-To: <9624988a-366e-4884-9408-3f3b88c27290@kernel.org> On Tue, Jul 07, 2026 at 09:29:07AM +0200, David Hildenbrand (Arm) wrote: > On 7/7/26 08:42, Sourav Panda wrote: > > Overview > > This patch series introduces a dynamic, NUMA-aware HugePage Cache, > > backed by a kernel shrinker to safely return memory under pressure, and > > integrates it with Free Page Reporting (virtio-balloon) for HugeTLB, > > specifically targeting gigantic (1GB) hugepages. The goal is to solve > > the tradeoff between allocation latency and memory > > fungibility in virtualized and heterogeneous cloud environments. > > Hi, > > in general, we consider hugetlb nowadays to be mostly in feature freeze, as we > realized a while ago that adding more special casing on top of something too > special for all of MM is only going to hurt us more in the long run. > > We want to have less special casing and less special sauce, not more. > > Now, there is nothing wrong in making hugetlb be less special, by making it use > more of core infrastructure etc. > > But optimizing for surplus hugetlb pages by teaching hugetlb about new caches > and its custom free-page-reporting support rather looks like the wrong direction > for me? > > -- > Cheers, > > David It is currently bypassing free-page-reporting completely. Making existing free lists not ignore free-page-reporting would maybe considered "making it be less special"?