parallel: --nice has not been working locally since 20161022.

This commit is contained in:
Ole Tange 2018-02-05 21:39:59 +01:00
parent 78fade1e62
commit 6657e056f2
4 changed files with 16 additions and 9 deletions

View file

@ -199,24 +199,20 @@ to:parallel@gnu.org, bug-parallel@gnu.org
stable-bcc: Jesse Alama <jessealama@fastmail.fm>
Subject: GNU Parallel 20180122 ('Mayon') released <<[stable]>>
Subject: GNU Parallel 20180222 ('') released <<[stable]>>
GNU Parallel 20180122 ('Mayon') <<[stable]>> has been released. It is available for download at: http://ftpmirror.gnu.org/parallel/
GNU Parallel 20180222 ('') <<[stable]>> has been released. It is available for download at: http://ftpmirror.gnu.org/parallel/
<<No new functionality was introduced so this is a good candidate for a stable release.>>
Quote of the month:
GNU Parallel is making me pretty happy this morning
-- satanpenguin
New in this release:
* bash / 병렬 https://code.i-harness.com/ko/docs/bash/2a1a
* https://mike42.me/blog/tag/fedora
* 15分钟神器gnu parallel 入门观止 http://www.ezilin.com/2018/01/15gnu-parallel.html
* How To Run Multiple Commands In Parallel on Linux https://www.slashroot.in/how-run-multiple-commands-parallel-linux
* https://www.datascienceatthecommandline.com/
<<Citation not OK: BAMClipper: removing primers from alignments to minimize false-negative mutations in amplicon next-generation sequencing https://www.nature.com/articles/s41598-017-01703-6>>

View file

@ -8352,7 +8352,8 @@ sub start {
eval {
if(not $pid = ::open3($stdin_fh, ">&OUT", ">&ERR", "-")) {
# Each child gets its own process group to make it safe to killall
eval{setpgrp(0,0)};
eval{ setpgrp(0,0) };
eval{ setpriority(0,0,$opt::nice) };
exec($Global::shell,"-c",$command)
|| ::die_bug("open3-$stdin_fh $command");
}

View file

@ -208,6 +208,13 @@ par_parcat_mixing() {
parcat $tmp1 $tmp2 | tr -s ab
}
par_nice() {
echo 'Check that --nice works'
# parallel-20160422 OK
parallel --timeout 3 --nice 18 bzip2 '<' ::: /dev/zero /dev/zero &
sleep 1
ps -eo "%c %n" | grep 18 | grep bzip2
}
export -f $(compgen -A function | grep par_)
compgen -A function | grep par_ | sort | parallel -j6 --tag -k '{} 2>&1'

View file

@ -52,6 +52,9 @@ par_multiline_commands finish 2
par_multiline_commands parallel: Warning: Command lines contain newline. Forcing --null.
par_multiline_commands 3
par_multiline_commands finish 3
par_nice Check that --nice works
par_nice bzip2 18
par_nice bzip2 18
par_parcat_mixing parcat output should mix: a b a b
par_parcat_mixing astart
par_parcat_mixing bstart