mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-11-26 07:57:58 +00:00
parallel: --load: Use 'ps axH -o state,command' to include threads.
This commit is contained in:
parent
6628b8980c
commit
794315c676
|
@ -225,6 +225,7 @@ Haiku of the month:
|
||||||
|
|
||||||
New in this release:
|
New in this release:
|
||||||
|
|
||||||
|
* Vote for new community on Superuser, Ask Ubuntu, Unix&Linux http://meta.superuser.com/questions/11127/community-promotion-ads-2016/11225#11225 http://meta.askubuntu.com/questions/14925/community-promotion-ads-2016/15046#15046 http://meta.unix.stackexchange.com/questions/3854/community-promotion-ads-2016/3893#3893
|
||||||
|
|
||||||
* << kontakt GNU Parallel was used (unfortunately without citation) in: Instrumentation and Trace Analysis for Ad-hoc Python Workflows in Cloud Environments http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7214035>>
|
* << kontakt GNU Parallel was used (unfortunately without citation) in: Instrumentation and Trace Analysis for Ad-hoc Python Workflows in Cloud Environments http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7214035>>
|
||||||
|
|
||||||
|
@ -242,10 +243,14 @@ for Big Data Applications https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumb
|
||||||
|
|
||||||
* <<Citation needed: Introspecting for RSA Key Material to Assist Intrusion Detection http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=7331177&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D7331177>>
|
* <<Citation needed: Introspecting for RSA Key Material to Assist Intrusion Detection http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=7331177&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D7331177>>
|
||||||
|
|
||||||
|
* Downloading a list of URLs http://blog.gypsydave5.com/2016/02/04/xargs-and-curl/
|
||||||
|
|
||||||
* Using GNU Parallel and ImageMagick for Conversions http://blog.fractalcomic.com/tutorials/using-gnu-parallel-and-imagemagick-for-conversions/
|
* Using GNU Parallel and ImageMagick for Conversions http://blog.fractalcomic.com/tutorials/using-gnu-parallel-and-imagemagick-for-conversions/
|
||||||
|
|
||||||
* Running bash commands in parallel http://linuxcommando.blogspot.dk/2016/01/running-bash-commands-in-parallel.html
|
* Running bash commands in parallel http://linuxcommando.blogspot.dk/2016/01/running-bash-commands-in-parallel.html
|
||||||
|
|
||||||
|
* parallel processing in PDAL https://smathermather.wordpress.com/2016/01/28/parallel-processing-in-pdal/
|
||||||
|
|
||||||
* A Million Text Files And A Single Laptop http://randyzwitch.com/gnu-parallel-medium-data/
|
* A Million Text Files And A Single Laptop http://randyzwitch.com/gnu-parallel-medium-data/
|
||||||
|
|
||||||
* 「今日から使い切る」ための GNU Parallelによる並列処理入門 http://www.slideshare.net/koji_matsuda/gnu-parallel
|
* 「今日から使い切る」ための GNU Parallelによる並列処理入門 http://www.slideshare.net/koji_matsuda/gnu-parallel
|
||||||
|
|
|
@ -4713,10 +4713,12 @@ sub loadavg_too_high {
|
||||||
# svr5 => sysv
|
# svr5 => sysv
|
||||||
# ultrix => ps -ax | awk '{print $3,$5}'
|
# ultrix => ps -ax | awk '{print $3,$5}'
|
||||||
# unixware => ps -el|awk '{print $2,$14,$15}'
|
# unixware => ps -el|awk '{print $2,$14,$15}'
|
||||||
my $ps = q{
|
my $ps = ::spacefree(1,q{
|
||||||
$sysv="ps -ef -o s -o comm";
|
$sysv="ps -ef -o s -o comm";
|
||||||
$sysv2="ps -ef -o state -o comm";
|
$sysv2="ps -ef -o state -o comm";
|
||||||
$bsd="ps ax -o state,command";
|
$bsd="ps ax -o state,command";
|
||||||
|
# Treat threads as processes
|
||||||
|
$bsd2="ps axH -o state,command";
|
||||||
$psel="ps -el|awk '{ print \$2,\$14,\$15 }'";
|
$psel="ps -el|awk '{ print \$2,\$14,\$15 }'";
|
||||||
$cygwin=q{ perl -ne 'close STDERR; /Name/ and print"\n";
|
$cygwin=q{ perl -ne 'close STDERR; /Name/ and print"\n";
|
||||||
/(Name|Pid|Ppid|State):\s+(\S+)/ and print "$2\t";' /proc/*/status |
|
/(Name|Pid|Ppid|State):\s+(\S+)/ and print "$2\t";' /proc/*/status |
|
||||||
|
@ -4728,11 +4730,11 @@ sub loadavg_too_high {
|
||||||
'darwin' => $bsd,
|
'darwin' => $bsd,
|
||||||
'dec_osf' => $sysv2,
|
'dec_osf' => $sysv2,
|
||||||
'dragonfly' => $bsd,
|
'dragonfly' => $bsd,
|
||||||
'freebsd' => $bsd,
|
'freebsd' => $bsd2,
|
||||||
'gnu' => $bsd,
|
'gnu' => $bsd,
|
||||||
'hpux' => $psel,
|
'hpux' => $psel,
|
||||||
'irix' => $sysv2,
|
'irix' => $sysv2,
|
||||||
'linux' => $bsd,
|
'linux' => $bsd2,
|
||||||
'minix' => "ps el|awk '{print \$1,\$11}'",
|
'minix' => "ps el|awk '{print \$1,\$11}'",
|
||||||
'mirbsd' => $bsd,
|
'mirbsd' => $bsd,
|
||||||
'msys' => $sysv,
|
'msys' => $sysv,
|
||||||
|
@ -4746,7 +4748,6 @@ sub loadavg_too_high {
|
||||||
);
|
);
|
||||||
print `$ps{$^O}`;
|
print `$ps{$^O}`;
|
||||||
};
|
};
|
||||||
$ps =~ s/[ \t\n]+/ /g;
|
|
||||||
$cmd = "perl -e ".::shell_quote_scalar($ps);
|
$cmd = "perl -e ".::shell_quote_scalar($ps);
|
||||||
}
|
}
|
||||||
return $cmd;
|
return $cmd;
|
||||||
|
|
|
@ -4012,7 +4012,7 @@ supports (See REPORTING BUGS).
|
||||||
|
|
||||||
B<xargs> offers some of the same possibilities as GNU B<parallel>.
|
B<xargs> offers some of the same possibilities as GNU B<parallel>.
|
||||||
|
|
||||||
B<xargs> deals badly with special characters (such as space, ' and
|
B<xargs> deals badly with special characters (such as space, \, ' and
|
||||||
"). To see the problem try this:
|
"). To see the problem try this:
|
||||||
|
|
||||||
touch important_file
|
touch important_file
|
||||||
|
@ -4020,6 +4020,8 @@ B<xargs> deals badly with special characters (such as space, ' and
|
||||||
ls not* | xargs rm
|
ls not* | xargs rm
|
||||||
mkdir -p "My brother's 12\" records"
|
mkdir -p "My brother's 12\" records"
|
||||||
ls | xargs rmdir
|
ls | xargs rmdir
|
||||||
|
touch 'c:\windows\system32\clfs.sys'
|
||||||
|
echo 'c:\windows\system32\clfs.sys' | xargs ls -l
|
||||||
|
|
||||||
You can specify B<-0>, but many input generators are not
|
You can specify B<-0>, but many input generators are not
|
||||||
optimized for using B<NUL> as separator but are optimized for
|
optimized for using B<NUL> as separator but are optimized for
|
||||||
|
@ -4028,7 +4030,7 @@ B<sed>, B<tar -v>, B<perl> (B<-0> and \0 instead of \n), B<locate>
|
||||||
(requires using B<-0>), B<find> (requires using B<-print0>), B<grep>
|
(requires using B<-0>), B<find> (requires using B<-print0>), B<grep>
|
||||||
(requires user to use B<-z> or B<-Z>), B<sort> (requires using B<-z>).
|
(requires user to use B<-z> or B<-Z>), B<sort> (requires using B<-z>).
|
||||||
|
|
||||||
So GNU B<parallel>'s newline separation can be emulated with:
|
GNU B<parallel>'s newline separation can be emulated with:
|
||||||
|
|
||||||
B<cat | xargs -d "\n" -n1 I<command>>
|
B<cat | xargs -d "\n" -n1 I<command>>
|
||||||
|
|
||||||
|
|
|
@ -816,6 +816,10 @@ Will that require 2x record size memory?
|
||||||
|
|
||||||
Will that require 2x block size memory?
|
Will that require 2x block size memory?
|
||||||
|
|
||||||
|
=head2 Logo
|
||||||
|
|
||||||
|
The logo is inpired by the Cafe Wall illusion. The font is DejaVu Sans.
|
||||||
|
|
||||||
|
|
||||||
=head1 Historical decisions
|
=head1 Historical decisions
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue