[Swift-user] Too many open file descriptors

Tim Armstrong tim.g.armstrong at gmail.com
Fri Aug 21 15:44:41 CDT 2015


Nice catch!

On 21 August 2015 at 12:42, Justin M Wozniak <wozniak at mcs.anl.gov> wrote:

> Hi
>      Sorry about that- it looks like we missed the point in the docs for
> this new Tcl feature that it returns an open file descriptor.  We will
> close it as you suggest.
>      Thanks
>      Justin
>
> On 08/21/2015 08:19 AM, Peter Wortmann wrote:
> > Hi swift-user
> >
> > We are using Swift/T in a way that does a lot of "@stdout=..."
> > indirections. However, this seems to lead to Turbine running out of file
> > descriptors at a certain point. A bit of poking showed that this calls
> > through to "mktemp" in "files.tcl", which states:
> >
> >    # This can fail with "too many open files"
> >    file tempfile result $tmpdir/.turbine
> >
> > Is this a known bug? I tried to work around it, and simply closing the
> > returned file channel seems to work:
> >
> >    close [file tempfile result $tmpdir/.turbine]
> >
> > Is there a reason to keep it open?
> >
> > Greetings,
> >    Peter
> >
> > _______________________________________________
> > Swift-user mailing list
> > Swift-user at ci.uchicago.edu
> > https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
>
> --
> Justin M Wozniak
>
> _______________________________________________
> Swift-user mailing list
> Swift-user at ci.uchicago.edu
> https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20150821/d4bb27c6/attachment.html>


More information about the Swift-user mailing list