I imagine that adding n xattrs of length l of to f files and d directories may generate costs:
- storage
- path resolution time / access time ?
- iteration over directories? (recursive find over (fresh after reboot not-cached) filesystem?)
I wonder what are those costs? E.g. if tagging all files would significantly impact storage and performance? What are critical values below which it's negligible, and after which is hammering file-system?
For such analysis, obviously it would be nice to consider what are limits of xattr -> how much and how bit xattrs we can put on different filesystems.
(Be welcome to include bits regarding other filesystems than just ext4 and btrfs if you find it handy - Thank you)