Allow using more memory on new roboRIO images too
Change-Id: I5357e3fbc29a38406d30bdc280d31354d61e3833
diff --git a/aos/linux_code/starter/starter.sh b/aos/linux_code/starter/starter.sh
index b81bf62..13f7fa2 100755
--- a/aos/linux_code/starter/starter.sh
+++ b/aos/linux_code/starter/starter.sh
@@ -3,6 +3,10 @@
# NI already has a core pattern, so we probably shouldn't change it.
#echo '/home/driver/tmp/robot_logs/%e-%s-%p-%t.coredump' > /proc/sys/kernel/core_pattern
+# Just allow overcommit memory like usual. Various processes map memory they
+# will never use, and the roboRIO doesn't have enough RAM to handle it.
+echo 0 > /proc/sys/vm/overcommit_memory
+
while true; do
export PATH=$PATH:/home/admin/robot_code
starter_exe /home/admin/robot_code/start_list.txt