Skip to content

Commit

Permalink
Disable RAID6 auto-benchmark
Browse files Browse the repository at this point in the history
Commit a905d11 (config: Enable CONFIG_BTRFS_FS) introduced BTRFS
support, which depends on the RAID6 library. By default, this library
does a benchmark during the initialization to choose the best recovery
algorithm.

This caused boot time to be increased for ~1.5s. Keep the RAID6 library
as it's required by BTRFS, but disable its auto-benchmark.

Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp committed Sep 27, 2024
1 parent ac704c5 commit bd1bae4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ KERNEL_PATCHES = $(shell find patches/ -name "0*.patch" | sort)
KERNEL_C_BUNDLE = kernel.c

ABI_VERSION = 4
FULL_VERSION = 4.4.0
TIMESTAMP = "Wed Sep 25 18:24:59 CEST 2024"
FULL_VERSION = 4.4.1
TIMESTAMP = "Thu Sep 26 16:00:58 CEST 2024"

KERNEL_FLAGS = KBUILD_BUILD_TIMESTAMP=$(TIMESTAMP)
KERNEL_FLAGS += KBUILD_BUILD_USER=root
Expand Down
2 changes: 2 additions & 0 deletions config-libkrunfw_aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -2947,6 +2947,8 @@ CONFIG_BINARY_PRINTF=y
#
# Library routines
#
CONFIG_RAID6_PQ=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
CONFIG_LINEAR_RANGES=y
CONFIG_PACKING=y
CONFIG_BITREVERSE=y
Expand Down
2 changes: 2 additions & 0 deletions config-libkrunfw_x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,8 @@ CONFIG_BINARY_PRINTF=y
#
# Library routines
#
CONFIG_RAID6_PQ=y
# CONFIG_RAID6_PQ_BENCHMARK is not set
# CONFIG_PACKING is not set
CONFIG_BITREVERSE=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
Expand Down

0 comments on commit bd1bae4

Please sign in to comment.