From 0e181024c00b746a930aab6a0cfd9162d7b67ae4 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Sat, 18 Dec 2010 05:27:46 +0000 Subject: sort: use at most 8 threads by default * src/sort.c (main): If --parallel isn't specified, restrict the number of threads to 8 by default. If the --parallel option is specified, then allow any number of threads to be set, independent of the number of processors on the system. * doc/coreutils.texi (sort invocation): Document the changes to determining the number of threads to use. Mention the memory overhead when using multiple threads. * tests/misc/sort-spinlock-abuse: Allow single core systems that support pthreads. * tests/misc/sort-stale-thread-mem: Likewise. * tests/misc/sort-unique-segv: Likewise. * NEWS: Mention the change in behaviour. --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 484ed5ccc..7eda1b231 100644 --- a/NEWS +++ b/NEWS @@ -27,6 +27,12 @@ GNU coreutils NEWS -*- outline -*- sort -m -o f f ... f no longer dumps core when file descriptors are limited. +** Changes in behavior + + sort will not create more than 8 threads by default due to diminishing + performance gains. Also the --parallel option is no longer restricted + to the number of available processors. + ** New features split accepts the --number option to generate a specific number of files. -- cgit v1.2.3-70-g09d2