News: 0001489416

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

F2FS Inline Tail Allows For Saving Space On Small Files & Reducing I/O

([Linux Storage] 5 Hours Ago F2FS Inline Tail)


Patches posted to the Linux kernel mailing list today allow for inline tail support within the Flash-Friendly File-System (F2FS). This inline tail support allows for saving space when storing many small files and with reduced I/O can lead to faster data copy times.

Wu Bo posted patches for adding inline tail support to the F2FS file-system. This feature is explained as:

"The inode in F2FS occupies an entire 4k block. For many small files, this means they consume much more space than their actual size. Therefore, there is significant potential to better utilize the inode block space.

Currently, F2FS has two features to make use of the inode block space: inline data and inline xattr.

Inline data stores file which size is smaller then 3.5k in inode block. However, for slightly larger small files, there still have much waste. For example, a 5k file requires 3 blocks, totaling 12k of space, which is more than twice the size of the file itself!

Additionally, the end of a file often does not occupy an entire block. If we can store the end of the file data within the inode block, we can save an entire block for the file. This is particularly important for small files.

In fact, the current inline data is a special case of inline tail, and inline tail is an extension of inline data.

To make it simple, inline tail only on small files(<64k). And for larger files, inline tails don't provide any significant benefits."

The end result with F2FS inline tail? Wu Bo found the inline tail support when copying a source code archive of the Linux kernel that the storage space was reduced by about 8% while the copy time was reduced by about 10% thanks to reduced I/O needs.

This F2FS inline tail support is looking quite promising and is now under review on [1]the Linux kernel mailing list .



[1] https://lore.kernel.org/lkml/cover.1725334811.git.bo.wu@vivo.com/T/#mc86211fec01548dc9fe9ddb39777283c8f9ced67



back2未來

> The day people think linux would be better served by somebody else (FSF
> being the natural alternative), I'll "abdicate". I don't think that
> it's something people have to worry about right now - I don't see it
> happening in the near future. I enjoy doing linux, even though it does
> mean some work, and I haven't gotten any complaints (some almost timid
> reminders about a patch I have forgotten or ignored, but nothing
> negative so far).
>
> Don't take the above to mean that I'll stop the day somebody complains:
> I'm thick-skinned (Lasu, who is reading this over my shoulder commented
> that "thick-HEADED is closer to the truth") enough to take some abuse.
> If I weren't, I'd have stopped developing linux the day ast ridiculed me
> on c.o.minix. What I mean is just that while linux has been my baby so
> far, I don't want to stand in the way if people want to make something
> better of it (*).
>
> Linus
>
> (*) Hey, maybe I could apply for a saint-hood from the Pope. Does
> somebody know what his email-address is? I'm so nice it makes you puke.
-- Taken from Linus's reply to someone worried about the future of Linux