danboid / ALEZ

Arch Linux Easy ZFS installer
GNU General Public License v3.0
146 stars 25 forks source link

Swap dataset by default? #35

Closed ikidd closed 5 years ago

ikidd commented 5 years ago

Would making a dataset for swap and allowing the user to define the size be a good plan or do you figure that's a user responsibility?

I've pretty much gone off the ubuntu plan and used:

# zfs create -V 8G -b $(getconf PAGESIZE) -o compression=zle \ -o logbias=throughput -o sync=always \ -o primarycache=metadata -o secondarycache=none \ -o com.sun:auto-snapshot=false zroot/swap

# echo /dev/zvol/zroot/swap none swap defaults 0 0 >> /etc/fstab

# swapon -av

danboid commented 5 years ago

This is entirely up to the user. I haven't bothered with swap partitions since having 8+ GB RAM. It's not necessary in most cases (with 8+ GB RAM) and its detrimental to SSDs due to causing excessive writes.

We're kinda presuming most people wanting to experiment with ZFS will have a decent spec machine and they will have to learn how to create datasets to use ZFS effectively.