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!


On Thursday, July 25, 2019 at 12:53:37 AM UTC-4, Ben Noordhuis wrote:
>
> On Wed, Jul 24, 2019 at 6:25 PM Marsha <purp...@gmail.com <javascript:>> 
> wrote: 
> > 
> > If a node application uses very large  memory (e.g., 512GB, 1024GB 
> etc.), about how long might it be taken to do garbage collection by the 
> latest V8? 
> > 
> > Could V8 be trusted to run large in-memory applications? 
>
> Your question is poorly phrased. The garbage collector performs work 
> relative to the _live_ set of objects. Sweeping a 1 TB heap with only 
> one live object is instantaneous; sweeping a 1 GB heap with 1 million 
> objects is not. It's impossible to give an accurate answer without 
> knowing the details of your application. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/e8507781-21bf-4c77-b33b-77e6737ab0cc%40googlegroups.com.

Reply via email to