Add SIMD metadata in /proc on Linux

Too many times, people's performance problems have amounted to
"somehow your SIMD support isn't working", and determining that
at runtime is difficult to describe to people.

This adds a /proc/spl/kstat/zfs/simd node, which exposes
metadata about which instructions ZFS thinks it can use,
on AArch64 and x86_64 Linux, to make investigating things
like this much easier.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #16530
This commit is contained in:
Rich Ercolani
2024-09-20 11:16:44 -04:00
committed by GitHub
parent 45a4a94b64
commit 5d01243964
7 changed files with 207 additions and 0 deletions
+3
View File
@@ -50,4 +50,7 @@
#define kfpu_fini() do {} while (0)
#endif
#define simd_stat_init() 0
#define simd_stat_fini() 0
#endif