2014-07-15 00:40:38 +00:00
|
|
|
echo "bug #38441: CPU usage goes to 100% if load is higher than --load at first job"
|
2013-03-06 23:16:53 +00:00
|
|
|
bug #38441: CPU usage goes to 100% if load is higher than --load at first job
|
2014-07-15 00:40:38 +00:00
|
|
|
/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"'
|
2013-03-06 23:16:53 +00:00
|
|
|
More than 1 secs wall clock: OK
|
2014-07-15 00:40:38 +00:00
|
|
|
/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"'
|
2013-03-06 23:16:53 +00:00
|
|
|
Less than 1 secs user time: OK
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834'
|
2011-03-20 21:40:12 +00:00
|
|
|
### Test slow arguments generation - https://savannah.gnu.org/bugs/?32834
|
2014-07-15 00:40:38 +00:00
|
|
|
seq 1 3 | parallel -j1 "sleep 2; echo {}" | parallel -kj2 echo
|
2011-03-20 21:40:12 +00:00
|
|
|
1
|
|
|
|
2
|
|
|
|
3
|
2014-07-15 00:40:38 +00:00
|
|
|
echo '### Test too slow spawning'
|
2013-12-19 01:19:19 +00:00
|
|
|
### Test too slow spawning
|
2014-07-15 00:40:38 +00:00
|
|
|
# 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 }'
|
2013-12-19 01:19:19 +00:00
|
|
|
OK
|