From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 46F8D1A3164 for ; Wed, 10 Jun 2026 13:02:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781096568; cv=none; b=AkZ3iJZ0OHsucbjzOeZTGBNO3oygZJGur2vKqRNG7bjH10qKdSZv/52dxAkdOhLXK3riSPJPAZUjmKEhWMOjEc8DAL2lcmuBioLYYhhCy2Y4yNQbqZ87j2omQzZHPhpQCFq1ZTa7cb+RX4/jvW17HnAQvtzYO3qrlbk6S/4KQX8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781096568; c=relaxed/simple; bh=ls4m8l9UgzZ4aZpYO7/9gTn/iTYakCc63d3Fr9GVQwE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mgwn9W6GXME0wfgiQOq33libokWMyvR0OchtmE1O22dCc63o3ntl3VQq4j4cU1wGEz1cIjdXekdm5IpAdkAFOroii5fhrFpOVgmmHyC1RbtwQfTugtNr1+BTZkH9OW/9uOl1tJH3ddpFJPeUtEYusxI+nt+J129Hv+MZKkLNevE= 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=VcfOUP41; arc=none smtp.client-ip=95.215.58.180 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="VcfOUP41" Message-ID: <1acea238-0495-4e2a-8026-22d5cbdbab21@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781096565; 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=aAdxrW8m64W6BTzbHMIrHCxXIXBwdiU4izodFeoMApw=; b=VcfOUP41biEFjXxzdMT1F9tGNLry/xSZ4xsM+opHLILFrYffUdmZCFOw26FPfTijXSDZU4 iDRbUDmXWpJj29Vps2zupTZH/8EHJFVPuschAR2x66h5FxPfDuFAS0J5YBTP46SMJVD/13 xT0gyuUmzQadOTAaFzuW56Tkrr8NPAY= Date: Wed, 10 Jun 2026 21:01:29 +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 To: "David Hildenbrand (Arm)" , Usama Arif Cc: ying.huang@linux.alibaba.com, Baoquan He , willy@infradead.org, youngjun.park@lge.com, hannes@cmpxchg.org, riel@surriel.com, ljs@kernel.org, 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, Linux Memory Management List , Andrew Morton , "Liam R. Howlett" , ryan.roberts@arm.com, chrisl@kernel.org, Vlastimil Babka , linux-kernel@vger.kernel.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, kernel-team@meta.com, kasong@tencent.com, ziy@nvidia.com References: <20260602142537.198755-1-usama.arif@linux.dev> <52cb5ce7-ece2-4e52-9e4e-5e476c34f8be@kernel.org> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Lance Yang In-Reply-To: <52cb5ce7-ece2-4e52-9e4e-5e476c34f8be@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2026/6/10 20:24, David Hildenbrand (Arm) wrote: > On 6/9/26 16: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? > > It shall be reviewed. We just finished the mTHP khugepaged review to get it into > 7.2, so we've all been rather busy. Right, mTHP khugepaged was a rough one. Glad we got it over the line, but yeah, there's just been a lot of THP work lately. pretty nonstop ... > (I mean, just take a look at the THP-related flood of patches we are fighting > with on a daily basis, it's not funny anymore) > > This is clearly going to be 7.3 material, so there is plenty of time given that > the merge window is about to open soon. Usama, I'll try to make this one a priority too. Looks interesting :P Cheers, Lance