From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310804; b=3yWWjcOzLnCuAi2e1fsd8PGcQxC/OOiyQLVdoxSPdiTjEEDDTJpSiOpRvH1/MhpQ/T6f hm3f0nEb5McNJ7Y2Ey6VmKTHtpbOjyGZJhANzmKv8juHIqsbp3eqkRM0EsVXqbRYEFHap qSfS1JhE/h6GC6ptfYr++f+7OoSLvVzcEjCXCodWj3favijGTg1OOduM2yllJ6stsGgiH NaYYF3JCl4w/7x14d2nA3qqZxemvUY0Megi8O4tFBkT5rIuSkhFuCYR8k3+LkvcLLWL/i qUpzRw+HZaGeND/r5MAUArFc7PKkQuMoVr8n7wZ2Hsb/0zSK+ZAsraRXeDktpb0FUDQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310804; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Sender:From:X-Google-Original-From:Date:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=qaVy9/S+0U8O50SClMIi+jFuCwv27/03LNFjbRTuvRg=; b=5WC0bgvxM7DTXqRGSCxlYMgC80Kp/oS7APDniVkitHaJSgunptKHZUoYo8dIiAXTAhe+ J6oLiUlskSiUKi6/8xGPFte2dC7iPZ2I6O9Ojd6XfevouHzFQeaDlQdlgfhuHBkRzCB/X x9s9JUuqxqv/luQe6MvYcqzg5nPRHXh/7Rpf16B/tgc7WUoF/fQiXGs8G3VAEp+VM5RQq kjMn/407eaKdS3BECxF7y+x4OC+TZrek0xYGAaxXIRRnxIkGUkUizPK1WSWJltSyP1dhq 6mLSR7kkCMAj2S3xL/X0w/ecNf3AqGWQpz8AkuO3B6vL84W+J56xPN8akNiiaO5KANQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=hammerspace.com; spf=pass smtp.mailfrom=hammerspace.com; dkim=pass header.d=hammerspace.com header.i=@hammerspace.com header.a=rsa-sha256 header.s=google header.b=PxbLO9oG; arc=none smtp.remote-ip=209.85.222.170 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2192C606A322 for ; Thu, 3 Dec 2026 15:13:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2192C606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=hammerspace.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hammerspace.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=hammerspace.com header.i=@hammerspace.com header.a=rsa-sha256 header.s=google header.b=PxbLO9oG Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-9497a167a6aso114757885a.1 for ; Thu, 03 Dec 2026 07:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=google; t=1796310803; x=1796915603; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:date:from:sender:from:to:cc :subject:date:message-id:reply-to:content-type; bh=qaVy9/S+0U8O50SClMIi+jFuCwv27/03LNFjbRTuvRg=; b=PxbLO9oGbqOnWDn6L9R9n2HNrJQsIG6IM7NEV9i812etKLtW7tfQCZl/A/Qx7gXf96 JSItWKkUW3VkpWMCyUcdZPu0UtJ4S8JAJhOMeVDf9uc1VRV6rzfhdOv5onmaEZf6vkQK Ea+oRf8j4XDMkLcR7CqNqc9d24fzmP/Gg0hfWW5VQT3kvFjcXdl23i0NVRfVD3ODX6Nt 2wrEhX9aH0sHLkTaAzAZtcxGrfqWFTZfUWvo2z9LJsq7k+KdG+JDAFaz8XLu67DAUqLl 3osOZyzDxMt+1wE9rggUjOTd5YuoXeUiVjn1v/2SJsSfAFB8Prd6pLbOZ+JXT7ldJwEp sc6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796310803; x=1796915603; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:date:from:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qaVy9/S+0U8O50SClMIi+jFuCwv27/03LNFjbRTuvRg=; b=qURLoRNoGv9aGh93+1fpVhNATZZTsX1JNkwn3zXScwG3+rlZVRKJ83zIrkDO6T+EmN K7SD+ijNjafurLbVQFr4ud/EiLmnCUZQJ1yHqXVVAiXkLSiAOcl0eeBKLwoKZphxAl5Y UORfS9+6qDd1dsfBNysnp1oQHDS6XexiQqU9hPNs6nPp8gqrMQTtpY0WyzHaxlCfM6fk uEfcOjydrpAasssDtpJjFFgd25NoW/Caba4LfaXNWrC4bgyhFbsEydiAUnA/R5fJdU+m FT8rjUQZd50w+gEOrx5IShX0dTV18dafykpeExedsVO2tMCnlahyKfc+c+l7XtuiokiV qVFg== X-Forwarded-Encrypted: i=1; AL+hErF6tR+omLRu6ZVW6prig6TCyhjmPK0C4hYh88Ar5SWPL30LyScbfXIiR3H9RrvfTLB+auCfDwgEuXo3SXVW@vger.kernel.org X-Gm-Message-State: APuU4Z/9nSds8Jx0G1j9tZUGBY28xuM602CMyYG9SbJzuICoJ0HtGm29 pCBjKu+NKA7QXmiIPNiwse1kwcvBplZAQKSmrkZieO3Fdn6RLNCwrPRGRVACy11/0uU= X-Gm-Gg: AZFdTZfEjid02jjEkc+ITBEZaTe1C4iaGKne2XQlIWTFaVKDcUvdUjbqR4BlGsArRXt Vc2voPRbi2eMUTzxjARWN6tle4a7Rl4QC/jS4iHc9EcIFFzrL05AR9VPayOxRuRviD7XpFYun5A mIL1Q3OI9S1dof7NRFzDIuoje9TEbwppzDHemdIQb7bAeLeaoapDGd/CDERjgQ3QX8RvfLBC+Gk 9aIsDHN+h6M4ng4iRC4D+0O5x/lcP1ndqGbm0KCxRz1J0ngBAAN1UiGc3arnI60hW2yH9a8QGDP fOS9JBWUPLsQmQi+jVEjtaVLZlljUp+xASHygFgmgeYnBrS0SMDEDZYq2OCCgrpUQejiwcRDsJT /0iVrxDCvJyqTS6cJp5w/1+Ya6SFBoPyBLa+abpiHURqPtA0cpiuB4T7vkZk3lHznElxZBf+JOC 8Xu9CCpZV9VU2HHS1qgsw17a20B7HiREsO712puuyRNphy0Od0AXQnELuOPdGpwIIalDJ7FhEPh CZEJyeb3I2h6PkqhOcHs8HuMDPio1+i4UBSLl2K/vLUvy0ZMiPoph2FgZTIQDBrdAVbvIKFAv/Y 4Ec9qM5UWTNtuwPxwD2u8JRrARfU9CtVY1jm7Ehd/RpaeDXQxeoMsf5T2LlAVrxMAxOH03LkLpu M1gYZRVf3N43RDLeam9Ld2ek+pwg9IPERaGmU9ps= X-Received: by 2002:a05:620a:4045:b0:949:8109:67e7 with SMTP id af79cd13be357-94a72337e41mr415432285a.36.1796310802855; Thu, 03 Dec 2026 07:13:22 -0800 (PST) Received: from localhost (pool-68-160-167-46.bstnma.fios.verizon.net. [68.160.167.46]) by smtp.gmail.com with ESMTPSA id af79cd13be357-949bb40efc4sm3361741085a.36.2026.12.03.07.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 07:13:22 -0800 (PST) Sender: Mike Snitzer From: Mike Snitzer X-Google-Original-From: Mike Snitzer Date: Thu, 3 Dec 2026 10:13:21 -0500 To: Christoph Hellwig Cc: Jan Kara , Matthew Wilcox , Christian Brauner , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Chuck Lever , Jeff Layton , linux-nfs@vger.kernel.org Subject: Re: [PATCH v12 0/7] mm, iomap, NFSD: stop DONTCACHE writes reading back shared pages Message-ID: References: <20261112190911.84702-1-snitzer@kernel.org> X-Mailing-List: linux-fsdevel@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=us-ascii Content-Disposition: inline In-Reply-To: [trimmed my frustrations, my point stands: misaligned IO matters] On Thu, Dec 03, 2026 at 09:03:23AM -0500, Mike Snitzer wrote: > On Thu, Dec 03, 2026 at 01:22:06AM -0800, Christoph Hellwig wrote: > > > all my points about forcing this benchmarketing code onto the kernel > > still stand. > > Handling misaligned IO isn't some conspiracy. > > Hopefully Jan, Matthew and/or Christian ... realize my changes to > DONTCACHE ... are meaningful and that their complexity isolated to: 1) DONTCACHE 2) associated generic MM code's flag checks minimal enough that the demonstrated wins are not something we should ignore. > If not ... I tried. AND I will keep trying because these changes are important. So if we could take a step back and not get too hung up (on there being a benchmark that shines a big spotlight on how bad Linux is at handling misaligned IO) I'd _really_ appreciate it. For what its worth: I understand the concern about making changes to better suboptimal IO ("doctor it hurts when"), this isn't my first foray into upstream Linux kernel worthiness. What I'm saying is: that doubt is noted, but Linux should handle misaligned IO better _if_ the cost doesn't come at the expense of optimal IO we do want to encourage. I just want misaligned IO to work better, because as much as I hate misaligned IO it shouldn't gum up the works, and these narrow changes actually achieve that goal for all Linux filesystems (XFS and NFS included) without too much complexity. Please test the changes, try to prove my claims wrong about these changes not causing inefficiencies for the fast path (optimally aligned IO, etc). Thanks, Mike