# HG changeset patch # User Pascal Bellard # Date 1281886449 -7200 # Node ID 7efd3858314d25d9e262bd5dcd9dc4ee7bb9256c # Parent fb454b6c56168b825b8c4c0c7975024e72c46101 tazwok: lLimit memory usage diff -r fb454b6c5616 -r 7efd3858314d tazwok --- a/tazwok Thu Aug 05 22:38:46 2010 +0200 +++ b/tazwok Sun Aug 15 17:34:09 2010 +0200 @@ -82,6 +82,9 @@ # The path to the process log file. LOG="$WOK/$PACKAGE/process.log" +# Limit memory usage +ulimit -v $(awk '/MemTotal/ { print int(($2*80)/100) }' < /proc/meminfo) + #################### # Tazwok functions # ####################