Package: moreutils
Version: 0.36
Severity: minor
Tags: patch
Hello,
parallel(1) says `The default is to run one job per CPU core.' but the
code shows parallel uses the result of sysconf(_SC_NPROCESSORS_ONLN);
which doesn't give the number of cores, but the number of processors,
i.e. of threads in case the cores are multithreaded for instance. The
attached patch just removes the "core" word to leave just "CPU". It
could indeed be useful to be able to specify e.g. -j percore to tell
to start one job per core of the machine, in case the workload would
not benefit from multithreaded cores at all, there could also be -j
persocket, but determining the number of cores/sockets is far from easy,
I'd advise using libtopology to do so in a portable way, I've recently
packaged it, see bug#535615.
Samuel
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages moreutils depends on:
ii libc6 2.9-12 GNU C Library: Shared libraries
ii perl 5.10.0-23 Larry Wall's Practical Extraction
moreutils recommends no packages.
Versions of packages moreutils suggests:
pn libtime-duration-perl <none> (no description available)
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
-- no debconf information
--
Samuel Thibault <[email protected]>
<s> bah, j'aime bien les feux d'artifices, mais j'ai peur de me prendre un
boeing sur le coin de la gueule si je vais sur le pont de brooklyn
-+- #ens-mim - 11 septembre forever -+-
--- parallel.docbook.orig 2009-07-11 15:35:11.000000000 +0200
+++ parallel.docbook 2009-07-11 15:35:18.000000000 +0200
@@ -48,7 +48,7 @@
<para><command>parallel</command> runs the specified command,
passing it a single one of the specified arguments. This is
repeated for each argument. Jobs may be run in
- parallel. The default is to run one job per CPU core.</para>
+ parallel. The default is to run one job per CPU.</para>
</refsect1>