2013-02-20

Measuring the disk occupancy trade off of the new ext4 filesystem inline data feature

I just made a script that outputs the ratio of your files that would fit a single inode for the different inode sizes you can pick.
I also calculate the ratio of empty inode space resulting from it.
For example:
sal gbin # tmp/ext4-inlinedata-calculator.py /
Exploring / ...
Read 100000 files ...
Read 200000 files ...
Read 300000 files ...
Read 400000 files ...
Read 500000 files ...
Read 600000 files ...
Read 700000 files ...
Read 800000 files ...
Read 900000 files ...
Read 1000000 files ...
Read 1100000 files ...
Read 1200000 files ...

== Results ==

Total file size 86,349,718,552

Inode size              files fit in            wasted inode space
256                       8.58%                     0.18238546%
512                      17.00%                     0.21792866%
1024                     28.70%                     0.37268423%
2048                     46.95%                     0.93313261%
4096                     61.89%                     2.61721947%
Enjoy !

No comments:

Post a Comment