From: "Lukáš Czerner" <lczerner@redhat.com>
To: Teng-Feng Yang <shinrairis@gmail.com>
Cc: linux-ext4@vger.kernel.org
Subject: Re: EXT4 data block allocation alignment
Date: Wed, 11 Jun 2014 15:03:59 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.1406111456110.2310@localhost.localdomain> (raw)
In-Reply-To: <CAKTMprNG5GzBQ1wmPhvCWzr3OKcsj8HCQ4f-mez_bSvw5D9f4A@mail.gmail.com>
On Wed, 11 Jun 2014, Teng-Feng Yang wrote:
> Date: Wed, 11 Jun 2014 19:44:49 +0800
> From: Teng-Feng Yang <shinrairis@gmail.com>
> To: linux-ext4@vger.kernel.org
> Subject: EXT4 data block allocation alignment
>
> Hi, folks,
>
> Recently I have been working on a small project which requires data
> blocks of each file to be aligned to 512KB/1MB boundary for
> performance reason. As far as I know, this can be accomplished by
> setting the stripe unit on XFS or enabling the "bigalloc" feature on
> EXT4. However, the "bigalloc" feature has not yet been stated to be
> stable in the latest release. So, this makes me wondering if I can
> achieve this block allocation alignment by setting the stride-size on
> EXT4. The document of mke2fs only says that this value may be used by
> the block allocator, so I am not quite sure what it can offer for me
> in this case.
Even though bigalloc will work like that it's just nice side effect
of that feature. But, yes it should work.
However please see mke2fs manual page. Ext4 also have options to
make allocations aligned (stride, stripe_width).
There is also "stripe" mount option, but you should not need to set
that it you set it on mkfs time.
Thanks!
-Lukas
>
> Any help would be appreciated.
> Thanks,
>
> Dennis
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2014-06-11 13:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 11:44 EXT4 data block allocation alignment Teng-Feng Yang
2014-06-11 13:03 ` Lukáš Czerner [this message]
2014-06-11 17:58 ` Andreas Dilger
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=alpine.LFD.2.00.1406111456110.2310@localhost.localdomain \
--to=lczerner@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=shinrairis@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