Closed
Bug 390847
Opened 17 years ago
Closed 17 years ago
Large increase in private byte usage after the landing of bug 385393
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ispiked, Unassigned)
References
Details
(Keywords: perf, regression)
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Looking at the talos stats, there was a large increase in the number of private bytes allocated after the patch for bug 385393 was checked in.
Graph: http://graphs.mozilla.org/graph.html#spst=range&spstart=0&spend=1186162910&bpst=cursor&bpstart=0&bpend=1186162910&m1tid=8&m1bl=0&m1avg=0
Bonsai: http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=PhoenixTinderbox&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2007-08-01+20%3A00&maxdate=2007-08-01+22%3A00&cvsroot=%2Fcvsroot
Flags: blocking1.9?
Comment 1•17 years ago
|
||
Working Set numbers showed a similar increase
Comment 2•17 years ago
|
||
I suspect this related to that decreased number of GC runs, see bug 385393 comment 107. Less GC means that more garbage can be accumulated between runs.
Comment 4•17 years ago
|
||
The cause of reduced GC rate is very likely the unit-length string memo-ization change that went in along with the fast native bulk of the patch for bug 385393. The fast native changes should not have affected memory use, at least not in ways that feed back on the GC schedule.
As I said to Jesse, the way JS_MaybeGC tries to assess when to GC is like trying to tell time of day by measuring bathroom visit distribution. We should try to do better, using process data segment size, perhaps.
/be
Comment 5•17 years ago
|
||
Could this be applied to a test build and run against talos?
/be
Comment 6•17 years ago
|
||
(In reply to comment #5)
> Created an attachment (id=275859) [details]
> patch to try on that talos setup
>
> Could this be applied to a test build and run against talos?
This and bug 395828 came up in the perf meeting today. The js_NewStringCopyN call has already been changed to the version in this patch. Any objections to checking a version of this file with the unit string cache turned off? The test perf boxes are busy in maintenance or baseline work.
Comment 7•17 years ago
|
||
fixed by bug 395828.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 8•17 years ago
|
||
Does that mean this bug wasn't due to a decrease in GC frequency, but to a leak that we failed to diagnose at the time?
Comment 9•17 years ago
|
||
Sadly, yes. And a leak that depended on relative address order of certain malloc'ed allocations.
/be
Comment 10•17 years ago
|
||
Ok. Is there a bug on potentially tweaking the GC rate anyway? Or on changing the strategy so it's not "like trying to tell time of day by measuring bathroom visit distribution"?
Updated•17 years ago
|
Flags: in-testsuite-
You need to log in
before you can comment on or make changes to this bug.
Description
•