Fedora 16 to use Btrfs as its default filesystem
Fedora 16 to use Btrfs as its default filesystem
Posted Jun 10, 2011 20:14 UTC (Fri) by MisterIO (guest, #36192)In reply to: Fedora 16 to use Btrfs as its default filesystem by masoncl
Parent article: Fedora 16 to use Btrfs as its default filesystem
Posted Jun 10, 2011 20:34 UTC (Fri)
by masoncl (subscriber, #47138)
[Link] (4 responses)
The problem comes when they are all 2KB files, which is why we give the admin knobs.
For larger leaf sizes, we'll still have a limit of 4KB inlined in the btree, so the overall percentage will be a lot lower. With a 16KB leaf, 2KB inlined files won't be a problem.
-chris
Posted Jun 10, 2011 21:14 UTC (Fri)
by MisterIO (guest, #36192)
[Link] (1 responses)
Posted Jun 10, 2011 23:43 UTC (Fri)
by masoncl (subscriber, #47138)
[Link]
But the main reason is that I prefer the filesystem be predictable. If your file size is less than a specific value, it goes into the btree. It's very simple to explain and isn't surprising ;)
Posted Jun 10, 2011 21:36 UTC (Fri)
by jengelh (guest, #33263)
[Link] (1 responses)
Posted Jun 10, 2011 23:49 UTC (Fri)
by masoncl (subscriber, #47138)
[Link]
There are a lot of factors in play. No inline data means more inodes in a block, which means things that stat in bulk (or rm) tend to be faster.
But, inline data means that when we read the inode we have the data, so things like reading all the files in a directory tend to be faster.
-chris
Fedora 16 to use Btrfs as its default filesystem
Fedora 16 to use Btrfs as its default filesystem
Anyway, I appreciate that you took the time to explain this here.
It would be useful if larger leaf sizes could be used even on old btrfs filesystems(that is, I hope it's not an option to be specified at fs creation time).
Fedora 16 to use Btrfs as its default filesystem
Fedora 16 to use Btrfs as its default filesystem
Fedora 16 to use Btrfs as its default filesystem