From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.171 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310804; b=c1WDSEDIBcdxgdI/L3iaoYsI4hRDvgPg8VDWSvFOx7HA3LgihWohpWyyRgKO239OFmVp 67auKH6MTsg2V53TAHn7MTAH17CtS4xyb2t4krxl6jietDPQ5ghFcxxgTgX+Bgfalt9Jx 2VbGef6UWAXFjoK4awnDTSjkJwbYxRnEvcIcD2TfebzqZkYTXceZQAftCjda9jEElOVO8 wKPAbSPWz3U1Ju5oWGdtXwQTV0rNyM0fxEAl5/KQ1Ca3f+qPvqvX2XUwrrTP8eNJ2H5EJ SByAUuHnZCPLGiGIOXei/CN42O/2kLA9AxBCW7q7CmFF2jhl6OfAuu4mPQMd/Ui1UcQ== 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=O+PQP283KDDALzc1JPmtqbr+zlkgpw4viwWElswZVElM73V0VGG72GuAgXcy0RY8hfxP vjOySx0hery+1ywD1d/jW552pYeajDy0QMLM9mXcFGUNkHyqr3bApXXkKNjzSPNmCPYxn zmINuXhpifyY+ZWSi3dyDwyvGw34YKbjU4Z7ez/JAG6plQYAzI7/deagGuKvPlkLmgID8 chMfbXHiZI+KP/tYvY3GjG3aQKzdIoBOLPRT0e/LzP3hZJGfzUaUOIPZ6Y+bR5FxOOcen X1+4iYhchccbZC/1JPpabpYmWYbdLK9w8XdngybwIG5wMF/RhWHBCvDNwxWMZO7Lurw== 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.171 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 2ACCD606A32C for ; Thu, 3 Dec 2026 15:13:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2ACCD606A32C 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) header.d=hammerspace.com header.i=@hammerspace.com header.a=rsa-sha256 header.s=google header.b=PxbLO9oG Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-9497a167a6aso114758185a.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=Jp2bHblufzIGSVgW3VcpZvF71UAqpPnSqZaWpAHD985IGtRTUakGPRQZulIlt461BN l2hWS+YQ7Sahhd8G+uPHum+da5k/+r2SZchMpdkPVAz8wdwXAyBcZ0dQTkpo7f6u4UXk db/Bxp8ITCgsX4cvymZ+/HkSW4rtgmn2eYzD+UI85/TWqFXa8vFeHaD6sW0azgig18J6 AZXq1Czyv9MeBmZAjSGIvEA0Ayt40s/zUhF1GdLbmVuUgv5RDjGjv4cY7Rjkd7yEE7ej ssLHJA8C9mpsWao4FexKQNj/Oe3XBOhnvFt5RNhGikRvxUH8fMTzCzudd52aNUQa5ntt Aapg== X-Forwarded-Encrypted: i=1; AL+hErGAhI3LKEAGGz7AgjeKKOVk6EzdziEkNSNlN1X/FhpzcAvf/P7EQYe2lwpb8oYmsXcHV6UKcaHBdWw=@vger.kernel.org X-Gm-Message-State: APuU4Z/LsLUjZLTrJr3mOhN1MW+6J1ZYaerin2B1WVYp+K3ECPDUKpZM esjbWjubXTA0ZH0a+axtNz+YoMDY9zx8fcUbjIxPjSpij/zbX5wav1Kf6jHchqswPOY= X-Gm-Gg: AZFdTZc0Q9O4OZgHkdTE3ItsNJXhYMcv6GY6GxTUXDnztr5/YhYqyGRqHlKZVp9RZ41 sfy0epxnGbgsQcqYhk7RQ7Hbpm3HtMHsU83OqH3rLsihov9Rwu6Y1cbsBqGPqzsUfwcdTp9aHGH rad1BSSzIc+Y7UxCaICpiFvjlkQZ46kUsQ3LiN+BWBiEPtmtVlCdMaKcC0LPJLJh6lEE6SPnktO ijz7HGz/Henu4uzRSjBSCko7DjlH5nhcm+3/YizmTqslGIGWrtV1/DWOvO8lARRJ/x7jL1nMA8W UZjDH8pyK05mJFIbt4JcJCIraV7DJ9B7+Lm8YlqWZ0QoHLEjFGzVTpdEQ8bM+U9tbomxKSTS3cS Q39QSA1BpljDeWd9hpW6srs3WaCBgPOvzYknvUvEp4bSRysjG1Av67+FXOtakwj+m6d7j1JjUt5 5lyG6HHoAMUB8hkazuwC4rnKQ9S0Jbgy25TkKFqTKH9tZQppz2SjTgRe+YUlyDOuTfNfEcgH+CB Y+ejNxvoN3kXZQeyC6VHRl1/JKH0I1WKi529OoH+bkd8cMnvoWlJYG5lqNsRAfYocF0tdVST8Ew qhB6pXYP/njFacsOhvRbVmZC/VvTj5C9w8pOIDYFj3pachlcF9+qQg9YYfQj1UV19vGlGbVQlM9 MN2OnagF6EsO/Sm4F4sGoMhnHbNQVWlC8BK+Mlaw= 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-nfs@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