X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=fast_make.sh;h=9309c87faaa5dfe660dd17662685d4be2b24860e;hb=9284f78523ef4469d086d04c1bcd791ce00575d1;hp=471562c515aa0da35d00b7f21ff2298046409d57;hpb=e534754cde3aee05927b1ca4aa6962dc05ee0322;p=clitk.git diff --git a/fast_make.sh b/fast_make.sh index 471562c..9309c87 100755 --- a/fast_make.sh +++ b/fast_make.sh @@ -29,8 +29,9 @@ else #use all the available computing power by default cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 )) fi -make -j ${cpus} $@ & -make_pid=$(jobs -p %make) +nice -n12 ionice -c3 make -j ${cpus} $@ & +make_pid=$(jobs -p %nice) + #watch memory use to avoid crashes while ps $make_pid >>/dev/null do