From: "Theodore Ts'o" <tytso@mit.edu>
To: Probir Roy <proy.cse@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: Locality of extent status tree traversal
Date: Tue, 7 May 2019 13:59:21 -0400 [thread overview]
Message-ID: <20190507175921.GD5900@mit.edu> (raw)
In-Reply-To: <CALe4XzYNBKhtcYvcuME0A29LvPuZEuirD3DLtHnffObRCUU8Rg@mail.gmail.com>
On Tue, May 07, 2019 at 11:12:07AM -0500, Probir Roy wrote:
>
> I am running Phoronix-fio benchmark on Linux kernel 4.18.0-rc5. I
> observe the same nodes have been traversed on the extent status tree
> in "ext4_es_lookup_extent" function when ext4 write begins. What's the
> locality signature of "ext4_es_lookup_extent" in general? Is it
> possible that same logical block being looked up repeatedly
> (Temporal)? Is it possible that co-located logical blocks are searched
> by ext4_es_lookup_extent (spatial)? Or is it totally random?
I'm not sure what you are asking. The ext4_es_lookup_extent() is used
as a fast map of an inode's logical block number to find the physical
block number (e.g., the location on disk). It's a cache; lookups are
fast, and is an in-memory lookup. Well, it's a little more than a
cache, it also stores some information for delayed allocation buffered
writes.
If the workload is a random read or random write workload, then
accesses to look up logical to physical block maps will be random. If
the workload is mostly a sequential read or sequential write access,
then the logical blocks looked up via ext4_es_lookup_extent() will
largely be sequential.
- Ted
next prev parent reply other threads:[~2019-05-07 17:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-07 16:12 Locality of extent status tree traversal Probir Roy
2019-05-07 17:59 ` Theodore Ts'o [this message]
2019-05-07 18:56 ` Probir Roy
2019-05-07 21:40 ` Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190507175921.GD5900@mit.edu \
--to=tytso@mit.edu \
--cc=linux-ext4@vger.kernel.org \
--cc=proy.cse@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).