Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1286044rdb; Fri, 20 Oct 2023 14:05:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvdcDMaWTN3jwssL2nR9kdTPkCSRU26CSuLTlVIkshWKyT4vB6X4O+tQzQeCwVHiuDc2IA X-Received: by 2002:a17:90a:d996:b0:27d:4ab9:fcd9 with SMTP id d22-20020a17090ad99600b0027d4ab9fcd9mr3188342pjv.21.1697835917776; Fri, 20 Oct 2023 14:05:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697835917; cv=none; d=google.com; s=arc-20160816; b=B4fE4B2S39A9sB5wYNRA5VXqpnmKosic59J0a0pPT7QN+XNVYubQPbBB4eAUlo8EcQ rk9Z++jveRADkS0Wn4qGnjeC9ZkpgVy2u0xvCSUVvuB0EmLDjNyxYetFlCpHyoMxd1qY les/27oBYDIkF4ZOtE4mW8BZgK75zHA6riJqgCrNGJQyuTaHdnno+CCzdvuI1XRuUeta gp1vaewbQk37XVfd+YpNATyxiWezu0/WV4BRMNRlcHrMo4GyeBoxKRHO6IMl1hmUpQUD VZWfuBfVHpsOQ9I3LI/lA32wdRwif4ud/68oNn47HNhooXhF9ZmXq/0Ehgf0goYxrsUr 1VjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=Elxhk2Dpng0QYormybPqQvqGrljIJdvhIjHnQugf8Aw=; fh=VkH1C3SgF7GPmIVFjOJTmnYX0jIPGZkzWy1N+ZO+JyE=; b=xt4/+FaNuPmrZNflXwo+9vgY+wRe7a2tEEfEt9P8ACwwtJI693sDIqkwjXclLQxix0 4b6pOjI9rXbqqurbwPRfcMTXQCN6FUIUZOaxtJFSLpHaYBTlLflcAI/Z2l5msxU79Gx7 Y9cZy/al26aFxheuESfuBYn/MZa7HZlhO4W4YuR78Frbc5q3iPyCDiyjIecizQ+zPf47 FSXgU2g+qFFw4BlQp3ShcWll/MJuLd0tmSH+7FAKlmUPMDJuxqn5N/0TOtm9LdXPlkFv CukXPD+5pQhKpqC5DGVHlbDvM53z8CCYyXkyQfjSfbHefQyomi50pAfhn8pTcQFEmDGC 2UtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CxRn5Wen; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id s10-20020a17090a948a00b002773cc10d3csi4898176pjo.78.2023.10.20.14.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 14:05:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CxRn5Wen; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A3B2483D9B65; Fri, 20 Oct 2023 14:05:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229704AbjJTVFK (ORCPT + 99 others); Fri, 20 Oct 2023 17:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229555AbjJTVFJ (ORCPT ); Fri, 20 Oct 2023 17:05:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9EB7D60; Fri, 20 Oct 2023 14:05:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4056BC433C7; Fri, 20 Oct 2023 21:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697835907; bh=Elxhk2Dpng0QYormybPqQvqGrljIJdvhIjHnQugf8Aw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=CxRn5Wen+tHmFyOjC5cErUb4FjXC/5aXJGY8YCKssgsr8mHrQ6FS4MqWkmUwlKa6O njiflYbjExbJJ4hmFju1xJi01RSXH4oemQqyQNGsTjbV2jEbsCLpu0+CEzMhSS+kPH qLHZGbGZ8re9P6Mgpk/IcJ+27RzSwckdZHUhZxagACHPGeIYfBcWITdudsTDqALdUx t9SSVavuWrkfW5vhC/g9L5WemB+jWjWlxzfHH6aYJ2P8WmEgK7zAe1adYDuOtMOzR1 XwX2fAnz3V3D2eIBCalnWQDUdtWsh4JzFqOf3ISEKtU+d7C9zwH90UOwNXGOhznsYN Cmm9MoAgXB2qA== Message-ID: <301d4acd4dd208239c00cec196d1c26c6bcf1a91.camel@kernel.org> Subject: Re: [PATCH RFC 2/9] timekeeping: new interfaces for multigrain timestamp handing From: Jeff Layton To: Linus Torvalds Cc: Dave Chinner , Kent Overstreet , Christian Brauner , Alexander Viro , John Stultz , Thomas Gleixner , Stephen Boyd , Chandan Babu R , "Darrick J. Wong" , Theodore Ts'o , Andreas Dilger , Chris Mason , Josef Bacik , David Sterba , Hugh Dickins , Andrew Morton , Amir Goldstein , Jan Kara , David Howells , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org Date: Fri, 20 Oct 2023 17:05:03 -0400 In-Reply-To: References: <20231018-mgtime-v1-0-4a7a97b1f482@kernel.org> <20231018-mgtime-v1-2-4a7a97b1f482@kernel.org> <5f96e69d438ab96099bb67d16b77583c99911caa.camel@kernel.org> <20231019-fluor-skifahren-ec74ceb6c63e@brauner> <0a1a847af4372e62000b259e992850527f587205.camel@kernel.org> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 20 Oct 2023 14:05:13 -0700 (PDT) On Fri, 2023-10-20 at 13:06 -0700, Linus Torvalds wrote: > On Fri, 20 Oct 2023 at 05:12, Jeff Layton wrote:. > >=20 > > I'd _really_ like to see a proper change counter added before it's > > merged, or at least space in the on-disk inode reserved for one until w= e > > can get it plumbed in. >=20 > Hmm. Can we not perhaps just do an in-memory change counter, and try > to initialize it to a random value when instantiating an inode? Do we > even *require* on-disk format changes? >=20 > So on reboot, the inode would count as "changed" as far any remote > user is concerned. It would flush client caches, but isn't that what > you'd want anyway? I'd hate to waste lots of memory, but maybe people > would be ok with just a 32-bit random value. And if not... >=20 > But I actually came into this whole discussion purely through the > inode timestamp side, so I may *entirely* miss what the change counter > requirements for NFSd actually are. If it needs to be stable across > reboots, my idea is clearly complete garbage. >=20 > You can now all jump on me and point out my severe intellectual > limitations. Please use small words when you do ;) >=20 Much like inode timestamps, we do depend on the change attribute persisting across reboots. Having to invalidate all of your cached data just because the server rebooted is particularly awful. That usually results in the server being hammered with reads from all of the clients at once, soon after rebooting. --=20 Jeff Layton