Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Reduce pi44gb tasks #48

Merged
merged 2 commits into from
May 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions boinc-client/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ totalmem=$(awk '/^MemTotal:/{print $2}' /proc/meminfo)
if [[ -z $SKIP_BOINC_CPU_SETTINGS_CHECK && "$totalmem" -lt "2500000" ]]; then
echo "Less than 2.5GB RAM - running single concurrent task"
update_float_xml_val_with_int max_ncpus_pct 25 "$prefs_file_path"
elif [[ -z $SKIP_BOINC_CPU_SETTINGS_CHECK && "$BALENA_DEVICE_TYPE" = "raspberrypi4-64" ]]; then
echo "Raspberry Pi 4 4GB - running 3 concurrent tasks"
update_float_xml_val_with_int max_ncpus_pct 75 "$prefs_file_path"
fi

exec boinc --dir /usr/app/boinc/ --allow_remote_gui_rpc