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)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ispiked, Unassigned)

References

Details

(Keywords: perf, regression)

Attachments

(1 file)

Working Set numbers showed a similar increase
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.
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
Could this be applied to a test build and run against talos? /be
(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.
fixed by bug 395828.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
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?
Sadly, yes. And a leak that depended on relative address order of certain malloc'ed allocations. /be
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"?
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: