[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wjgUoZE3jq7Ynm=LtavYK6yZMboogwWtm1fGT1yqh7NoQ@mail.gmail.com>
Date: Sat, 18 May 2024 09:03:45 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Matthew Wilcox <willy@...radead.org>
Cc: Jeff Layton <jlayton@...nel.org>, Christian Brauner <brauner@...nel.org>,
Alexander Viro <viro@...iv.linux.org.uk>, Jan Kara <jack@...e.cz>, linux-fsdevel@...r.kernel.org,
Amir Goldstein <amir73il@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fs: switch timespec64 fields in inode to discrete integers
On Fri, 17 May 2024 at 22:23, Matthew Wilcox <willy@...radead.org> 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
Powered by blists - more mailing lists