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 89C7B1E9919 for ; Thu, 2 Apr 2026 03:44:21 +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=1775101461; cv=none; b=VnVLGVYM28juvqLcLG0Xc15i7SylMcAt0MrNe8P/XWA8EYn0goZYYAZ1sVKN+6J/1KOVgHdaqQiDFSJuXpxfDROX1RUv9myS/mM60ODRlzPabgdZVmx+3kJji5CYmXXXElFaa07Cs9goCso/ZUEhzytKxPilOx2pBBTX+T5+LEE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775101461; c=relaxed/simple; bh=utH2DEUZc14sIH1OkP4isvD4gLN0I0jn3rJSKnIZ6X4=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=Oe7+lTWb1ITZbIW8tg9/asRaaXS9/UO2dhqNgK9G2Z+4SmrbXtxFwqAdS+pFE0JqQqpcz1UgK/Hd5lvAx2qLjO41zlMVFqIcA8o5MW9dt8BcCgt8Z3SFiizGHZ8gPYzhFJFS6/WuZ6f2DqelQQslfaiSi5+hs9giJCU2wK5/qjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=yM2SJakF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="yM2SJakF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4809C19423; Thu, 2 Apr 2026 03:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1775101461; bh=utH2DEUZc14sIH1OkP4isvD4gLN0I0jn3rJSKnIZ6X4=; h=Date:From:To:Subject:In-Reply-To:References:From; b=yM2SJakFdW1YNAdT3Rnday936jebe94aPki1dRwx+af/C1Ma/8+0woyCSIc+zufFV lrMNiwUmBX3W3T4DPTOBWv5sMTkfog1wYa0aO9UIsnCKCjEvWFZktGeIJKOzjjGFJu Q0CJj2gI0vIcCbWy7SOuu0cVyJPZaSLBfyQ+YobY= Date: Wed, 1 Apr 2026 20:44:20 -0700 From: Andrew Morton To: "David Hildenbrand (Arm)" , Pedro Falcato , "Liam R. Howlett" , Lorenzo Stoakes , Vlastimil Babka , Jann Horn , Dev Jain , Luke Yang , jhladky@redhat.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] mm/mprotect: special-case small folios when applying write permissions Message-Id: <20260401204420.9e7342b7054a5809b8bdfa40@linux-foundation.org> In-Reply-To: <20260401170931.9e455bbf679792b039d9770a@linux-foundation.org> References: <20260324154342.156640-1-pfalcato@suse.de> <20260324154342.156640-3-pfalcato@suse.de> <20260401170931.9e455bbf679792b039d9770a@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 1 Apr 2026 17:09:31 -0700 Andrew Morton wrote: > > I can easily extending > > > > https://gitlab.com/davidhildenbrand/scratchspace/-/blob/main/pte-mapped-folio-benchmarks.c > > > > to have an "mprotect" mode. I had that in the past bit discarded it. > > > > Then, we can easily measure the effect on various folio sizes when > > mprotect'ing a larger memory area. > > > > With order-0 we can then benchmark small folios exclusively. > > It sounds like this is all possible future work? > > We have Lorenzo's R-b on this [2/2]. I'm reading this discussion as > "upstream both"? Sorry, please ignore. Reading skills.