From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE36BE7717F for ; Thu, 12 Dec 2024 19:14:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 68D306B00A3; Thu, 12 Dec 2024 14:14:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6165A6B00A4; Thu, 12 Dec 2024 14:14:29 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4B7026B00A5; Thu, 12 Dec 2024 14:14:29 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 2D3786B00A3 for ; Thu, 12 Dec 2024 14:14:29 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id ADEABA0827 for ; Thu, 12 Dec 2024 19:14:28 +0000 (UTC) X-FDA: 82887257250.06.3B58F7C Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by imf01.hostedemail.com (Postfix) with ESMTP id C5EA44000A for ; Thu, 12 Dec 2024 19:14:07 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=2eIlIeOP; dmarc=none; spf=pass (imf01.hostedemail.com: domain of axboe@kernel.dk designates 209.85.166.50 as permitted sender) smtp.mailfrom=axboe@kernel.dk ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734030843; a=rsa-sha256; cv=none; b=KPbmV4vCTgmUssZa1t2A/mygvv/a7z1cVUsvJ5CAUymlJduUru/1Hf8MXp6/pynjxh3zHr nTNehbx1Ftc91ePy3aoJIgHPwqN8rKGtCgXOzlFHrMPlOkguAYJh26TyCq53OvlnYoFZzX CSV6wvv8I5HPTfn8HyIgiGQ0Q32ZWxs= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=2eIlIeOP; dmarc=none; spf=pass (imf01.hostedemail.com: domain of axboe@kernel.dk designates 209.85.166.50 as permitted sender) smtp.mailfrom=axboe@kernel.dk ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734030843; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=P71yijEvoyRvd06GWA6PrfgjeJ3IYLqfiQZ66UscmdE=; b=ewcvV1BBbmSvI8qe6NUWFB5aXrmoj5VOTXhxMohWYYrP5bxEfHrbR7JyILcLvDWRf2XIl5 I7pKBBZHk/BFn4ipZ/nnWiM8DFm1TKHlQg5Sa2AhNOJFn9APXOU/8CK4OAiCAES4pzDBfV +kyyTYgW/rgMhk0iHYotDRRJUet4ewM= Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-844e161a8b4so26927039f.0 for ; Thu, 12 Dec 2024 11:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1734030865; x=1734635665; darn=kvack.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P71yijEvoyRvd06GWA6PrfgjeJ3IYLqfiQZ66UscmdE=; b=2eIlIeOPVp04cHVCywjUPUTOr5a/d/hz2lqLm+hNW0YrlRo6/SKQz/yHPOFTAZh3OB 5D/NAAjl4mNVP1HzIv7ALvh8Oo/r8trsuFKFp1nMq1c2wGEMI9pTVDtfp/O78/3laCGi rS9ogfC+Yvdam933Z3Hipe/Vt01iDzwT86QB/Ijc/Rz0qKr212uIzBMzOduJk0trZ/Cf QDHwzxfU/gkys+ftk0NAxrsp/e7bLC/Edd2lV+S9TfBtj2ARunKelRPnxl4NT5WT8DTz 8gDwXZ451qGZfoSg26lg0/BFlxMet4nRoCO9kQ3N/BlFT6SxvUjb0rVtqdc9Lef5djf3 +Z2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734030865; x=1734635665; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P71yijEvoyRvd06GWA6PrfgjeJ3IYLqfiQZ66UscmdE=; b=qcY+lv0TZ7VtU5Byx3FD1dJuIfev9xpVQ0Q7MwiXV7RHdboNNFIcxM1p4cV/i/QSen lI4aTkcCxSPzeIfQWSJb/ipmCizvOiyCjfHWE2sVAOyoj8oBMprf1egjmvXMJ4gYSps5 jQt9J9gQEJeQoesrQSvUbAMQxwA6bXkJ0mgbYnRVLinaboCp4xJrQUbSoNrxm4KXw9MS kUsrAwbErmfKVgZZbLZwmttsJBCgIgL/cy2FEd4qYs3PH5rwyFShYqlk2WNjfDGoRvSA W8DxcHWUn+Cxvaa2F4OiWA6fTlnZCrjrXz0GrbNkvE+ccJchxV5CozsDnB8W0Q3H6oS/ dYhw== X-Forwarded-Encrypted: i=1; AJvYcCXbrk7Wnlg/czHeTEWO1UM3fic2igZUfpIP7CXIliuY0f+x8bWFSdynjUmdV+RjaEtzWkl8LWv/TQ==@kvack.org X-Gm-Message-State: AOJu0YxURnJdCC0c6JN8d17OuMRw08FWjoMi6cRDu+A8Sd5U5+FVwBj3 7GqsIZI8P1AyMuJ4lETAJMmq9T/dVp2klBrg6ONm5T5phI9MlUSNPSpKKQXL1zM= X-Gm-Gg: ASbGnctUiCgqYpEJmuN79uR+Ui57N5eff6RvYkUeuJiB1kXwsEB4WfyStP72KMYzGN4 g3y15WgHXMrc1T4Z7YFk4t28MwhuBJyi+b0o0qgNvUh8wvKin5iiVCpMu7Klt0FVC5qAPHeCWng 7f4o2uBQtqCP8fY1DRGC+7GaVIU0dpF2CK7K4I4wmmLjdpr1Ivf4b0gTgA8Zyk+UQniMFH8xwH/ lO2JTaPiWPPtNbgDSjgL10ZsuQzpWZetykcq7nqV92/XtwksjEd X-Google-Smtp-Source: AGHT+IH7GBfExI9wU+7qWQ3YTNxevsUxlvzl9LcEv9ut7SVSJCkeqJHQFqGroUa4jGgptMxzux+NqA== X-Received: by 2002:a05:6602:485:b0:843:daae:e16d with SMTP id ca18e2360f4ac-844e8822360mr3443739f.6.1734030865486; Thu, 12 Dec 2024 11:14:25 -0800 (PST) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-844d3d47507sm76877839f.27.2024.12.12.11.14.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Dec 2024 11:14:24 -0800 (PST) Message-ID: <383d3adc-e939-44b2-9110-4db9b4477401@kernel.dk> Date: Thu, 12 Dec 2024 12:14:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHSET v6 0/12] Uncached buffered IO To: "Christoph Lameter (Ampere)" Cc: Christoph Hellwig , "Darrick J. Wong" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, hannes@cmpxchg.org, clm@meta.com, linux-kernel@vger.kernel.org, willy@infradead.org, kirill@shutemov.name, bfoster@redhat.com References: <20241203153232.92224-2-axboe@kernel.dk> <668f271f-dc44-49e1-b8dc-08e65e1fec23@kernel.dk> <36599cce-42ba-ddfb-656f-162548fdb300@gentwo.org> <20241204055241.GA7820@frogsfrogsfrogs> <04e11417-cf68-4014-a7f7-e51392352e9d@kernel.dk> <2f79ff03-48ee-54bf-b928-e9519b3edfc7@gentwo.org> Content-Language: en-US From: Jens Axboe In-Reply-To: <2f79ff03-48ee-54bf-b928-e9519b3edfc7@gentwo.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Stat-Signature: qms7e7adqw95dfqxt8hp83637oarxobu X-Rspam-User: X-Rspamd-Queue-Id: C5EA44000A X-Rspamd-Server: rspam08 X-HE-Tag: 1734030847-488586 X-HE-Meta: U2FsdGVkX1+e6aCOyuSOLzYCGYi0yw2u/BwmmQB4+CJlduB33l+/WJ7Xs+txq6cAEfZUsRRahj3G/qXHwj9TO/Vg7P/QfyUhCDyU26P2VZpqT7vWdF2yvwKC+e+Z4AmQ/K+vmsieAgrjPxhjD8Tun2OPgyU04ltWzxhroC+eKgKCzxLpernmuN2cf2lTdZhppmXdd2DPDBj+6WdXQcyX+XREKc9LGJ/hzMWk/7ZjOAoLcMVcb8KxbpmX2fq2b8fwks9CkoKey2tO97052iN5ndgSUz2e0NUPoz8Pf+sEYkT4pDh1Ocuv8xAb5tP3qn+UHCcuh2RFpwJaNUUUDPkGY64ZHKnSjdjVktTT4qJ3eQp+5grvn4qLSg7Z8Z8y3sJwKOtS2yYhZOgUZW/hOpybGaJ3VljYVtSft+4015NaPsf/4yRpEDbzUdmNtYmeP2C4j1I1rHs30ObJjHUneXuloSKJNjrt7zx6uPDic3eKuYERqGfEBsTC7q3nR5vzJw1VHDX814l+b//1D3d2dMIekPEDwDxwPt9WlTYUrJRlJrTHxJKorapD5J84KPx75Amu8PqPm+Jil38AVzcFQQmMZ0OeX26FZw87PQjPNQcabYhOly7pdR5bXsKFIWxNeqseDfMVQQu5NsBXENIZFTbklW5d6Gc18LWYzWrlbSdeSpBJ+Qhq0D796MH9icuaMzjYBnxtAejhOZ4MPo6LeC4GlFSj7CYM4F6NooJsugGNQ01EaU8Ptkck3bxaN05xJn3/PoaK2DdyIMyPhvAW6XBVmxfpp3EG53fAWD+/U7Gr2cixioeDZ70VRYetLotwrWQhg4Sp80GfpCHL4lD4HfRdljxaw4hetmlUMx4WBa4uulY07feg6gMJvzP252AT31vpMySxRgFipFym0jd2r3KXK0AkelQJVFPYVnNuzqfqF6RHKUFn+XYvqKUdXuUCsKUUpn4hqLvQKpGikZvVQMT tXrKCOWc WXv9xl9/RM+aaBF7A4hpZz03ZeTzIzUIABPGEcnskPyqZ8mTeqlyDF60dui4pgBvPz3uSJlW0ptr9N4AkpBILd0LHmObRmihHp3YP7XcLcbXILcPv0mSN7ugVBQxkEIGEpRGWCitnfkCdIUlLCRtn78+qjOtqN+L48wf4SU1Q6edNFJuJzPUiEnFJGEXtvGlEaF/7AyhPBIV+No9ZZU1atpllUc1k2ZKUjOwDpyh2ZL/vakfdDcEx2qoyepaR0ztPu1FrFW50vxOBbYAatatVyC5yPU22BCKNvgVB4XbyQl7yLXQmAx+o6/pp3BWn2pKcDUYhDpCPhuo90hhrKcvvSq8/uvby+9Ow902b X-Bogosity: Ham, tests=bogofilter, spamicity=0.351861, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 12/12/24 9:59 AM, Christoph Lameter (Ampere) wrote: > On Thu, 12 Dec 2024, Jens Axboe wrote: > >> On 12/10/24 4:11 AM, Christoph Hellwig wrote: >>> On Tue, Dec 03, 2024 at 09:52:41PM -0800, Darrick J. Wong wrote: >>>> RWF_DONTCACHE, to match {I,DCACHE}_DONTCACHE ? ;) >>>> >>>> They sound pretty similar ("load this so I can do something with it, >>>> evict it immediately if possible") though I wouldn't rely on people >>>> outside the kernel being familiar with the existing dontcaches. >>> >>> FYI, another word for dontcache. uncached just has too many conotations >>> in the kernel context. >> >> Sure, we can go with DONTCACHE instead. Only thing I don't like about >> that is that you can use uncached as a verb and adjective, eg talking >> about uncached IO. Talking about dontcached IO sounds pretty weird. >> >> As I've said previously in this and other threads, I don't feel too >> strongly about the in-kernel naming, I care more about the exposed >> name. And uncached does seem to be the most descriptive and most >> easily understandable by users. > > The page is cached while the operation is ongoing. "Transitory" would be > more accurate and it is a new term that was not used with pages before. Like I mentioned earlier, the fact that it's cached for the duration of the operation is more of an implementation detail that developers need not worry about. What's important is that it's not cached AFTER. I still feel UNCACHED is the best description, but I'll change it to DONTCACHE for the next version just to avoid the overlap with other in-kernel uses. -- Jens Axboe