cfg: Make NR_CPUS customizable, and default to 128. With EPYC users around, we might as well use that instead of our previous 64 default.
This commit is contained in:
@@ -254,6 +254,11 @@ _kernel_localversion=""
|
||||
# Set to "true" to add back missing symbol for AES-NI/AVX support on ZFS - This is a legacy option that can be ignored on 5.10+ kernels - https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/kernel/export_kernel_fpu_functions.patch
|
||||
_zfsfix="true"
|
||||
|
||||
# Set to your maximum number of CPUs (physical + logical cores) - Lower means less overhead
|
||||
# If you set this to a lower value than you have cores, some cores will be disabled
|
||||
# Default Arch kernel value is 320
|
||||
_NR_CPUS_value="128"
|
||||
|
||||
|
||||
#### USER PATCHES ####
|
||||
|
||||
|
@@ -698,7 +698,7 @@ _tkg_srcprep() {
|
||||
_disable "DEBUG_FORCE_FUNCTION_ALIGN_64B"
|
||||
scripts/config --set-str "ZSWAP_COMPRESSOR_DEFAULT" "lz4"
|
||||
scripts/config --set-str "CMDLINE" "${_custom_commandline}"
|
||||
scripts/config --set-val "NR_CPUS" "64"
|
||||
scripts/config --set-val "NR_CPUS" "$_NR_CPUS_value"
|
||||
_disable "CMDLINE_OVERRIDE" "X86_P6_NOP" "CPU_FREQ_DEFAULT_GOV_ONDEMAND" "CPU_FREQ_DEFAULT_GOV_CONSERVATIVE"
|
||||
#echo "# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set" >> ./.config
|
||||
|
||||
|
Reference in New Issue
Block a user