From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796057319; b=nc27TcU85dXzVxYgrHvqVSJQHnDWFf8fSeSfXTsOK1r/dfVQdsDeFaeuSXzgVmMjAWbY R5iL3z32zKr5cWLEnfHwDl2yCplu1Hp53wW0lzL9f4YlBfEV9d30L9x1rLv2lcJD7D6Xf a5yUWKWwTxPGSTA9EBY0n2wjOcq9+NBxWyGEBuegQwAki637++VhqX9+rbqQmmCOocVPz CqXQKbi7Cjtt6tgwh2lOb+XL/3XX5fgLy2LeyO8SmtR7ZeEWzakHoGJ9CcV/mvoDICg7p Ts4V/0W8qxPjAt3vIo0jqpOdlPIOz13LS5cYvXmai/ai8bR/2byJnobfYV1hZbO6Njw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796057319; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=QDlxTbBrsz6GKqBIcpuFBy4FWATVxhz0WginwkvUts0=; b=rkV0cZolUxjuj8a4Zzdat4jBv/s9x/9AAIN+TVgbw3zsPcxMW+yp5oVgtskehz5WLjrR tSz6dRbB4VbdZk1ubTg4hNn34lK6bMfVOGEA0ffiZN0LHq5bnZWarFUgrKJeBDB0/32SQ UYtbOrWp5Kac7V1WPiwaUUa8hf/7yixeaYxdICumR++8AVgNZqooZRjUAKKuxiWCITAPe YgAwDmsf0djWruZMTnIVavwj607M9yOiWdJm6BedustCXWyvB/X+b3mklvvsDF1qyBUKW vZD+z6k80+E5aD/jHURuL1MmJJflStPkuyP4ax8Zo02ixU0gpP3CSEfXPSj5IsJetUA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g9itALOJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 29539606A31C for ; Mon, 30 Nov 2026 16:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=g9itALOJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id DECF61F00897; Mon, 30 Nov 2026 16:48:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796057318; bh=QDlxTbBrsz6GKqBIcpuFBy4FWATVxhz0WginwkvUts0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=g9itALOJ/wvp/cbb2KVuXtbdn3knBqW92XwjhcPdkCurMwrCILFYp/sfpmCpkMwv3 5B5deabej22hWjyGCpysum0k2TgX/EXmPjgS3oqBL23C8zqwjuH3L+wlrs3kMyVLgz 747+t0GG9eFtpNG35Xh3RJgX/ccAw4jIFZMvrM491cBsZqK2KnVAMPFDBcukXEvJP5 5lBvOd/r4w8sh8umvJfFR4WtSWOaB2jqA22UA1h5rECjW6m/l/+wT77FX9B5uIu/6a hvmHKGm62Td84/a2c4Vkdks1SxT0HaFFep/XXUMnsoWI0ZIZkAeK49IPnHZCDZ2IAY JwWngDw+cvq4w== Date: Mon, 30 Nov 2026 16:48:33 +0000 From: "Lorenzo Stoakes (ARM)" To: Chengfeng Lin Cc: Dev Jain , Pedro Falcato , Andrew Morton , linux-mm@kvack.org, "Liam R. Howlett" , Vlastimil Babka , Jann Horn , linux-kernel@vger.kernel.org Subject: Re: mm/mprotect: testing a zero-offset fast path Message-ID: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Mon, Nov 30, 2026 at 08:44:45AM -0800, Chengfeng Lin wrote: > Hi Lorenzo, > > Thanks for taking a look. I meant to share a microbenchmark result, > not submit an RFC or patch. Sorry I didn’t make that clear. > > I don’t have evidence that this matters in an application workload, > and the follow-up test actually showed a slowdown when most offsets > were nonzero. I agree that these results don’t justify adding the > branch, so I won’t pursue the change. Ack OK well I don't want to scare away reasonable discussion either :P Probably the easiest way to clarify is to prefix [DISCUSSION] to the thread but I don't think we really have a great convention for this. Always with this stuff it's a bit of a 'why are we doing X' vs. benefit trade-off. But do welcome feedback + discussion, sorry didn't mean to dissuade that :) -- Cheers, Lorenzo