Tune resource limits
This commit is contained in:
@@ -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
|
||||
|
||||
2
profiles
2
profiles
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user