Closed
Bug 465923
Opened 17 years ago
Closed 11 years ago
Huge memory footprint on V8 benchmarks
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: s.chylek, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Build Identifier:
I have run v8 benchmarks under TraceMonkey shell and I have noticed that they have huge virtual memory peak. For comparison I have also run v8 shell:
http://code.google.com/apis/v8/raytrace.js (TM 114MB / V8 14MB)
http://code.google.com/apis/v8/earley-boyer.js (TM 96MB / V8 17MB)
http://code.google.com/apis/v8/deltablue.js (TM 42MB / 14MB)
I measured this by examining /proc/[PID]/status file.
Reproducible: Always
| Reporter | ||
Updated•17 years ago
|
Version: unspecified → Trunk
Updated•17 years ago
|
Severity: enhancement → normal
Updated•17 years ago
|
Summary: Huge memory footprint on V8 benchmarks → TM: Huge memory footprint on V8 benchmarks
Comment 1•17 years ago
|
||
the shell doesn't run the GC by default.
| Reporter | ||
Comment 2•17 years ago
|
||
Ok, I have run the tests with GCZeal 1 and the peak for raytrace.js is less than 6MB. However the execution time has changed from 3.44 sec to over 120 sec, so the choice is just between extremes.
Comment 3•17 years ago
|
||
GCZeal is a debugging tool. Its not meant for anything but debugging the GC and rooting. Did you try measuring the memory footprint in the browser?
| Reporter | ||
Comment 4•17 years ago
|
||
No, I'm focusing on the standalone shell right now. I suppose, that in the browser the GC would be triggered (and collect a lot of garbage if GCZeal can keep the memory peak under 6MB). But for the shell the problem remains, in case of limited resources it can be crucial.
Comment 5•17 years ago
|
||
Without -j, using -b <very-large-int-constant> would call JS_MaybeGC ever 16K backward branches and returns.
See also bug 465028.
Cc'ing Igor. Making the shell more realistic has to be a goal at this point, given how it's used at alioth.debian.org among other places.
/be
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 6•14 years ago
|
||
When I run the v8 benchmark suite, I still see way higher memory usage with the js shell vs. the d8 shell. Not sure how valid the comparison is, though.
Summary: TM: Huge memory footprint on V8 benchmarks → Huge memory footprint on V8 benchmarks
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 8•11 years ago
|
||
js: 437008 maxresident k
d8: 660896 maxresident k
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•