bug-findutils
[Top][All Lists]
Advanced

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

[bug #37356] excessive memory usage when using -printf and %A %C or %T


From: Andreas Metzler
Subject: [bug #37356] excessive memory usage when using -printf and %A %C or %T
Date: Sat, 15 Sep 2012 13:43:45 +0000
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.7) Gecko/20100101 Firefox/10.0.7 Iceweasel/10.0.7

URL:
  <http://savannah.gnu.org/bugs/?37356>

                 Summary: excessive memory usage when using -printf and %A %C
or %T
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Sa 15 Sep 2012 15:43:45 CEST
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Nemo Maelstrom Thorx
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None

    _______________________________________________________

Details:

Hello,

Nemo Maelstrom Thorx reported the following issue in the Debian bts
<http://bugs.debian.org/687358>. Afaict it applies to both 4.4.2 and 4.5.10.
As it also is found in the oldfind variant this should not be a duplicate of
<http://savannah.gnu.org/bugs/?34079>

cu Andreas

---------------------------------
Find appears to consume and not release large amounts of memory when asked to
print time directives with custom formatting. ie, %Ak, %Ck and %Tk.

The rate of memory consumption appears to correlate with the number of these
directives used

Observable by running, for eg:
# find / -printf "[%y %11s %TY.%Tm.%Td %TH:%TM]\t%p\n"

...and simultaneously 'top' or other memory monitor. Resident size grows
without check.

With enough files being found, this can grow to trigger an OOM.

I've marked this as upstream, as I've since observed the same behaviour on
find 4.4.2 in CentOS (as well as in debian derivatives mint and ubuntu)

Experimental 4.5 also appears to have the same issue.

However 4.2 on an older non-debian system did not have this issue.

.../Nemo
---------------------------------





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37356>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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