4 ms·
Disabling overcommit on V8 servers like Deno will be incredibly inefficient. Your process might only need ~100MB of memory or so but V8's cppgc caged heap requi
by laurencerowe 10mo ago
Disabling overcommit on V8 servers like Deno will be incredibly inefficient. Your process might only need ~100MB of memory or so but V8's cppgc caged heap requires a 64GB allocation in order to get a 32GB aligned area in which to contain its pointers. This is a security measure to prevent any possibility of out of cage access.
- silon42 10mo agoMaybe it should use MAP_NORESERVE ?
- laurencerowe 10mo agoI expect it does already, but I don’t think it would help here: > In mode 2 the MAP_NORESERVE flag is ignored. https://www.kernel.org/doc/Documentation/vm/overcommit-accounting https://www.kernel.org/doc/Documentation/vm/overcommit-accou...
- silon42 10mo agoHmm, we need setting 3 (more like 1.5) then.