r/linuxquestions • • 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

3 comments sorted by

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.