Increase the open file limit on OBS?
I maintain the vscode package. In the latest version, all systems and architectures on OBS started failing with `EMFILE: too many open files, open '/home/abuild/rpmbuild/BUILD/[blah]'` (i assume this is being thrown by a nodejs process). The package builds fine in a chroot on my Tumbleweed computer where `ulimit -aH` shows the limit for open files as 524288. Is it possible to reconfigure the OBS kernel to allow this many too?
On 12/8/23 11:23, Bruno Pitrus wrote:
I maintain the vscode package. In the latest version, all systems and architectures on OBS started failing with `EMFILE: too many open files, open '/home/abuild/rpmbuild/BUILD/[blah]'` (i assume this is being thrown by a nodejs process).
The package builds fine in a chroot on my Tumbleweed computer where `ulimit -aH` shows the limit for open files as 524288. Is it possible to reconfigure the OBS kernel to allow this many too?
This is probably something that should be brough up on the OBS mailing list instead or the IRC channel irc://irc.libera.chat/openSUSE-buildservice buildservice@lists.opensuse.org - Adam
On 12/8/23 11:23, Bruno Pitrus wrote:
I maintain the vscode package. In the latest version, all systems and architectures on OBS started failing with `EMFILE: too many open files, open '/home/abuild/rpmbuild/BUILD/[blah]'` (i assume this is being thrown by a nodejs process).
The package builds fine in a chroot on my Tumbleweed computer where `ulimit -aH` shows the limit for open files as 524288. Is it possible to reconfigure the OBS kernel to allow this many too?
Before opening the doors too wide, it'd IMO be better to understand where the current limits are respectively how many files the build attempts to open. E.g. there could be a massive resource leak which would better get fixed rather than applying a workaround in the build environment. Have a nice day, Berny
Since posting that, i have tried to bisect the apparent leak; instead it led me towards a range of commits that non-determinically either pass or fail, and they're about developing a new feature (sticky scroll). Seems ordinary software bloat to me.
fwiw i managed to hack the following workaround: https://build.opensuse.org/package/view_file/devel:tools:ide:vscode/increase...
participants (3)
-
Adam Majer
-
Bernhard Voelker
-
Bruno Pitrus