From: "Theodore Ts'o" <tytso@mit.edu>
To: ValdikSS <iam@valdikss.org.ru>
Cc: linux-ext4@vger.kernel.org
Subject: Re: ext4lazyinit reads HDD data on mount since 5.13
Date: Mon, 9 Aug 2021 14:26:32 -0400 [thread overview]
Message-ID: <YRFzWGkBOHcugxGD@mit.edu> (raw)
In-Reply-To: <c984528b-03ce-f9e5-2cf2-4ae92e812367@valdikss.org.ru>
On Mon, Aug 09, 2021 at 10:43:08AM +0300, ValdikSS wrote:
> On 09.08.2021 04:51, Theodore Ts'o wrote:
> > It's a new feature which optimizes block allocations for very large
> > file systems. The work being done by ext4lazyinit is to read the
> > block allocation bitmaps so we can cache the buddy bitmaps and how
> > fragmented (or not) various block groups are, which is used to
> > optimize the block allocator.
>
> Thanks for the info. To revert old behavior, the filesystem should be
> mounted with -o no_prefetch_block_bitmaps
>
> Is it safe to use this option with new optimizations? Should I expect only
> less optimal filesystem speed and no other issues?
It's not been tested, but it should be safe in terms that it shouldn't
lead to any file system corruption or data loss. However, it may
result in non-optional block placement that might cause more file or
free-space fragmentation that might otherwise be the case. (This was
true even before the latest optimizations, but it's more the case with
the new optimizations.)
Can you say something about why you want to disable to block
allocation prefetch? How is it causing problems for you?
Cheers,
- Ted
next prev parent reply other threads:[~2021-08-09 18:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-08 22:13 ext4lazyinit reads HDD data on mount since 5.13 ValdikSS
2021-08-09 1:51 ` Theodore Ts'o
2021-08-09 7:43 ` ValdikSS
2021-08-09 16:18 ` harshad shirwadkar
2021-08-09 18:26 ` Theodore Ts'o [this message]
2021-08-09 19:34 ` ValdikSS
-- strict thread matches above, loose matches on Subject: below --
2021-08-08 22:51 ValdikSS
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=YRFzWGkBOHcugxGD@mit.edu \
--to=tytso@mit.edu \
--cc=iam@valdikss.org.ru \
--cc=linux-ext4@vger.kernel.org \
/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