diff --git a/customization.cfg b/customization.cfg index ceeb6aa..1459a5e 100644 --- a/customization.cfg +++ b/customization.cfg @@ -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 #### diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index db7647a..7e521dd 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -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