On Thu, Jul 25, 2019 at 5:47 PM purple lad <
purp...@gmail.com> wrote:
>
> I mean the case where an applications uses 1TB memory with tons of live objects. How long might it be taken for the V8 GC to work with the 1TB memory filled with tons of live objects?
>
> The V8 blog shows some data where it might take 100~ms for a normal website (
https://v8.dev/blog/concurrent-marking). But I am wondering how the performance will be for some extreme cases (i.e., 1TB heap filled with tons of live objects.)
>
> I know it is really impossible to give an accurate answer. But I just want to get very some basic ideas and estimations for the GC performance for very huge cases. Would the GC time on main thread be milli-second, second or even minutes level?
>
>
> Thank you!
A typical Node.js application often has 10,000s to 100,000s of live
objects. A major garbage collection cycle normally completes in under
10 milliseconds.
(In practice, most will be minor scavenges that complete in < .1 ms.)