bug-gnu-utils
[Top][All Lists]
Advanced

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

grep: unusually high memory use with '-o' option


From: Justin Pryzby
Subject: grep: unusually high memory use with '-o' option
Date: Sat, 10 Dec 2005 20:34:42 -0500
User-agent: Mutt/1.5.11

Please see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=280187>
where it is documented that grep -o uses increasing amount of memory,
probably indicating a leak.  You can test with:

  grep '^c..........' /usr/share/dict/words >/tmp/words
  ./build-tree/grep-2.5.1/src/grep -of /tmp/words /usr/share/dict/words

It seems to me that after each output, grep should return to the
approximate memory usage as at the previous output.  However, the
memory usage instead increases, consistent with the report.

-- 
Clear skies,
Justin




reply via email to

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