As I spawn several processes in a loop, I hit the maximum number of open files handles and the for loop breaks.
When I count the open file handles using
lsof I get:
$ lsof | wc -l 1464377
$ sysctl fs.file-nr fs.file-nr = 35328 0 6553201
I expected the first number to be 1464377.
I have a couple of questions:
What's the difference between the output of lsof (1464377) and file-nr (35328).
The maximum seems to be 6553201, which looks rather arbitrary. What's the maximum value for this number?