Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1576809lqo; Sat, 18 May 2024 09:04:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXChR/1Z2zYYoomj0+CzML90kueebbLuds6WNGf7iN8dT2llg/h9q4bXU0FwJLY5GPVY0m0tu0NxlZCu3TSIKPelciomTqBoS2FTuhgw== X-Google-Smtp-Source: AGHT+IHlP+Uoux8puHHtFI5CHzA0Y32IZiNYlrrFAxLAjIy+byr+2lKn6SnPPL/dLT0keGJXkWoH X-Received: by 2002:a05:6a20:9155:b0:1ad:3d93:b71e with SMTP id adf61e73a8af0-1afde238dd5mr27182090637.59.1716048257544; Sat, 18 May 2024 09:04:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716048257; cv=pass; d=google.com; s=arc-20160816; b=SPnsCw6iOiy0x8hbzY0lMpyJHED+8iM2rQl1l9894aeK7Sp281GWLbbB4BEmm/IjHk nTU1uGl6IJMngg0sXEbaOsBcuRDYjzps15FrapTLMfmtnTS8BOppGM6X/wt558yIIpnc 7mrlh+r68JeMHStmJ2IxuQFv7efiDT6e4e7zHOTAoplpE+ebNJ8ZvgAjORvvMc0qT4Z9 qAXlQChHdWLYKXrXpX5FI6AacuyhcCF/PNRn9th6OSZg3NmoLweTBlORdbZl5A/MFtUv NOvPp1qKnTNTXg7qHH0O6gQTH4MND2svaF1Fa+OwsAdkqpH7f/VnomEbGUSgl6dFzllm DlPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=bja8TUJ/IH7hcTFRn8iIOtWUsJ2yx+Ps2lUDd47zm7I=; fh=DBeP2t8uXz1pikyW+5STZ0I3dlJKFrl4LyR0e3smJ9o=; b=rVpDhWHXZWWrkp6zYiYLLqFDWiewtI8t/zQ9gDLG9JBSYzJo4korwsrMBjiz52qx8+ A6w5KlYu8RgJIZpyXEyw5/Hp2FpRJP060l9xB/4v0bGW8gK1BNhFS3R2SCWMaXhvNvNq 9OFxEBx3pOm65ghgOCgTc97CfLaaz2cik4NWl7U1Ms3p/gPl5w0EKEX5oFb108uAT550 BHok4tWj8ffShsZTqrodQcWqvtL42afASWPhhQSmO7Jd9yyvfKuCG6rxem+cVnsrK3Et MhilDUogrjuMSw1AjM4ITYD0GtIbUuLFaYS+SbSJknPRt+UgYKOCeIrAredr0pWIA/df mw1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NnFE5aUi; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-182910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182910-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4efdb45bdsi16144221b3a.365.2024.05.18.09.04.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 09:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NnFE5aUi; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-182910-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182910-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D4CC7282FA1 for ; Sat, 18 May 2024 16:04:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B351046B9A; Sat, 18 May 2024 16:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="NnFE5aUi" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 1E00979DE for ; Sat, 18 May 2024 16:04:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716048246; cv=none; b=IJxRA34q0+XcjIOPSqGpKFt7QVwd2+XoUATHUwzruTuC8pieBA1G4N1u0ahc4rdQInsU4CbGV1Xef3RdWzvmF5FP6TQxtKgZQ4Y3ktpo5LU6T4RqWibSsQskY2X2hUnsXwhrVm0tMgkPd5HnOxoJqWsQvKpnH/dPNxifz66+x64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716048246; c=relaxed/simple; bh=sdPZlTrMpKd5RBdiT5A3YpoFv8oJpNHx4WvhcPbtetc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PpLHklE7hRKu4q/6KReOWw+LRCrsYyy2nfovYzqurBEd++sebjLfA5XJVfx8TtFz3godaXzseoglgtYl6y0yfSfJLmWgIBH35GwtNiJ33ME5fQmp0YKHqtxumLKUw/vuI4/h1H0qWNoOWZuYNlXO7nyxlJEWxQC/PpHaEtUVr7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=NnFE5aUi; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-5238b7d0494so1985335e87.3 for ; Sat, 18 May 2024 09:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1716048243; x=1716653043; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=bja8TUJ/IH7hcTFRn8iIOtWUsJ2yx+Ps2lUDd47zm7I=; b=NnFE5aUi6IxSwXT4Agf549RoUt6cEn+0a03YrJpupOkgUgPnKiLZZJaWrvR/wlbHuT mgjXyhB9cYPECdHegmn3LnygoTSFtCqm4s0KhB53dWp4grLQmRsFkSHHD+M/ea5vwPaA T/1lbXloO/v8uhWqEXzqtfudMB6lGNm0UtHMM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716048243; x=1716653043; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bja8TUJ/IH7hcTFRn8iIOtWUsJ2yx+Ps2lUDd47zm7I=; b=j7CPubKqU9ydrIfh2xllAKOQ1zElGJg0Y5LrRCgali1XgrWt5Ah90haE6KssPkKvWv Bv7sKGhMqJ0LV1VFvTe2/R5IMMoeV2aOYJW8SfDw3UwOR5eo6HD0sKxENck9PijXkmTF mPJ7LBfYC2WAlPBkPKHYRCQgoMnpFL2mfsDRjNvxcED7EhSfjGplhMivGLSjsPk96B7l /oPl4t4KNgOj/wr3oZRQDMinRpOl4PyQ6OwUjGhEqCk7sedgx5Ver/BLCptytJnTjODo L5y/K+ySK1Ctbgcec4NfPWVpR7NN3g90QFp0iiWCN8hZVcrxrDeOGrjuMkW01MlbS4aH nLzw== X-Forwarded-Encrypted: i=1; AJvYcCUdsje0WOXZ5FQLVLdow09i2s68gv+QXJxZvZR2PfQarVDIMJ174rPciTds/06fnCa1mssZqP5NgtpgbQIirxUjanSnqfE5Jg+kEcsr X-Gm-Message-State: AOJu0YxV2cqaGLN5yzs2KhW62xBtsK7vttW3ILthcPdLY49yLyCBbRgR ihYE/T4J+ZtSJmtPxzxGGrYfvPaxmNthsuTVMJ5/uzD2SC1pUnanv3TYuMWe/GNvDFqr1VbYkBs UT5ScMw== X-Received: by 2002:ac2:550a:0:b0:519:611f:df49 with SMTP id 2adb3069b0e04-52210277efbmr18844828e87.69.1716048242992; Sat, 18 May 2024 09:04:02 -0700 (PDT) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com. [209.85.218.54]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5750d5f21d6sm3083971a12.18.2024.05.18.09.04.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 May 2024 09:04:02 -0700 (PDT) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59b81d087aso526579066b.3 for ; Sat, 18 May 2024 09:04:02 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXruE5YWw8zI6V882JZ+RsqYdfvt69r3fi9H2DyTzS9FTHPApL3KdhY/vW4wFoP+SvEt01J/Lkq2UV+cjPNdORUIxFk8qdCnZKhmoxd X-Received: by 2002:a17:907:3601:b0:a52:6159:5064 with SMTP id a640c23a62f3a-a5a2d65ecffmr2903561466b.52.1716048241811; Sat, 18 May 2024 09:04:01 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240517-amtime-v1-1-7b804ca4be8f@kernel.org> In-Reply-To: From: Linus Torvalds Date: Sat, 18 May 2024 09:03:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] fs: switch timespec64 fields in inode to discrete integers To: Matthew Wilcox Cc: Jeff Layton , Christian Brauner , Alexander Viro , Jan Kara , linux-fsdevel@vger.kernel.org, Amir Goldstein , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Fri, 17 May 2024 at 22:23, Matthew Wilcox wrote: > > Smaller is always better, but for a meaningful improvement, we'd want > to see more. I think one of the more interesting metrics for inodes is actually not necessarily size per se, but cache footprint. A *lot* of the inode is never actually touched in normal operation. Inodes have all these fields that are only used for certain types, or perhaps only for IO. So inodes are big, but more important than shrinking them is likely to try to make them dense in the cache for normal operations (ie open/close/stat in particular). They cache very well, and actual memory use - while still somewhat relevant - is less relevant than cache misses. Linus