From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 97C2A245031 for ; Sat, 13 Jun 2026 19:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781380123; cv=none; b=RWCpFoJAgGSG4rwUctoMD1mkcJzfTO6ZS+4t5+lhtGTOs7tAgyqA1IJyxzxcqxH5wvCIRaW4fPqePnuENI/OZbtYQ5bskdZO869qhDUF/PhwIRd/umO2BgoygQo1ff+vg3k/+PrIqBs5h9GZey/NPa8HxCpiKn8tYNoQbzUF8tg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781380123; c=relaxed/simple; bh=sMpsq2oCD7G+Wd5jPEr9Bvh8roagqGLPO+4iDfAsHHU=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=YKoT8QRwAjhW/a8Mfk4fDWLPG5LN8kO3mvfHAMP1cfR95RbWNMXTD0LxmUI4qBY8tKe8QSDff7i++eOdNyEl9WariRQ24/GPm/sLtXYryWWYsPl1gruXSAgrKpV+peYItzDinY2q8PFI1dRwXz4H6RdEFcogENN1enaruYjdTTE= 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=PyTSQqhD; arc=none smtp.client-ip=91.218.175.173 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="PyTSQqhD" Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1781380119; 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=EZ+fKOUTrjEe7a3Zt3i1yWnHuMhAMIAMfhCXMZjpQqs=; b=PyTSQqhD+BW5yEDNAXx+KB2ulV77CTZTqLX1GbgHChLzen4D2CbswxLKGyx+PODnGqFPrv /etQxw3IVOHnMjPfkidjebfWxFJjP41UpvOUT+CW9rQLo6vmnxFf5VvpPajVMfnmnqpAax 2GVD2viEmXL5PLmsX7CHByop8H28eZ4= Date: Sat, 13 Jun 2026 20:48:24 +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 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Usama Arif To: Zi Yan , Andrew Morton , david@kernel.org, Lance Yang Cc: 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 , 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> <6E99CC4E-A026-4DE3-8A5A-34216771F521@nvidia.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 13/06/2026 20: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! > So what I will do is once the merge window closes, send the first 6 patches for review, then when they make it into mm-new (so that we get sashiko feedback), send the core patches that I have reworked based on Lances' feedback. [1] [2] [1] https://lore.kernel.org/all/526fdbc0-1944-4328-9ff6-7922d021828d@linux.dev/ [2] https://lore.kernel.org/all/20260612142124.73367-1-lance.yang@linux.dev/