|
From: | Paolo Bonzini |
Subject: | Re: [PATCH] core-count: A new program to count the number of cpu cores |
Date: | Tue, 03 Nov 2009 13:41:06 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4 |
seq 1 13 | xargs --parallel -P4 1 5 9 13 2 6 10 3 7 11 4 8 12 (Note there's no -n). Same for seq 1 13 | xargs --parallel on a 4-core machine. This is _by design_ rearranging files, so it requires an option.Right, you're not auto decreasing -n, but when we read all args and we pass arguments round robin, the args will be distrubuted evenly to each parallel process. Does this really require a new option though? When -P is used, the arguments could be processed in any order anyway.
Especially since -P is not POSIX, I'd say no. Good catch. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |