[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort -S 120M ignored w/ pipes

From: Michael McFarland
Subject: sort -S 120M ignored w/ pipes
Date: Mon, 1 Sep 2003 17:10:42 -0700 (PDT)

   If I have a 300M text-file to sort, and I run 'sort
in.txt > out.txt' (with sort 5.0.90), sort will use
roughly 25M of memory, and create temp-files of
roughly 16M in size.

   If I call 'sort -S 120M in.txt > out.txt', or 'sort
-S120M < in.txt > out.txt', the job will use much more
memory (as expected), create much larger tempfiles
(77M in my test case), and generally complete much

   However, if I call 'cat in.txt | sort -S 120M >
out.txt', sort seems to ignore the '-S' parameter and
behave exactly as if it wasn't provided.  Is this a
bug or somehow expected behavior?


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

reply via email to

[Prev in Thread] Current Thread [Next in Thread]