From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1293C3624C8 for ; Tue, 23 Jun 2026 11:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782212680; cv=none; b=dDeiBGsgoh/GWAiNDNbuUrBXKJRQbTw5PSzuExEVudlKqgO1GJbp/q1X7/4SkRmk9oVzZkqp6nWNFjwUpUnBgn4Q/hqw2WPy+pbfHJl+CFADi/GC4xiOi64jcTNHR4rxvIvX2OeWM3QdCVMm0rkOk0IQ/BfbK4TVskr03xiQGVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782212680; c=relaxed/simple; bh=f0gGtvxOEphT2DUNUoQMZGrP+QDdes+x+kNtkL06yUo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iCWnJNXZsyKP12UVxdwouvGbE7QrSKVxIpZHvKmZLTMo1vVnX2FfVgpFGs1NbB54RSvQy51r2PY2k0VOMc6YrMUJIUcRrmURpUuHnFwZ3EQn2V9uwEjyYlW2zOyA3sSo80DA6dQm5aR+1ylEXf3LC4yXg2oKgL7NFAgHF+XW+BM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=uJO/NSPw; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="uJO/NSPw" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 853AC1A25; Tue, 23 Jun 2026 04:04:33 -0700 (PDT) Received: from [10.164.148.38] (unknown [10.164.148.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 07D953F62B; Tue, 23 Jun 2026 04:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1782212678; bh=f0gGtvxOEphT2DUNUoQMZGrP+QDdes+x+kNtkL06yUo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uJO/NSPwv6i1UphGcwTSZJ6nX2IfgfWmiJvtlQQGGrD8WgwEUXr0blhXQzi0yurXx SfVHkZTryrdUqUzj7FHHz8RrLGu823kX07BHyaae8XpbMWbPLosXo30EVBHgKz7L6H /m152kwkgTT3Hlh6bapGhDb2PzWrf9b/rML9ZcWg= Message-ID: <93e3ea2e-336b-4cb3-8be4-efdb353ff236@arm.com> Date: Tue, 23 Jun 2026 16:34:27 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 00/12] Optimize anonymous large folio unmapping To: "David Hildenbrand (Arm)" , akpm@linux-foundation.org, ljs@kernel.org, chrisl@kernel.org, kasong@tencent.com, hughd@google.com, liam@infradead.org Cc: riel@surriel.com, vbabka@kernel.org, harry@kernel.org, jannh@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, rppt@kernel.org, surenb@google.com, mhocko@suse.com, qi.zheng@linux.dev, shakeel.butt@linux.dev, baohua@kernel.org, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, shikemeng@huaweicloud.com, nphamcs@gmail.com, bhe@redhat.com, youngjun.park@lge.com, baolin.wang@linux.alibaba.com, pfalcato@suse.de, ryan.roberts@arm.com, anshuman.khandual@arm.com References: <20260526063635.61721-1-dev.jain@arm.com> <39e1a740-1126-47d0-b5dd-d711c04c6af0@kernel.org> Content-Language: en-US From: Dev Jain In-Reply-To: <39e1a740-1126-47d0-b5dd-d711c04c6af0@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/06/26 7:48 pm, David Hildenbrand (Arm) wrote: > On 5/26/26 08:36, Dev Jain wrote: >> Speed up unmapping of anonymous large folios by clearing the ptes, and >> setting swap ptes, in one go. >> >> The following benchmark (stolen from Barry at [1]) is used to measure the >> time taken to swapout 256M worth of memory backed by 64K large folios: > > I suggest sending out patch #1->#3 ahead of times as separate cleanups, so we > get more targeted review for them. Okay I will do this. >