From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 25D1631064A for ; Thu, 8 Jan 2026 18:29:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767896965; cv=none; b=RyjAXpTQe5g+P0vXDoCrO/J2REAcF9MMlB3Z49S0OJNC3TGOFxjwvt/v0FR0Rdx0uEq9zZlUN8G9wiPTDlUc6uN6U8cFUuKODSuE1nm7xQEo5ldF/kef9yjb4SC76EySQHcpWQnWKcrm6z8U+uScTwLSRXrAO2FOW0jafFuQ0qU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767896965; c=relaxed/simple; bh=C1ZZbneNUmbULmhmIIcvZNddGcCUci7DDbpWChqEyKU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mbo2GnBUK/wIi9lh4Flw4vu+CwqoZ+pBZU2gsfEufzC7I84KM00k6qtJzyBwf4jMT2KcZqSVEqON+mk9buROdh+CQwqLIuqewgzggXnQuOtPPVoXNP8A8REX0xKzzlNuDH7OFwTbA50ykAmNUO64X0bN+NV0MZdQFZvgms4Gd5M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qA1Aq20x; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qA1Aq20x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE3BCC116C6; Thu, 8 Jan 2026 18:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767896964; bh=C1ZZbneNUmbULmhmIIcvZNddGcCUci7DDbpWChqEyKU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qA1Aq20xJgjpSoMfhVPELlB3kaMSb4V949hdTJTF7ntA/YDRLPvppPlo71J3iNVEz rWPCZzTejHHH+XB9IiMGiMIVOdrHLg92f88tFmfG7Ee4vaZkHKHJOAzq+fw14Nu3o3 3XyFg2T6izd3Edg2iO6j9aynx/8E5EKvZC7I5BKofd1bGmvairPCUhH9p0rE64TXbh AZHNfuCTQICVlmaoj472l/aJicPGDjbXohpy9QXQzRldQth+W5Xr/j92I3bfizc0/9 jMOW/hMOBwidFSFHMxnmxaY04o9i2lgVgZ7aCLmsvinqdRjXMYgP1qT2fZwJzh2seo M6yCbvZJ5I0bw== Date: Thu, 8 Jan 2026 18:29:19 +0000 From: Will Deacon To: Barry Song <21cnbao@gmail.com> Cc: Weilin Tong , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Andrew Morton , David Hildenbrand , linux-mm@kvack.org, baolin.wang@linux.alibaba.com Subject: Re: [RFC PATCH] arm64: Kconfig: enable ARCH_WANTS_THP_SWAP for all pagesizes Message-ID: References: <20251226063759.4020782-2-tongweilin@linux.alibaba.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Dec 26, 2025 at 07:52:44PM +1300, Barry Song wrote: > On Fri, Dec 26, 2025 at 7:39 PM Weilin Tong > wrote: > > > > Currently, ARCH_WANTS_THP_SWAP was limited to 4K page size ARM64 kernels, but > > large folios requiring swapping also exist in other page size configurations > > (e.g. 64K). Without this config, large folios in these kernels cannot be swapped > > out. > > > > Here we enable ARCH_WANTS_THP_SWAP for all ARM64 page sizes. > > I no longer recall why this was not enabled for sizes other than > 4 KB in commit d0637c505f8a ("arm64: enable THP_SWAP for arm64"), but > it appears to be fine, and the swap cluster size should also be > more friendly to PMD alignment. You seemed to be worried about I/O latency in your original post: https://lore.kernel.org/all/20220524071403.128644-1-21cnbao@gmail.com/ Will