Tune resource limits

This commit is contained in:
2025-10-22 20:27:21 -04:00
parent b75597946d
commit 3772d373bb
2 changed files with 6 additions and 3 deletions

View File

@@ -640,13 +640,16 @@ from_source() {
done
# Expand seed into full config
execute make "${make_opts[@]}" "-j1" defconfig
execute make "-j1" defconfig
# Run serial make download for better reliability
execute make "-j1" download
# make_opts+=("-j$(($(nproc)-2))")
((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-2))")
# Make image
if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" BIN_DIR="$BIN_DIR" download world; then
if ! execute ionice -c2 -n7 nice -n19 make "${make_opts[@]}" BIN_DIR="$BIN_DIR" world; then
echo "Error: make failed"
return 1
fi

View File

@@ -19,7 +19,7 @@ declare -Ag r4s=(
[target]="rockchip/armv8"
[filesystem]="ext4"
[packages]="${default_packages[*]} \
luci-app-ddns luci-app-sqm irqbalance \
luci-app-ddns luci-app-sqm \
adblock luci-app-adblock \
collectd-mod-df usbutils kmod-usb-storage kmod-usb-storage-uas \
kmod-fs-btrfs btrfs-progs block-mount smcroute avahi-daemon \