Question: kernel patch from linux-tkg for ZFS #11571
-
This is a question for the ZFS developers. While browsing for Linux custom kernels I stumbled over linux-tkg kernel. It contains a kernel patch which makes the symbols https://github.com/Frogging-Family/linux-tkg/tree/master/linux-tkg-patches Patch
Does it make sense to apply that patch from a ZFS standpoint of view? Does it have any performance benefits? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Since ZFS supports a wide range of Linux kernels, the compatibility code to detect and use these interfaces (when available) was kept. Applying the patch may slightly improve performance since the kernel interfaces can be a bit more efficient, but the difference was quite small in the benchmarks we ran. |
Beta Was this translation helpful? Give feedback.
-
Encryption performance wise it actually depends on the CPU and the encryption algorithm. If the CPU doesn't have AVX support or AES-CCM is chosen, that patch roughly doubles performance since FPU state is only saved on context switches. See e.g. #10846. If it has AVX and you are using AES-GCM Brian is right, performance gain is quite minimal since recent 0.8 and 2.0 ZFS versions, besides other optimizations, mostly take care of that. See #9749. |
Beta Was this translation helpful? Give feedback.
Encryption performance wise it actually depends on the CPU and the encryption algorithm. If the CPU doesn't have AVX support or AES-CCM is chosen, that patch roughly doubles performance since FPU state is only saved on context switches. See e.g. #10846. If it has AVX and you are using AES-GCM Brian is right, performance gain is quite minimal since recent 0.8 and 2.0 ZFS versions, besides other optimizations, mostly take care of that. See #9749.