[Swift-user] Too many open file descriptors

Peter Wortmann pw410 at cam.ac.uk
Mon Aug 24 06:54:10 CDT 2015


Hi

Okay, I was a bit unsure - the comment made it look deliberate. Thanks
for the confirmation!

Greetings,
  Peter

On 21/08/15 20:42, Justin M Wozniak 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
>




More information about the Swift-user mailing list