logoalt Hacker News

laurencerowelast Friday at 8:49 PM1 replyview on HN

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.


Replies

silon42last Friday at 9:26 PM

Maybe it should use MAP_NORESERVE ?

show 1 reply