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

--- Comment #3 from [email protected] ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to