[Bug 218203] Implement AVX2 accelerated Fletcher algorithms

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Mar 30 18:56:57 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218203

--- Comment #3 from kungfujesus06 at gmail.com ---
Created attachment 181322
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=181322&action=edit
Quick benchmark

Please don't mind the C++, the actual function is clean C.  Be sure to compile
with -mavx2.

It's worth noting that the code that's integrated into ZFS On Linux appears to
do benchmark code to select the fastest function and dynamically reassigns a
function pointer to that function (at maybe module load time?).  Adding the
extra layer of function pointers will probably be somewhat necessary for this
kind of modularity, though this obviously has some security implications (in
that corrupting this pointer value can lead to bad things).  I hardly think
it'd be the first function pointer dispatched in the FreeBSD kernel, though.

Given that IXSystems cares about ZFS performance and distributes on hardware
with some lower powered Atom CPUs, I figured this would be of interest.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list