Skip to content

Commit

Permalink
erasure-code: preload the isa plugin by default
Browse files Browse the repository at this point in the history
But only do so when it has been compiled because a recent enough yasm
has been found.

Signed-off-by: Loic Dachary <[email protected]>
  • Loading branch information
Loic Dachary committed Aug 28, 2014
1 parent e9a05b8 commit 39bcb43
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ if yasm -f elf64 src/common/crc32c_intel_fast_asm.S -o /dev/null; then

if yasm -f elf64 -i src/ceph/src/ceph/src/erasure-code/isa/isa-l/include/ src/erasure-code/isa/isa-l/erasure_code/gf_vect_dot_prod_avx2.asm.s -o /dev/null 2> /dev/null ; then
echo 'yasm can also build the isa-l stuff'
AC_DEFINE([HAVE_BETTER_YASM_ELF64], [1], [yasm can also build the isa-l])
with_better_yasm=yes
else
echo "yasm doesn't build the isa-l stuff"
Expand Down
7 changes: 6 additions & 1 deletion src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,12 @@ OPTION(osd_pool_default_erasure_code_profile,
"k=2 "
"m=1 "
) // default properties of osd pool create
OPTION(osd_erasure_code_plugins, OPT_STR, "jerasure") // list of erasure code plugins
OPTION(osd_erasure_code_plugins, OPT_STR,
"jerasure"
#ifdef HAVE_BETTER_YASM_ELF64
" isa"
#endif
) // list of erasure code plugins
OPTION(osd_pool_default_flags, OPT_INT, 0) // default flags for new pools
OPTION(osd_pool_default_flag_hashpspool, OPT_BOOL, true) // use new pg hashing to prevent pool/pg overlap
OPTION(osd_pool_default_hit_set_bloom_fpp, OPT_FLOAT, .05)
Expand Down
1 change: 1 addition & 0 deletions src/erasure-code/ErasureCodePlugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Ceph distributed storage system
*
* Copyright (C) 2013,2014 Cloudwatt <[email protected]>
* Copyright (C) 2014 Red Hat <[email protected]>
*
* Author: Loic Dachary <[email protected]>
*
Expand Down

0 comments on commit 39bcb43

Please sign in to comment.