From: torn5 <torn5@shiftmail.org>
To: linux-ext4@vger.kernel.org
Subject: Ext4 allocation strategy
Date: Fri, 12 Aug 2011 15:47:00 +0200 [thread overview]
Message-ID: <4E452ED4.9000307@shiftmail.org> (raw)
Hi all,
I can't find info on the ext4 allocation strategy, while this would be
useful to me to understand ext4 performance implications when I put it
above complex layers of RAID and LVM.
Just to be clear, i'm NOT talking about the delayed allocation thing.
XFS has the "Allocation Groups" which are relatively well described, for
ext4 I don't know what to look for. And I also can't find an application
which gives me a visual map of the ext4 allocated blocks in my
filesystem so I cannot easily "inspect" this by myself.
So can you tell me something?
In particular, does ext4 start from the beginning of the partition and
goes upward filling the earliest free spaces like it was for the old
FAT32, or does it try to spread allocations evenly on all the LBAs
available to that partition, e.g. by bisecting the largest free space
every time? Suppose some time passes from one file creation to another.
And how does it behave if it has to create zillions of small files
simultaneously (multithreaded application): where does it place them?
Thank you
next reply other threads:[~2011-08-12 13:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 13:47 torn5 [this message]
2011-08-12 22:18 ` Ext4 allocation strategy Benjamin Peterson
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=4E452ED4.9000307@shiftmail.org \
--to=torn5@shiftmail.org \
--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