tazwok rev 173
tazwok: lLimit memory usage
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 15 17:34:09 2010 +0200 (2010-08-15) |
parents | fb454b6c5616 |
children | 64dffaf60118 |
files | tazwok |
line diff
1.1 --- a/tazwok Thu Aug 05 22:38:46 2010 +0200 1.2 +++ b/tazwok Sun Aug 15 17:34:09 2010 +0200 1.3 @@ -82,6 +82,9 @@ 1.4 # The path to the process log file. 1.5 LOG="$WOK/$PACKAGE/process.log" 1.6 1.7 +# Limit memory usage 1.8 +ulimit -v $(awk '/MemTotal/ { print int(($2*80)/100) }' < /proc/meminfo) 1.9 + 1.10 #################### 1.11 # Tazwok functions # 1.12 ####################