From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.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 42862306B08 for ; Tue, 9 Jun 2026 14:30:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781015410; cv=none; b=SOVkwIRJhfKLRaNF1yKqwuW43s7bf5KmguXxodlHXMoP8008Dp6Qz+0Ewud/36cuPY5aKw6H7OlL+ac+IT75rSpn6Qg1MvA7uYT445aHXV0U4XDYoKy5GOxs/I2mAOesgzuGvEx/AEb6ocv+7R1dMfqJRsTLIkXTuFog3gmhffk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781015410; c=relaxed/simple; bh=FOcLm8xZdWWNcmt7z+jolhjpJsE/GabdEXd7iffgCks=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=U9lutsI/0WTLpr86pU2So0oA+F+VqbdxqLibDgOqloG8EJkyKBa8stepKuIiNwFgPN+e55KO+PHFQT2NMxyD1MVDxdUgBa++WZfa/SSi8ccRrcG4VMLmlZiJjEGhZX26IOm8obdbOLUngn0H5Dhvtpk0mOXbb3GMTISsaQqffVo= 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=bXhDmjm2; arc=none smtp.client-ip=95.215.58.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="bXhDmjm2" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781015405; 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=oeJMf4Sx5hfNHjWcNBhKdlPZpkDAYwCakJYZoE71Ups=; b=bXhDmjm2by6y5gPy+gfs/EVmDZSSrTXcX9sRmadiQgq6sAF1lvxLPwdxtIv9xtT5cYyqJK 2EKDuuJchWcOIdc35nvrqAcI0GhRAAQ7YqTtI1GxXS8d+87CENHLOP7DldaAH0JHne+9U/ IKhrApzCwB6tuY4zd21EUSEmhNk/q48= Date: Tue, 9 Jun 2026 15:29:46 +0100 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: Andrew Morton , david@kernel.org, chrisl@kernel.org, kasong@tencent.com, ljs@kernel.org, ziy@nvidia.com, Linux Memory Management List Cc: 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 , lance.yang@linux.dev, linux-kernel@vger.kernel.org, nphamcs@gmail.com, shikemeng@huaweicloud.com, kernel-team@meta.com References: <20260602142537.198755-1-usama.arif@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Usama Arif In-Reply-To: <20260602142537.198755-1-usama.arif@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT 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? Thanks! Usama