From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DF3C2798EA for ; Thu, 30 Jul 2026 20:49:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785444569; cv=none; b=bSbuPB0Uf7jvJf641kIBNt9tYe82wTNrwE3CE0m+uok8NpYHVt05oEPnkiZJBvqX5kiA61VLoc4Y/uiqIyTO2RjFgkQW0+svazL1qDVLBFpCIp2MhZ9rABTBA4Get/HY2jp/rPC6QHbtk5PMjkA0sTKS0thSUdoOv08MKNVBQfM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785444569; c=relaxed/simple; bh=AHj5iKPxjLBOIXTL2+StTfzdgS6fKwysuaXV1Ino2qM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BRhsiQMVPUplmH00runkWM1U1xHcMrVgU/e8f/n0RNl/yFlGVUWoj6uCkPO6guRi/5A610lAwxyDndvDrtdfoDCTOXCFSGjb/ypUloma/kR/VbFgkXf5XeeqW69ZRG8knDVP1NtN38OikdmquO4gyoXERv46Ilz3O/iff6ipzSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=HRGK3Dhp; arc=none smtp.client-ip=209.85.222.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="HRGK3Dhp" Received: by mail-qk1-f175.google.com with SMTP id af79cd13be357-930f72317a6so15743885a.3 for ; Thu, 30 Jul 2026 13:49:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1785444567; x=1786049367; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=azR+hkvo8cQmu5EseR5wH9M0hM5NW4S4o7e4N9bgAu0=; b=HRGK3Dhpp9s7eljVPHut9/mFKj4q3/pakwVOHfvmS+dLydi7z2SjGBBHZ3bZkoWlxf 3nD4kyYDUfQq4DKExbVG4jOd8WLyIR2gV2KRx+wnRoxk/r0fUURyBTUDgcGMxrs4Whqu TiogT5YPHsRSlkBVc9Wo3+7UNSSdXE3C8Mzyy90uzUFlDD1H3/GdlXejcnXh4FNRXmSa mwd4k30/HVj2ogScZkT2MFjomWyYe7FruVCbPB4n2M70AvgkZZ9x4m39FZr3drdMedPm +OqFvnwN7xHkTDLV8lPnb/pHGpZ6W6AyBnXJ5z51FeWKQLcdhtzeod0UB1QbW0Tx9JBv wfqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785444567; x=1786049367; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=azR+hkvo8cQmu5EseR5wH9M0hM5NW4S4o7e4N9bgAu0=; b=LFj9ZI3o94a9wdMxpQ48fvAfviCfJiX7otssq3DmGyzguRkR/GK5Ok8Psvmxv1Z84f xhicTjyOgrS6o0aJ8Y0t67RXitzFCV3bAwJflrYqhMW+NEGktjX6/ZDgmaJEKKBQ2o1J 8CUuCE5tAAq9Qt7pMbSzK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be357-9348dc4ea66mr225698085a.89.1785444567383; Thu, 30 Jul 2026 13:49:27 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-60-52.washdc.fios.verizon.net. [173.79.60.52]) by smtp.gmail.com with ESMTPSA id af79cd13be357-933d325ade8sm489716185a.12.2026.07.30.13.49.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jul 2026 13:49:26 -0700 (PDT) Date: Thu, 30 Jul 2026 16:49:24 -0400 From: Gregory Price To: Johannes Weiner Cc: Frank van der Linden , Yiannis Nikolakopoulos , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andrew Morton , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Trond Myklebust , Anna Schumaker , Zi Yan , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Ying Huang , Alistair Popple , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Brendan Jackman , David Rientjes , Davidlohr Bueso , Fan Ni , Jonathan Cameron , Raghavendra K T , "Rao, Bharata Bhasker" , SeongJae Park , Wei Xu , Xuezheng Chu , Yiannis Nikolakopoulos , dimitrios@palyvos.net, Ryan Roberts , Huan Nguyen , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Alirad Malek Subject: Re: [PATCH RFC v2 0/3] Demote to lower tier using non-temporal stores Message-ID: References: <20260730-rfc-nt-demote-v2-0-452dbe3b5073@zptcorp.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Jul 30, 2026 at 02:08:56PM -0400, Johannes Weiner wrote: > On Thu, Jul 30, 2026 at 10:40:32AM -0700, Frank van der Linden wrote: > > On Thu, Jul 30, 2026 at 10:30 AM Gregory Price wrote: > > > arm64 already seems to use stores with NT hints by default. > > > > In general, though, I agree that for ASYNC requests, just always using > > NT seems fine. > > > > Maybe the mode and reason should be folded in to one variable, so > > that, further down the stack, a decision can be made as to what type > > of copy to use? E.g. if the mode is !MIGRATE_ASYNC and the reason is > > MR_DEMOTION, then non-temporal is still a good choice. If the mode is > > MIGRATE_ASYNC, NT is still a good idea. If you wanted to get fancy, > > any mode with folio_test_waiters(folio) == true should not use NT, > > since a task is waiting to use the data, so caching it is better. > > Maybe that's overthinking it. > > Agree. `reason' seems like a much stronger signal. I think this ends up cleaner as well, it would be a nice improvement. ~Gregory