Closed onlyjob closed 5 years ago
I see three options:
max_fds
– make nocache
work on the first N FDs, where we could pick N to be a million or 100k. That makes the fix trivial. We can implement a flag for this if people care.Given that it caused build failures for some people, 3) is not a real option I think. Option 2) is easy to implement correctly.
Thoughts?
I’ll take silence as assent and merge these two commits.
@Feh, sorry for digging in old issues. Looking in the getrlimit documentation, I believe the off-by-one issue mentioned in your commit message was introduced (instead of fixed). Left a comment for you to review in the code: https://github.com/Feh/nocache/commit/ce5c18701b1499195d0de7380037efee27a17722#r39007823
As reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918464#50 nocache may fail as follows:
Here is what Sven Joachim wrote about it: