Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(de)fragmentation doc #30

Open
cmurf opened this issue Feb 7, 2021 · 0 comments
Open

(de)fragmentation doc #30

cmurf opened this issue Feb 7, 2021 · 0 comments

Comments

@cmurf
Copy link

cmurf commented Feb 7, 2021

A doc that helps application developers manage fragmentation:

  • estimating fragmentation
    • limitations of FIEMAP (filefrag)
    • effect of compression on real fragmentation vs as reported by FIEMAP
  • avoidance strategies
    • nodatacow, pros/cons
    • fallocate, pros/cons
    • create a subvolume in lieu of an enclosing directory for the files? helps avoid inadvertent snapshots from above
  • submitting files for periodic defragmentation
    • BTRFS_IOC_DEFRAG vs BTRFS_IOC_DEFRAG_RANGE (should libbtrfsutil expose a preferred usage?)
    • autodefrag by xattr pros/cons (future feature)
    • effect of defrag on reflinked files; e.g. defrag is not snapshot aware
    • estimating the cost/benefit of defragmenting (latency?)
  • misc/appendix
    • effect of nossd, ssd, ssd_spread on fragmentation and defragmentation
    • kinds of fragmentation: free space, metadata, data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant