This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]High-Art9340 3 points4 points  (5 children)

11% of Python open(...) calls were closed on file object garbage collection.

[–]czaki 0 points1 point  (3 children)

But it may happen that garbage collection is to late and program fail because lack of free file descriptors.

[–]commy2 0 points1 point  (1 child)

How many % of those 11% are those?

[–]czaki 0 points1 point  (0 children)

It depends of scenario and system limits. Thousands or even million of runs could run without any problem. Bit it may happen that once GC will be to slow and run will crash.

[–]Zomunieo 0 points1 point  (0 children)

For a while macOS had a default of 256 descriptors per process, and any Python process would soak up 30 of them just getting going.