{"id":185002,"date":"2009-05-14T00:00:00","date_gmt":"2010-08-05T14:57:41","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/research\/msr-research-item\/mark-region-and-other-advances-in-garbage-collection\/"},"modified":"2016-09-09T09:51:01","modified_gmt":"2016-09-09T16:51:01","slug":"mark-region-and-other-advances-in-garbage-collection","status":"publish","type":"msr-video","link":"https:\/\/www.microsoft.com\/en-us\/research\/video\/mark-region-and-other-advances-in-garbage-collection\/","title":{"rendered":"Mark-Region and Other Advances in Garbage Collection"},"content":{"rendered":"<div class=\"asset-content\">\n<p>Programmers are increasingly choosing managed languages for modern<br \/>\napplications, which rely on garbage collection to manage dynamically<br \/>\nallocated objects.  The garbage collector directly determines program<br \/>\nperformance by making a classic space-time tradeoff that seeks to<br \/>\nprovide space efficiency, fast reclamation, and mutator performance.<br \/>\nThe three canonical tracing garbage collectors: semi-space,<br \/>\nmark-sweep, and mark-compact each sacrifice one objective.  This talk<br \/>\ndescribes a collector family, called mark-region and introduces<br \/>\nopportunistic defragmentation, which mixes copying and marking in a<br \/>\nsingle pass.  Combining both, we implement immix, a novel high<br \/>\nperformance garbage collector that for the first time achieves all<br \/>\nthree performance objectives simultaneously.  The key insight is to<br \/>\nallocate and reclaim memory in contiguous regions, at a coarse block<br \/>\ngrain when possible and otherwise reclaim in groups of finer grain<br \/>\nlines.  We show that immix outperforms existing canonical algorithms,<br \/>\nimproving total application performance by 7 to 25% on average across<br \/>\n20 benchmarks.  As the mature space in a generational collector, immix<br \/>\nmatches or beats a highly tuned generational collector, e.g., it<br \/>\nimproves total performance for SPECjbb by 5%.  These innovations and<br \/>\nthe identification of a new family of collectors open new<br \/>\nopportunities for garbage collector design.<\/p>\n<\/div>\n<p><!-- .asset-content --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Programmers are increasingly choosing managed languages for modern applications, which rely on garbage collection to manage dynamically allocated objects. The garbage collector directly determines program performance by making a classic space-time tradeoff that seeks to provide space efficiency, fast reclamation, and mutator performance. The three canonical tracing garbage collectors: semi-space, mark-sweep, and mark-compact each sacrifice [&hellip;]<\/p>\n","protected":false},"featured_media":289928,"template":"","meta":{"msr-url-field":"","msr-podcast-episode":"","msrModifiedDate":"","msrModifiedDateEnabled":false,"ep_exclude_from_search":false,"_classifai_error":"","msr_hide_image_in_river":0,"footnotes":""},"research-area":[],"msr-video-type":[],"msr-locale":[268875],"msr-post-option":[],"msr-session-type":[],"msr-impact-theme":[],"msr-pillar":[],"msr-episode":[],"msr-research-theme":[],"class_list":["post-185002","msr-video","type-msr-video","status-publish","has-post-thumbnail","hentry","msr-locale-en_us"],"msr_download_urls":"","msr_external_url":"https:\/\/youtu.be\/keAs67GtJwM","msr_secondary_video_url":"","msr_video_file":"","_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video\/185002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/types\/msr-video"}],"version-history":[{"count":0,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video\/185002\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media\/289928"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/media?parent=185002"}],"wp:term":[{"taxonomy":"msr-research-area","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/research-area?post=185002"},{"taxonomy":"msr-video-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-video-type?post=185002"},{"taxonomy":"msr-locale","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-locale?post=185002"},{"taxonomy":"msr-post-option","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-post-option?post=185002"},{"taxonomy":"msr-session-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-session-type?post=185002"},{"taxonomy":"msr-impact-theme","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-impact-theme?post=185002"},{"taxonomy":"msr-pillar","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-pillar?post=185002"},{"taxonomy":"msr-episode","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-episode?post=185002"},{"taxonomy":"msr-research-theme","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/research\/wp-json\/wp\/v2\/msr-research-theme?post=185002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}