Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually some file systems are capable of storing the file contents inside slack inode or directory entry space, for files that are very small.


True. There are also things like UFS fragments and ReiserFS tail packing etc, but does plain ext3 or ext4 implement any of these optimizations? I don't think so. So in the most common case nothing is gained by this optimization.


It looks like support for in-line data in ext4 is comming to mainline in 3.8:

http://www.phoronix.com/scan.php?page=news_item&px=MTI1N...

As this has been discussed for quite some time, I actually thought it was already enabled in ext4 -- apparently not.

BTRFS supports "space efficient packing of small files" - by suballocating blocks. Not sure what the real mimimum size on disk for a file is though -- but apparently you can approach header+<data> size both on btrfs and ext4 (and on BSD under UFS2 afaik).




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: