hn / debian-stretch-zfs-root

Install Debian 9 (Stretch) to a native ZFS root filesystem
54 stars 24 forks source link

Additional tuning for zpool and zvol swap device #3

Closed eturkes closed 7 years ago

eturkes commented 7 years ago

Commit 3d1b245 improves performance and is regarded as safe to use since 0.6.4 #443. However, it is disabled by default in upstream ZoL in order to maximize compatibility with other implementations. I propose that we make these settings visible within the script but commented out so as to not surprise those who do not inspect the script with a ZFS lacking compatibility with Solaris, FreeBSD, etc. I ran this commit uncommented during my install with no problems.

Commit a510445 simply follows suggestions for creating a zvol swap device in the ZFS on Linux wiki. The rationale behind setting logbias=throughput and sync=always are that:

Data written to the volume will be flushed immediately to disk freeing up memory as quickly as possible.

hn commented 7 years ago

Thanks for the well thought out diff and the detailed explanation