summaryrefslogtreecommitdiffstats
path: root/cmd/raidz_test
diff options
context:
space:
mode:
authorGvozden Neskovic <[email protected]>2016-11-20 06:01:31 +0100
committerBrian Behlendorf <[email protected]>2016-11-29 14:34:33 -0800
commit65d71d4212a813937f2eba36981b236cdba292f7 (patch)
treebd0597aabb94b59362f8938c527ee423fe8aed0e /cmd/raidz_test
parentcbf484f8ad26b84a17c5308af47d2c202e1dc9e9 (diff)
ABD raidz avx512f support
Implement shift based multiplication for 512f. Higher IPC over lookup based methods yields up to 40% better performance on the current hardware. Results on Xeon Phi(TM) CPU 7210: implementation gen_p gen_pq gen_pqr rec_p rec_q rec_r rec_pq rec_pr rec_qr rec_pqr original 142232671 24411492 12948205 283053705 22348167 4215911 9171609 2265548 2378370 1648495 scalar 295711162 49851491 33253815 293198109 88179448 61866752 27941684 25764416 17384442 12138153 sse2 410055998 199642658 117973654 406240463 152688682 121092250 84968180 79291076 47473657 20779719 ssse3 411641595 199669571 117937647 406211024 137638508 117050346 81263322 76120405 46281559 32696722 avx2 616485806 311515332 188595628 605455115 260602390 230554476 148198817 138800254 92273356 62937819 avx512f 832191523 408509425 253599522 810094481 404325734 317590971 218235687 197204920 133101937 94001219 fastest avx512f avx512f avx512f avx512f avx512f avx512f avx512f avx512f avx512f avx512f Signed-off-by: Gvozden Neskovic <[email protected]>
Diffstat (limited to 'cmd/raidz_test')
-rw-r--r--cmd/raidz_test/raidz_test.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/cmd/raidz_test/raidz_test.c b/cmd/raidz_test/raidz_test.c
index 87f4eb978..3e0a089fd 100644
--- a/cmd/raidz_test/raidz_test.c
+++ b/cmd/raidz_test/raidz_test.c
@@ -235,19 +235,6 @@ init_rand(void *data, size_t size, void *private)
return (0);
}
-static int
-corrupt_rand(void *data, size_t size, void *private)
-{
- int i;
- int *dst = (int *) data;
-
- for (i = 0; i < size / sizeof (int); i++)
- dst[i] = rand();
-
- return (0);
-}
-
-
static void
corrupt_colums(raidz_map_t *rm, const int *tgts, const int cnt)
{
@@ -256,8 +243,7 @@ corrupt_colums(raidz_map_t *rm, const int *tgts, const int cnt)
for (i = 0; i < cnt; i++) {
col = &rm->rm_col[tgts[i]];
- abd_iterate_func(col->rc_abd, 0, col->rc_size, corrupt_rand,
- NULL);
+ abd_iterate_func(col->rc_abd, 0, col->rc_size, init_rand, NULL);
}
}