Bug 89622
Summary: | http://bigsword.sinaapp.com/game.html uses way too much memory | ||
---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> |
Component: | JavaScriptCore | Assignee: | Filip Pizlo <fpizlo> |
Status: | NEW | ||
Severity: | Normal | CC: | eric, horky, simon.fraser, thorton, tonikitoo, yong.li.webkit |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://bigsword.sinaapp.com/game.html |
Filip Pizlo
We should investigate if there is some bug in JSC that is causing this.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Filip Pizlo
From webkit-dev:
"Chrome only needs about 180MB to load the page, but Safari needs almost 450MB and FireFox needs about 380MB. I only can check the memory usage with the developer tool in Chrome. So that's hard to know which statement resumed so huge memory in Safari & FireFox."
Filip Pizlo
<rdar://problem/11714835>
Simon Fraser (smfr)
REGION TYPE VIRTUAL
=========== =======
CG image 264K
CG shared images 1216K
CoreAnimation 12K
CoreServices 1376K
IOKit 16.0M
JS JIT generated code 256.0M
JS JIT generated code (reserved) 768.0M reserved VM address space (unallocated)
JS VM register file 4096K
JS garbage collector 34.6M
MALLOC 625.0M see MALLOC ZONE table below
MALLOC freed, no zone 13.3M
MALLOC guard page 48K
MALLOC metadata 540K
Memory tag=242 12K
Memory tag=251 36K
TC malloc 6272K
VM_ALLOCATE 16.1M
WebCore purgeable data 2132K
mapped file 125.4M
shared memory 11.3M
VIRTUAL ALLOCATION BYTES
MALLOC ZONE SIZE COUNT ALLOCATED % FULL
=========== ======= ========= ========= ======
JavaScriptCore FastMalloc_0x7fff7d8b8148 534.1M 2863601 307.6M 57%
DefaultMallocZone_0x10b033000 41.1M 42615 9643K 22%
GFXMallocZone_0x10b038000 36.0M 1599 830K 2%
DefaultPurgeableMallocZone_0x14e46f000 9192K 6 9188K 99%
DispatchContinuations_0x10b036000 4096K 21 1312 0%
CoreGraphics_0x7f882b816600 792K 12011 444K 56%
QuartzCore_0x7f882d801800 60K 820 49K 81%
x-alloc_0x7f882d839400 12K 16 672 5%
=========== ======= ========= ========= ======
TOTAL 625.0M 2920689 327.3M 52%
Simon Fraser (smfr)
Zone JavaScriptCore FastMalloc_0x7fff7d8b8148: 2863601 nodes (322546544 bytes)
COUNT BYTES AVG CLASS_NAME TYPE BINARY
===== ===== === ========== ==== ======
2862467 321862128 112.4 non-object
159 488448 3072.0 JSC::FunctionCodeBlock C++ JavaScriptCore
117 3744 32.0 WebCore::Pair C++ WebCore
109 2616 24.0 WebKit::WebString C++ WebKit2
68 56576 832.0 WebCore::CachedImage C++ WebCore
...
Horky
Similar phenomena can be found with below website too:
http://jawsjs.com/jawsjs/examples/example12.html