{"id":496,"date":"2012-03-15T22:40:56","date_gmt":"2012-03-15T20:40:56","guid":{"rendered":"\/\/www.mcgill.org.za\/stuff\/?p=496"},"modified":"2012-03-15T23:03:40","modified_gmt":"2012-03-15T21:03:40","slug":"compiling-deb-with-debianrules-in-parallel","status":"publish","type":"post","link":"https:\/\/www.mcgill.org.za\/stuff\/archives\/496","title":{"rendered":"Compiling deb with debian\/rules in parallel"},"content":{"rendered":"<p>Make supports parallel compiling, with the Linux kernel compile recommending you make use of your expensive CPU cores something like this:<\/p>\n<pre>make -j 4<\/pre>\n<p>You can even do that if you don&#8217;t have a multiprocessor system, since you have a multitasking operating system.<\/p>\n<p>Today, while recompiling ImageMagick with FFT support, I found you can compile in parallel like this:<\/p>\n<pre>apt-get source imagemagick\r\nsudo apt-get build-dep imagemagick\r\nimagemagick-*\r\ndebian\/rules <strong>-j 4<\/strong> binary\r\n<\/pre>\n<p>The load goes up to around 5.0 for the duration of the compile, which is exactly what you want, to set fire to your inadequately cooled CPU.  Also, it finishes faster.  (I&#8217;ll bet it works for other .deb&#8217;s too&#8230;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Make supports parallel compiling, with the Linux kernel compile recommending you make use of your expensive CPU cores something like this: make -j 4 You can even do that if you don&#8217;t have a multiprocessor system, since you have a &hellip; <a href=\"https:\/\/www.mcgill.org.za\/stuff\/archives\/496\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[57,53,58,37,190],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-stuff","tag-compile","tag-debian","tag-hacks","tag-linux","tag-stuff"],"_links":{"self":[{"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":13,"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/posts\/496\/revisions\/508"}],"wp:attachment":[{"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mcgill.org.za\/stuff\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}