summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-10-08 14:14:16 +0200
committerDavid Sterba <dsterba@suse.com>2016-02-23 12:55:27 +0100
commitf7e98a7fff8634ae655c666dc2c9fc55a48d0a73 (patch)
tree0caaf0be73616393e2ab8313b9e85bce64ac0795 /arch
parent11ea474f74709fc764fb7e80306e0776f94ce8b8 (diff)
downloadop-kernel-dev-f7e98a7fff8634ae655c666dc2c9fc55a48d0a73.zip
op-kernel-dev-f7e98a7fff8634ae655c666dc2c9fc55a48d0a73.tar.gz
btrfs: change max_inline default to 2048
The current practical default is ~4k on x86_64 (the logic is more complex, simplified for brevity), the inlined files land in the metadata group and thus consume space that could be needed for the real metadata. The inlining brings some usability surprises: 1) total space consumption measured on various filesystems and btrfs with DUP metadata was quite visible because of the duplicated data within metadata 2) inlined data may exhaust the metadata, which are more precious in case the entire device space is allocated to chunks (ie. balance cannot make the space more compact) 3) performance suffers a bit as the inlined blocks are duplicate and stored far away on the device. Proposed fix: set the default to 2048 This fixes namely 1), the total filesysystem space consumption will be on par with other filesystems. Partially fixes 2), more data are pushed to the data block groups. The characteristics of 3) are based on actual small file size distribution. The change is independent of the metadata blockgroup type (though it's most visible with DUP) or system page size as these parameters are not trival to find out, compared to file size. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud