From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 4891119A2A3 for ; Sun, 14 Jun 2026 01:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781401725; cv=none; b=PFv5wPLPWs5oJGoQhYIzyNTslDpux0QwesIxt7jx8bSyMVF9U1MNKcXVMNNM8cdAzcpOBIu+DgkzYumQqvzskl6Kw8BeukyZdclHlLMKeg2T9u9IlR5xi9soz5LxYGN523bQDNv7UpE4j2H1XmwJbtKCL+bSU1jv+LRGBIsRvqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781401725; c=relaxed/simple; bh=la1VyaIV1621PuE32N4ENDVFb15JPyC4xdKClfaGWTY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oJsSxW+IF0vexuWBRKeg8i4ut/tv0TXaOMam8B2mPmImZjF3RCsURWy776ktRu1IFMpCiqgdM+Y/UtW0LJk0FxiJV9xER/lKNKnliHfrSmQJIpOPF8+fxHm9tlAQRpuBukUF2DkjAMmN9REh77pmbIhAddfyUrFqbRGWa5f3Dug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=sUYFAKqt; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="sUYFAKqt" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781401720; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZzjGDj2ejPIFCiun0MsPB5P0vlqMvB9lE1U6mFzN0Ps=; b=sUYFAKqtwM4RJf6fCmx+1mgrbZe2fNy90UH6Dz0sMWf9THOBHRjr/8xpLW9NMR5yF1I6hg DLAzI1CLKsdTGwB6mWiMkBZKmCzHxLTFXBYSwebKQ6q0Bk7ExwfKgD31y1ypL02WzML/Dv WeRWbCTudTh8FwDEyK/GZ3zTwOAJI7Q= Date: Sun, 14 Jun 2026 09:48:30 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [v2 00/16] mm: PMD-level swap entries for anonymous THPs Content-Language: en-US To: Usama Arif , Zi Yan Cc: Andrew Morton , david@kernel.org, chrisl@kernel.org, kasong@tencent.com, ljs@kernel.org, Linux Memory Management List , ying.huang@linux.alibaba.com, Baoquan He , willy@infradead.org, youngjun.park@lge.com, hannes@cmpxchg.org, riel@surriel.com, shakeel.butt@linux.dev, alex@ghiti.fr, kas@kernel.org, baohua@kernel.org, dev.jain@arm.com, baolin.wang@linux.alibaba.com, npache@redhat.com, "Liam R. Howlett" , ryan.roberts@arm.com, Vlastimil Babka , linux-kernel@vger.kernel.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, kernel-team@meta.com References: <20260602142537.198755-1-usama.arif@linux.dev> <6E99CC4E-A026-4DE3-8A5A-34216771F521@nvidia.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Lance Yang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2026/6/14 03:34, Usama Arif wrote: > > > On 13/06/2026 20:27, Zi Yan wrote: >> On 9 Jun 2026, at 10:29, Usama Arif wrote: >> >>> On 02/06/2026 15:24, Usama Arif wrote: >>>> When reclaim swaps out a PMD-mapped anonymous THP today, the PMD is >>>> split into 512 PTE-level swap entries via TTU_SPLIT_HUGE_PMD before >>>> unmap. >>>> >>>> This series introduces a PMD-level swap entry. The huge mapping is >>>> preserved across the swap round-trip, and do_huge_pmd_swap_page() >>>> resolves the entire 2 MB region in a single fault on swap-in, >>>> no khugepaged involvement is needed. swap_map metadata is identical >>>> either way (512 single-slot counts), so the PTE split buys nothing >>>> on the swap side, it is purely a page-table representation change. >>>> >>> >>> Hello! >>> >>> Just following up if there were any reviews/comments on this series! >>> >>> I know its a large series but was just checking if there was any >>> feedback? >> >> Maybe send first 6 clean-up patches separately to get them merged first? > > Good idea! Will do that. Thanks! Yeah, sounds good. Less churn, and the cleanups can land first, and life is easier for everyone :D