{"id":2666,"date":"2013-09-04T16:42:48","date_gmt":"2013-09-04T05:42:48","guid":{"rendered":"http:\/\/blog.mozilla.org\/nnethercote\/?p=2666"},"modified":"2013-09-04T16:42:48","modified_gmt":"2013-09-04T05:42:48","slug":"memshrink-progress-week-113-116","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/nnethercote\/2013\/09\/04\/memshrink-progress-week-113-116\/","title":{"rendered":"MemShrink progress, week 113&#8211;116"},"content":{"rendered":"<p>It&#8217;s been a relatively quiet four weeks for MemShrink, with <a href=\"https:\/\/bugzilla.mozilla.org\/buglist.cgi?list_id=7814444&amp;resolution=FIXED&amp;query_based_on=MemShrink%20bugs%20resolved%20in%20the%20past%20four%20weeks&amp;status_whiteboard_type=allwordssubstr&amp;chfieldto=2013-09-03&amp;chfield=bug_status&amp;query_format=advanced&amp;chfieldfrom=2013-08-06&amp;chfieldvalue=RESOLVED&amp;status_whiteboard=MemShrink&amp;bug_status=RESOLVED&amp;bug_status=VERIFIED&amp;bug_status=CLOSED&amp;known_name=MemShrink%20bugs%20resolved%20in%20the%20past%20four%20weeks\">17 bugs fixed<\/a>.\u00a0 (Relatedly, in today&#8217;s MemShrink meeting we only had to triage 10 bugs, which is the lowest we&#8217;ve had for ages.)\u00a0 Among the fixed bugs were lots for B2G leaks and leak-like things, many of which are hard to explain, but are important for the phone&#8217;s stability.<\/p>\n<p>Fabrice Desr\u00e9 made a couple of notable B2G non-leak fixes.<\/p>\n<ul>\n<li>He <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=864932\">rewrote the wifi workers as C++ code<\/a>.\u00a0 This reduces the main process&#8217; resident memory consumption by about 3.5 MiB, and its virtual memory consumption by about 6 MiB.\u00a0 That&#8217;s a big deal in the current B2G devices, which only have ~100 MiB of RAM available to B2G.<\/li>\n<li>He <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=806374\">ensured that wallpaper images and ringtones weren&#8217;t stored in the settings database via <code>data:<\/code> URIs<\/a>(!)\u00a0 This is something we&#8217;d seen bloating memory profiles for quite some time.<\/li>\n<\/ul>\n<p>On desktop, Firefox users who view about:memory may notice that it now sometimes mentions more than one process.\u00a0 This is due to the <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=870100\">thumbnails child process<\/a>, which generates the thumbnails seen on the new tab page, and which occasionally is spawned and runs briefly in the background.\u00a0 about:memory copes with this child process ok, but the <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=911639\">mechanism it uses is sub-optimal<\/a>, and I&#8217;m planning to rewrite it to be nicer and scale better in the presence of multiple child processes, because that&#8217;s a direction we&#8217;re <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=906839\">heading in<\/a>.<\/p>\n<p>Finally, some sad news:\u00a0 Justin Lebar, whose name should be familiar to any regular reader of these MemShrink reports, has left Mozilla.\u00a0 Justin was a core MemShrink-er from the very beginning, and contributed greatly to the success of the project.\u00a0 Thanks, Justin, and best of luck in the future!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a relatively quiet four weeks for MemShrink, with 17 bugs fixed.\u00a0 (Relatedly, in today&#8217;s MemShrink meeting we only had to triage 10 bugs, which is the lowest we&#8217;ve had for ages.)\u00a0 Among the fixed bugs were lots for B2G leaks and leak-like things, many of which are hard to explain, but are important [&hellip;]<\/p>\n","protected":false},"author":139,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4550,30,4544,4546],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2666"}],"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=2666"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/posts\/2666\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/media?parent=2666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/categories?post=2666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/nnethercote\/wp-json\/wp\/v2\/tags?post=2666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}