On Wednesday 2023-01-25 14:35, Adam Majer wrote:
On 12/23/22 09:54, Eric Schirra wrote:
Hello all,
I have now noticed with a wide variety of packages that they build in OBS itself, but not locally using osc. It comes then memory error. e.g.: RangeError: WebAssembly.Instance(): Out of memory: wasm memory
ulimit -d $limit echo "Memory limit set to ${limit}KB"
This is kind of this legacy mechanism that is used to prevent the local build from blowing up and stalling your machine (which doesn't always work anyway). But, if you run NodeJS with webassembly, it will allocate a whole 4GB address space for every instance, even if it uses just a few bytes.
But if it only uses a few bytes, then the -d limit should not normally be reached assuming standard overcommit (or should it?); rather, the -v limit would be relevant.