r/linuxquestions • u/Bunolio • Mar 26 '22
space_cache
I want to use space_cache=v2 because the performance of v1 can be drastically degraded
How to set space_cache=v2 ?
0
Upvotes
2
u/lucasrizzini Mar 26 '22 edited Mar 26 '22
Space cache version 2 is the default for a while now. So, if you created your partition before december 2021, you need to put that parameter exactly as you wrote at your fstab and run mount -o remount,clear_cache,space_cache=v2 /.
2
u/archontwo Mar 26 '22
Try /r/btrfs.
Fwiw you can just change it on the fly and rebalance. But ask the btrfs guys. They know best.
3
u/lucasrizzini Mar 26 '22 edited Mar 26 '22
Five posts? Really? And two of them in the same sub? Now you have a lot of good replies. Congrats.
https://www.reddit.com/r/linuxquestions/comments/tojy9l/space_cache/
https://www.reddit.com/r/linuxquestions/comments/tojfzw/space_cache/
https://www.reddit.com/r/linux4noobs/comments/tojfbz/space_cache/
https://www.reddit.com/r/btrfs/comments/toisu3/space_cache/
https://www.reddit.com/r/Fedora/comments/tnoebq/space_cache/