-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Too many open files" when creating universal image #76
Comments
It happens because you build a universal image (i.e. it contains a lot of modules) and Current open file limit is ridiculously low, it is something like 1024 files ( To avoid this error message please increase the file limit https://wiki.archlinux.org/index.php/Limits.conf (option Or you can disable |
Opening a lot of modules for processing requires high open-file-limit value. The default value is 1024 which is too low. Try to increase process limit to infinity first. If it does not work then try to increase soft limit to hard limit value. Closes #76
Opening a lot of kernel modules for processing requires high open-file-limit value. The default value is 1024 which is too low. Try to increase process limit to infinity first. If it does not work then try to increase soft limit to hard limit value. Closes #76
Opening a lot of kernel modules for processing requires high open-file-limit value. The default value is 1024 which is too low. Try to increase process limit to infinity first. If it does not work then try to increase soft limit to hard limit value. Closes #76
FYI, Go 1.19 will do this for you automatically: golang/go#46279 Perhaps worth adding a TODO to remove your workaround in a year or two, once you can drop support for Go 1.18 and older. Then there's less code to maintain :) |
Good to know about the upcoming 1.19 change. Thanks for pointing it out. |
I'm getting this error fairly often when creating a universal image with strip enabled, lines like:
/usr/lib/modules/rmd256.ko: pipe2: too many open files
or/usr/lib/modules/842_compress.ko: open /dev/null: too many open files
The text was updated successfully, but these errors were encountered: