parallel/testsuite/wanted-results/parallel-local2

18 lines
1.1 KiB
Plaintext

echo "bug #38441: CPU usage goes to 100% if load is higher than --load at first job"
bug #38441: CPU usage goes to 100% if load is higher than --load at first job
/usr/bin/time -f %e parallel --load 100% true ::: a 2>&1 | perl -ne '$_ > 1 and print "More than 1 secs wall clock: OK\n"'
More than 1 secs wall clock: OK
/usr/bin/time -f %U parallel --load 100% true ::: a 2>&1 | perl -ne '$_ < 1 and print "Less than 1 secs user time: OK\n"'
Less than 1 secs user time: OK
echo '### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834'
### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834
seq 1 3 | parallel -j1 "sleep 2; echo {}" | parallel -kj2 echo
1
2
3
echo '### Test too slow spawning'
### Test too slow spawning
# Let the commands below run during high load
seq `parallel --number-of-cores` | parallel -j200% -N0 timeout -k 25 26 burnP6 & sleep 1; seq 1 1000 | stdout nice nice parallel -s 100 -uj0 true | perl -pe '/parallel: Warning: Starting \d+ processes took/ and do {close STDIN; `killall -9 burnP6`; print "OK\n"; exit }'
OK