Fall cleaning: Optimizing V8 memory consumption
v8project.blogspot.com
Fall cleaning: Optimizing V8 memory consumption
1–10 of 43 posts
Re: Fall cleaning: Optimizing V8 memory consumption
#2Re: Fall cleaning: Optimizing V8 memory consumption
#31) Reducing the V8 heap page size from 1M to 512KB ... results in 2x memory reduction
2) The memory visualization tool helped us discover that the background parser would keep an entire zone alive long after the code was already compiled. ... resulted in reduced average and peak memory usage.
3) C++ compiler not packing structs optimally for V8s case - manual packing saves some peak memory.
Re: Fall cleaning: Optimizing V8 memory consumption
#4Mostly sounds like a case of fixing up some non-optimal defaults - the real hard part is gathering data from real world use cases which is required to make your defaults better. 1) Reducing the V8 heap page size from 1M to 512KB ... results in 2x memory reduction 2) The memory visualization tool helped us discover that the background parser would keep an entire zone alive long after the code was already compiled. ...…
Re: Fall cleaning: Optimizing V8 memory consumption
#5 "Reducing the V8 heap page size from 1M to 512KB results
in a smaller memory footprint when not many live objects
are present and lower overall memory fragmentation
up to 2x."
Is it common to say something's shrunk by 2x? Why not say 0.5x (or 50%, half, etc.) I understand growth of 2x and assume this is a mistake, though I'm open to convention.Re: Fall cleaning: Optimizing V8 memory consumption
#6I was confused by the article. "Reducing the V8 heap page size from 1M to 512KB results in a smaller memory footprint when not many live objects are present and lower overall memory fragmentation up to 2x." Is it common to say something's shrunk by 2x? Why not say 0.5x (or 50%, half, etc.) I understand growth of 2x and assume this is a mistake, though I'm open to convention.
Re: Fall cleaning: Optimizing V8 memory consumption
#7I was confused by the article. "Reducing the V8 heap page size from 1M to 512KB results in a smaller memory footprint when not many live objects are present and lower overall memory fragmentation up to 2x." Is it common to say something's shrunk by 2x? Why not say 0.5x (or 50%, half, etc.) I understand growth of 2x and assume this is a mistake, though I'm open to convention.
Re: Fall cleaning: Optimizing V8 memory consumption
#8Hope they don't adversely affect Node's performance with this tuning for low memory devices
Re: Fall cleaning: Optimizing V8 memory consumption
#9Re: Fall cleaning: Optimizing V8 memory consumption
#10Hope they don't adversely affect Node's performance with this tuning for low memory devices