Here are my instructions for pure btrfs on a clean hdd.
mkfs.btrfs -L arch /dev/sda
mount /dev/sda /mnt
cd /mnt
btrfs subvolume create root
btrfs subvolume create home
umount /mnt
mount -o rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache,subvol=root /dev/sda /mnt
mkdir /mnt/home
mount -o rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache,subvol=home /dev/sda /mnt/home
pacstrap /mnt base base-devel
Then continue as normal with the installation. I use it on my ssd and external hdd for about a year now without problems.
Two important things you need to know:
use chattr +C your your VM images or SQL databases
discard, this is debatable there was one one blog post that advocated manual fstrim and now the myth continues, I never saw good data on that. discard is the recommended way, if you can see a slowdown then maybe try a cron fstrim.
inode_cache you are probably right, there are no huge gains and many more reports of problems with it.
crucial m4 doesn't have compression, but you might be right that compressing twice might have a negative impact(although lzo if quite fast?)
So reflecting on that I changed my mount options to
Here are my instructions for pure btrfs on a clean hdd.
Then continue as normal with the installation. I use it on my ssd and external hdd for about a year now without problems. Two important things you need to know:
I added https://wiki.archlinux.org/index.php/profile-sync-daemon and the cr32c-intel module.
Don't worry about ssd writes too much, at least my crucial m4 is still in great shape after 2 years or so.
You might want to do a https://wiki.archlinux.org/index.php/SSD_Memory_Cell_Clearing
I've been using it on Arch Linux for quite a while now without any issues. ZoL is great. My initial setup boils down to:
As I"m running the ssd encrypted, my boot partition is on a sandisk ultra fit usb drive, the bootloader is syslinux.
My only gripe is that it still doesn't have Trim, but everything else works great.
The guide is here https://gist.github.com/cryzed/e002e7057435f02cc7894b9e748c5671
The main thing to tweak is your personal preference at this point. The most valuable thing from that guide is the font substitution config.
You are right some of them are now on be default.
So reflecting on that I changed my mount options to