bug-findutils
[Top][All Lists]
Advanced

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

[bug #33207] updatedb (findutils-locate) has a memory leak on large nfs


From: Eric Blake
Subject: [bug #33207] updatedb (findutils-locate) has a memory leak on large nfs mounts, the index is not complete
Date: Fri, 20 May 2011 23:57:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.6.17-1.fc14 Firefox/3.6.17

Follow-up Comment #12, bug #33207 (project findutils):

Yes, POSIX is explicit that if a directory is modified during reading,
readdir() might return an entry zero times (the new entry was inserted prior
to the point where readdir is traversing) or more than once (adding an entry
reshuffled other entries, such that a previously read entry now falls after
the point where readdir is traversing); and it is made worse by the fact that
readdir is allowed to cache multiple entries rather than making a syscall on
ever readdir() call.  That is, there is no atomicity with directory reading,
and portable apps have to be prepared for the worst.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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