mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-24 15:07:55 +00:00
28 lines
1 KiB
Plaintext
28 lines
1 KiB
Plaintext
### Test niceload -q
|
|
This works
|
|
|
|
echo '### --rm and --runmem'
|
|
### --rm and --runmem
|
|
niceload -H --rm 1g free -g | perl -ane '/Mem:/ and print $F[5],"\n"' | grep '[1-9]' >/dev/null && echo OK--rm
|
|
OK--rm
|
|
niceload -H --runmem 1g free -g | perl -ane '/Mem:/ and print $F[5],"\n"' | grep '[1-9]' >/dev/null && echo OK--runmem
|
|
OK--runmem
|
|
echo '### -N and --noswap. Must give 0'
|
|
### -N and --noswap. Must give 0
|
|
niceload -H -N vmstat 1 2 | tail -n1 | awk '{print "-N " $7*$8}'
|
|
-N 0
|
|
niceload -H --noswap vmstat 1 2 | tail -n1 | awk '{print "--noswap " $7*$8}'
|
|
--noswap 0
|
|
echo '### -H and --hard'
|
|
### -H and --hard
|
|
niceload -H -l 9.9 uptime | grep ':.[1-9][0-9].[0-9][0-9],' || echo OK-load below 9.9
|
|
OK-load below 9.9
|
|
niceload --hard -l 9 uptime | grep ':.[1-9][0-9].[0-9][0-9],' || echo OK-load below 10
|
|
OK-load below 10
|
|
echo '### -f and --factor'
|
|
### -f and --factor
|
|
niceload -H -f 0.01 -l6 echo f 0.1 finish first
|
|
f 0.1 finish first
|
|
niceload -H --factor 30 -l6 echo factor 30 finish last
|
|
factor 30 finish last
|