28
28
echo " Number of IAA device: $iaa_devices "
29
29
30
30
# Configure IAA devices
31
- ./enable_kernel_iaa.sh 0 1 ${iaa_devices} 8 2 sync
31
+ if [ ${iaa_devices} -gt 0 ]; then
32
+ ./enable_kernel_iaa.sh 0 1 ${iaa_devices} 8 2 sync
33
+ fi
34
+
32
35
# Configure zswap and zram.
33
36
./enable_zswap.sh
34
37
# swap disk can be used instead of zram. However, zram will avoid any disk access overheads
@@ -37,7 +40,7 @@ echo "Number of IAA device: $iaa_devices"
37
40
# Install bpftrace if it is not available
38
41
if [ ! -f /usr/bin/bpftrace ]; then
39
42
echo " Installing bpftrace..."
40
- install bpftrace -y || handle_error " Failed to install bpftrace"
43
+ yum install bpftrace -y || handle_error " Failed to install bpftrace"
41
44
fi
42
45
43
46
# If QAT is avaialble in kernel, enable it as well
@@ -47,12 +50,17 @@ if [ ${QAT_ENABLED_IN_KERNEL} -gt 0 ]; then
47
50
fi
48
51
49
52
50
- # Select compression algorithms.
53
+ comp_list=()
54
+ # Create the compression algorihm list. Keep the alphabetical order for easy reporting
55
+ if [ ${iaa_devices} -gt 0 ]; then
56
+ comp_list+=(" deflate-iaa-canned" " deflate-iaa" )
57
+ fi
58
+ comp_list+=(" lz4" )
51
59
if [ ${QAT_ENABLED_IN_KERNEL} -gt 0 ]; then
52
- comp_list=(" deflate-iaa-canned" " deflate-iaa" " lz4" " qat_deflate" " zstd" )
53
- else
54
- comp_list=(" deflate-iaa-canned" " deflate-iaa" " lz4" " zstd" )
60
+ comp_list+=(" qat_deflate" )
55
61
fi
62
+ comp_list+=(" zstd" )
63
+
56
64
57
65
# Other possible values for compressors
58
66
# comp_list=("deflate-iaa-canned" "deflate-iaa-dynamic" "deflate-iaa" "lz4" "lzo-rle" "lzo" "zstd" "qat_deflate")
0 commit comments