Back to Blog
Utorrent download mac os big sur7/6/2023 Starting with Big Sur that changed, setrlimit can now set RLIMIT_NOFILES to RLIM_INFINITY, I believe it's still capped at the kernel level to kern.maxfilesperproc, but subsequent calls to getrlimit will report current limit as infinity. Because the cap wasn't raised, max_open_files() returned a sensible number and things kept on working. These limits are not reported by getrlimit, instead it reports the hard cap as RLIM_INFINITY, but setrlimit did not permit you to raise current cap to infinity - it would fail. Prior to Big Sur, attempting to raise these limits past the kernel caps via setrlimit would either silently fail or return EINVAL. It turns out system resource limits, including the maximum number of open file descriptors, are capped at the kernel level by various sysctl kernel variables. I did some investigating on why this bug only manifests on Big Sur.
0 Comments
Read More
Leave a Reply. |