diff options
author | Paul Eggert <eggert@CS.UCLA.EDU> | 2009-03-09 14:56:13 -0700 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-03-18 21:44:45 +0100 |
commit | f31ea18146a686d1ce838a9b6e6785cbfae35bbf (patch) | |
tree | f8f090648dc3252c167180368169bf4b4917589f /doc/coreutils.texi | |
parent | 8f7fae59727e0a050a4833705a6f7849ba2c4531 (diff) | |
download | coreutils-f31ea18146a686d1ce838a9b6e6785cbfae35bbf.tar.xz |
tests: add another sort/nmerge test
* tests/Makefile.am (TESTS): Add sort-merge-fdlimit.
* tests/misc/sort-merge-fdlimit: New file.
* doc/coreutils.texi (sort invocation): Document that we now silently
lower nmerge if necessary.
Patch by Paul Eggert, Nima Nikzad, Max Chang, Alexander Nguyen,
Sahil Amoli, and Nick Graham.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r-- | doc/coreutils.texi | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 6f8c19761..04db67663 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -3937,13 +3937,17 @@ and I/0. Conversely a small value of @var{nmerge} may reduce memory requirements and I/0 at the expense of temporary storage consumption and merge performance. -The value of @var{nmerge} must be at least 2. +The value of @var{nmerge} must be at least 2. The default value is +currently 16, but this is implementation-dependent and may change in +the future. The value of @var{nmerge} may be bounded by a resource limit for open -file descriptors. Try @samp{ulimit -n} or @samp{getconf OPEN_MAX} to -to display the limit for a particular system. -If the value of @var{nmerge} exceeds this limit, then @command{sort} will -issue a warning to standard error and exit with a nonzero status. +file descriptors. The commands @samp{ulimit -n} or @samp{getconf +OPEN_MAX} may display limits for your systems; these limits may be +modified further if your program already has some files open, or if +the operating system has other limits on the number of open files. If +the value of @var{nmerge} exceeds the resource limit, @command{sort} +silently uses a smaller value. @item -o @var{output-file} @itemx --output=@var{output-file} |