[Swift-user] Too many open file descriptors

Peter Wortmann pw410 at cam.ac.uk
Fri Aug 21 08:19:20 CDT 2015


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




More information about the Swift-user mailing list