mirror of
https://github.com/AuxXxilium/arc.git
synced 2026-09-03 06:36:32 +08:00
kernel: lower the full kernel core cap to 64
This commit is contained in:
@@ -290,7 +290,7 @@ function arcVersion() {
|
||||
KERNEL="$(readConfigKey "kernel" "${USER_CONFIG_FILE}")"
|
||||
KOPTS=("official" "Synology stock kernel (${KVER})")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-legacy.gz" ] && KOPTS+=("legacy" "5.10.55 + backports, more hardware, better cpu handling")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-full.gz" ] && KOPTS+=("full" "legacy for up to 128 cores (may break iscsi/shutdown)")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-full.gz" ] && KOPTS+=("full" "legacy for up to 64 cores (may break iscsi/shutdown)")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-upstreamed.gz" ] && KOPTS+=("upstreamed" "5.10.260 + the same additions as legacy")
|
||||
dialog --backtitle "$(backtitle)" --title "Kernel" --colors \
|
||||
--default-item "${KERNEL}" --menu "Choose a kernel:" 0 0 0 \
|
||||
|
||||
@@ -261,7 +261,7 @@ elif [ "${ARC_MODE}" = "config" ]; then
|
||||
KPRE="$(readConfigKey "platforms.${PLATFORM}.productvers.\"${PRODUCTVER}\".kpre" "${P_FILE}")"
|
||||
KOPTS=("official" "Synology stock kernel (${KVER})")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-legacy.gz" ] && KOPTS+=("legacy" "5.10.55 + backports, more hardware, better cpu handling")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-full.gz" ] && KOPTS+=("full" "legacy for up to 128 cores (may break iscsi/shutdown)")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-full.gz" ] && KOPTS+=("full" "legacy for up to 64 cores (may break iscsi/shutdown)")
|
||||
[ -f "${CUSTOM_PATH}/bzImage-${PLATFORM}-${KPRE:+${KPRE}-}${KVER}-upstreamed.gz" ] && KOPTS+=("upstreamed" "5.10.260 + the same additions as legacy")
|
||||
dialog --backtitle "$(backtitle)" --title "Kernel" --colors \
|
||||
--default-item "${KERNEL}" --menu "Choose a kernel:" 0 0 0 \
|
||||
|
||||
@@ -147,7 +147,7 @@ declare -A CMDLINE
|
||||
|
||||
# Cap CPU threads to what the kernel supports
|
||||
if [ "${KERNEL}" = "full" ]; then
|
||||
PLTCNT=128
|
||||
PLTCNT=64
|
||||
else
|
||||
PLTCNT="$(readConfigKey "platforms.${PLATFORM}.ccnt" "${P_FILE}")"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user