{"id":2850,"date":"2014-03-31T12:34:21","date_gmt":"2014-03-31T01:34:21","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=2850"},"modified":"2014-03-31T12:34:21","modified_gmt":"2014-03-31T01:34:21","slug":"generational-gc-has-landed","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2014\/03\/31\/generational-gc-has-landed\/","title":{"rendered":"Generational GC has landed"},"content":{"rendered":"<p>Big news: late last week, <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=619558\">generational garbage collection<\/a> landed. It was backed out at first due to some test failures, but then re-landed and appears to have stuck.<\/p>\n<p>This helps with performance. There are certain workloads where generational GC makes the code run much faster, and Firefox hasn&#8217;t been able to keep up with Chrome on these. For example, it has made Firefox slightly faster on the Octane benchmark, and there is apparently quite a bit of headroom for additional improvements.<\/p>\n<p>Interestingly, its effect on memory usage has been small. I was hoping that the early filtering of many short-lived objects would make the tenured heap grow more slowly and thus reduce memory usage, but the addition of other structures (such as the nursery and store buffers) appears to have balanced that out.<\/p>\n<p>The changes to the graphs at <a href=\"https:\/\/areweslimyet.com\/\">AWSY<\/a> have been all within the noise, with the exception of the &#8220;Fresh start&#8221; and &#8220;Fresh start [+30s]&#8221; measurements in the &#8220;explicit&#8221; graph, both of which ticked up slightly. This isn&#8217;t cause for concern, however, because the corresponding &#8220;resident&#8221; graph hasn&#8217;t increased accordingly, and &#8220;resident&#8221; is the real metric of interest.<\/p>\n<p>&#8220;Compacting Generational GC&#8221; is the #1 item on the current <a href=\"https:\/\/blog.mozilla.org\/nnethercote\/2013\/06\/15\/memshrinks-2nd-birthday\/\">MemShrink &#8220;Big Ticket Items&#8221; list<\/a>. Hopefully the <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=650161\">&#8220;compacting&#8221;<\/a> part of that, which still remains to be done, will produce some sizeable memory wins.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Big news: late last week, generational garbage collection landed. It was backed out at first due to some test failures, but then re-landed and appears to have stuck. This helps with performance. There are certain workloads where generational GC makes the code run much faster, and Firefox hasn&#8217;t been able to keep up with Chrome [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,4555,4544,4546],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2850"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/users\/139"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/comments?post=2850"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2850\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=2850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=2850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=2850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}