This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible memory leak problem using "find"?


I have observed the page file usage in Windows Task Manger whilst running a
find command in cygwin. The usage steadily climbs up by about 0.5-1MB per
second whilst the command is running and then stops climbing when the
command is completed. The PF Usage does not return to the level it was out
before the command ran. If I run the "find" enough times I eventually run
out of memory and windows starts sending me error messages.

I'm running the command inside various scripts in bash-3.1. The effect
happens when running scripts that contain the find command and does not
happen when other scripts are run. In one script the find is run many times
inside a loop and in another script the find is only run once. The effect
on PF Usage is more noticable when the script with the loop is run.

the find command is being run on a directory structure in Rational
Clearcase. The memory 'disappears' both with a simple find eg

/etc/usr/> find . -name my_file

and also with a more complicated find:

/etc/usr/> find . -name my_file -exec sed 's/foo/bar' {} /;

I couldn't see anything similar to this in the archives so I thought I
would report it.



(See attached file: cygcheck.out)

HSBC Bank plc
Registered Office: 8 Canada Square, London E14 5HQ
Registered in England - Number 14259
Authorised and regulated by the Financial Services Authority


This E-mail is confidential.                      
It may also be legally privileged. If you are not the addressee you may
not copy, forward, disclose or use any part of it. If you have received
this message in error, please delete it and all copies from your system
and notify the sender immediately by return E-mail.
Internet communications cannot be guaranteed to be timely secure, error
or virus-free. The sender does not accept liability for any errors or

Attachment: cygcheck.out
Description: Binary data

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]