ext4: how to guarantee the contiguous block allocation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have a situation that needs the contiguous block allocation from
application point of view.
For example, is there any way for ext4 to allocates the contiguous
blocks for my 128KB file write?

In the source code, mballoc seems to guarantee the contiguous blocks
allocation with the maximum of s_mb_stream_request, which is 16 by
default.
the comment in the source code also says s_mb_stream_request is
configurable by /sys/fs/ext4/<partition>/mb_stream_req.
If it works, I can set s_mb_stream_request to 32 for 128KB contiguous
block allocation in case of 4KB block size.

Thanks,
Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux