Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Unfortunately the system is almost unusable as, even with functionalities keep to a minimum, remains really short on RAM and apps sometimes fire oom-killer. --- Quote End --- The default uClinux-dist setup is a bit too aggressive with the oom-killer. You can adjust when it fires with settings in /proc/sys/vm. The init script (rc file) that came in the Altera vendor directory had this:
# the default calculated values for these kernel controls are too small for
# an embedded nommu system, so override them. For more info check out
# - ./Documentation/sysctl/vm.txt
# - ./Documentation/filesystems/proc.txt
#
echo 4096 > /proc/sys/vm/min_free_kbytes This isn't a nommu system, and making the value *bigger* for a small memory system doesn't make any sense to me. I've changed it to echo 1024 > /proc/sys/vm/min_free_kbytes to reduce the oom-killer needlessly firing. 1MiB is the minimum one should use for this value according to the kernel documentation.