{"id":7,"date":"2008-07-23T21:30:30","date_gmt":"2008-07-24T04:30:30","guid":{"rendered":""},"modified":"2011-03-30T10:25:50","modified_gmt":"2011-03-30T17:25:50","slug":"portage_parallel_builds","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/zmedico\/2008\/07\/23\/portage_parallel_builds\/","title":{"rendered":"Portage now supports building multiple packages in parallel"},"content":{"rendered":"<p>In <a href=\"http:\/\/packages.gentoo.org\/package\/sys-apps\/portage\">&gt;=portage-2.2_rc2<\/a> there are a few new emerge options that many Gentoo users will probably be interested in:<\/p>\n<pre>--jobs JOBS\r\n\tSpecifies the number of packages to build simultaneously.\r\n\tAlso see the related --load-average option.\r\n\r\n--keep-going\r\n\tContinue as much as possible after an error. When an error\r\n\toccurs, dependencies are recalculated for remaining packages\r\n\tand any with unsatisfied dependencies are automatically\r\n\tdropped. Also see the related --skipfirst option.\r\n\r\n--load-average LOAD\r\n\tSpecifies that no new builds should be started if there are\r\n\tother builds running and the load average is at least LOAD (a\r\n\tfloating-point number). This option is recommended for use in\r\n\tcombination with --jobs in order to avoid excess load. See\r\n\tmake(1) for information about analogous options that should\r\n\tbe configured via MAKEOPTS in make.conf(5).<\/pre>\n<p>Here is some sample parallel build output from a <a href=\"http:\/\/packages.gentoo.org\/package\/dev-util\/catalyst\">catalyst<\/a> stage2 build, with emerge&#8217;s new &#8211;jobs option enabled:<\/p>\n<pre>&gt;&gt;&gt; Building (1 of 10) sys-devel\/gettext-0.17 for \/\r\n&gt;&gt;&gt; Building (2 of 10) sys-libs\/zlib-1.2.3-r1 for \/\r\n&gt;&gt;&gt; Building (3 of 10) virtual\/libintl-0 for \/\r\n&gt;&gt;&gt; Building (4 of 10) dev-util\/unifdef-1.20 for \/\r\n&gt;&gt;&gt; Installing virtual\/libintl-0 to \/\r\n&gt;&gt;&gt; Installing dev-util\/unifdef-1.20 to \/\r\n&gt;&gt;&gt; Building (5 of 10) sys-kernel\/linux-headers-2.6.23-r3 for \/\r\n&gt;&gt;&gt; Installing sys-libs\/zlib-1.2.3-r1 to \/\r\n&gt;&gt;&gt; Jobs: 3 of 10 complete, 2 running               Load avg: 3.44, 1.46, 0.69<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In &gt;=portage-2.2_rc2 there are a few new emerge options that many Gentoo users will probably be interested in: &#8211;jobs JOBS Specifies the number of packages to build simultaneously. Also see the related &#8211;load-average option. &#8211;keep-going Continue as much as possible after an error. When an error occurs, dependencies are recalculated for remaining packages and any &hellip; <a href=\"https:\/\/blogs.gentoo.org\/zmedico\/2008\/07\/23\/portage_parallel_builds\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Portage now supports building multiple packages in parallel<\/span><\/a><\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":1,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/posts\/7\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/zmedico\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}