<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Pegging your multicore CPU in Revolution R, Good and Bad</title>
	<atom:link href="http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/</link>
	<description>Statistics and Public Policy Ph.D. Student</description>
	<lastBuildDate>Sun, 13 Jan 2013 19:20:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: nathanvan</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-16</link>
		<dc:creator>nathanvan</dc:creator>
		<pubDate>Fri, 06 Aug 2010 12:42:33 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-16</guid>
		<description>@michal Right. I am worried that any difference between doSMP running RevoR on windows and multicore running vanilla R on linux might be easily explained by the different scheduling approaches of the two operating systems. (For example the X264 kernel thing: http://x264dev.multimedia.cx/?p=185) Hence the desire to compare both on linux. And then revo vs vanilla. And then compare with windows performance. 

I am interested in finding the answer. Once I get back to the simulation portion of my project I might squeeze some time into to do the experiments. :)</description>
		<content:encoded><![CDATA[<p>@michal Right. I am worried that any difference between doSMP running RevoR on windows and multicore running vanilla R on linux might be easily explained by the different scheduling approaches of the two operating systems. (For example the X264 kernel thing: <a href="http://x264dev.multimedia.cx/?p=185" rel="nofollow">http://x264dev.multimedia.cx/?p=185</a>) Hence the desire to compare both on linux. And then revo vs vanilla. And then compare with windows performance. </p>
<p>I am interested in finding the answer. Once I get back to the simulation portion of my project I might squeeze some time into to do the experiments. <img src='http://www.stat.cmu.edu/~nmv/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michal</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-15</link>
		<dc:creator>michal</dc:creator>
		<pubDate>Fri, 06 Aug 2010 12:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-15</guid>
		<description>Sure, I was just curious...

As a matter of fact, you don&#039;t need RevoR to run the example I gave you. Base R plus &#039;multicore&#039; package (plus any extras you need for your simulation) is enough. 

Unless, of course,  you meant that you simply don&#039;t have linux machine available...</description>
		<content:encoded><![CDATA[<p>Sure, I was just curious&#8230;</p>
<p>As a matter of fact, you don&#8217;t need RevoR to run the example I gave you. Base R plus &#8216;multicore&#8217; package (plus any extras you need for your simulation) is enough. </p>
<p>Unless, of course,  you meant that you simply don&#8217;t have linux machine available&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathanvan</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-14</link>
		<dc:creator>nathanvan</dc:creator>
		<pubDate>Fri, 06 Aug 2010 12:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-14</guid>
		<description>@michal Since I haven&#039;t setup revolution R on linux yet, I&#039;m not able to test out the performance of other multi-core packages that require linux. Maybe once I get a little farther on my actual work I&#039;ll be able to come back to it. 

For those of you that haven&#039;t seen this yet, Ryan Rosario (@DataJunkie), gave a talk that is much better than anything that I&#039;ve been able to do: http://www.bytemining.com/2010/07/taking-r-to-the-limit-part-i-parallelization-in-r/</description>
		<content:encoded><![CDATA[<p>@michal Since I haven&#8217;t setup revolution R on linux yet, I&#8217;m not able to test out the performance of other multi-core packages that require linux. Maybe once I get a little farther on my actual work I&#8217;ll be able to come back to it. </p>
<p>For those of you that haven&#8217;t seen this yet, Ryan Rosario (@DataJunkie), gave a talk that is much better than anything that I&#8217;ve been able to do: <a href="http://www.bytemining.com/2010/07/taking-r-to-the-limit-part-i-parallelization-in-r/" rel="nofollow">http://www.bytemining.com/2010/07/taking-r-to-the-limit-part-i-parallelization-in-r/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: romunov</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-13</link>
		<dc:creator>romunov</dc:creator>
		<pubDate>Mon, 02 Aug 2010 08:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-13</guid>
		<description>I&#039;m praying to R gods every evening to implement multicore to Windows as well.</description>
		<content:encoded><![CDATA[<p>I&#8217;m praying to R gods every evening to implement multicore to Windows as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: romunov</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-12</link>
		<dc:creator>romunov</dc:creator>
		<pubDate>Mon, 02 Aug 2010 08:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-12</guid>
		<description>I foundTal&#039;s contribution on his r-statistics blog very helpful:
http://www.r-statistics.com/2010/04/parallel-multicore-processing-with-r-on-windows/</description>
		<content:encoded><![CDATA[<p>I foundTal&#8217;s contribution on his r-statistics blog very helpful:<br />
<a href="http://www.r-statistics.com/2010/04/parallel-multicore-processing-with-r-on-windows/" rel="nofollow">http://www.r-statistics.com/2010/04/parallel-multicore-processing-with-r-on-windows/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinh Nguyen</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-11</link>
		<dc:creator>Vinh Nguyen</dc:creator>
		<pubDate>Wed, 30 Jun 2010 05:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-11</guid>
		<description>@nathanvan Thanks again for the response.  Will look more into passmark.  I do plan to load Ubuntu on it.

Can you post a comment to this post when you post a new post on the 4 core, 8 core, and 10 core test?  I&#039;d like to know the results, thanks!</description>
		<content:encoded><![CDATA[<p>@nathanvan Thanks again for the response.  Will look more into passmark.  I do plan to load Ubuntu on it.</p>
<p>Can you post a comment to this post when you post a new post on the 4 core, 8 core, and 10 core test?  I&#8217;d like to know the results, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathanvan</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-10</link>
		<dc:creator>nathanvan</dc:creator>
		<pubDate>Wed, 30 Jun 2010 05:13:05 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-10</guid>
		<description>@vinh Yeah, I&#039;m being sloppy. It&#039;s quad core w/ two threads per core: http://ark.intel.com/Product.aspx?id=43122. 

Changing from 8 to 4 would cut the performance roughly in half depending on the communication overhead; in this example it should be pretty close to half. I&#039;ll run it when I do michal&#039;s stuff and make a separate post. 

It&#039;s fast. I like it. Windows 7 works well; Ubuntu 10.04 is much faster. Depends on what you can afford and what you want I guess. :) Seriously though, check out the passmark site. It will help you judge how much processing power you are buying.</description>
		<content:encoded><![CDATA[<p>@vinh Yeah, I&#8217;m being sloppy. It&#8217;s quad core w/ two threads per core: <a href="http://ark.intel.com/Product.aspx?id=43122" rel="nofollow">http://ark.intel.com/Product.aspx?id=43122</a>. </p>
<p>Changing from 8 to 4 would cut the performance roughly in half depending on the communication overhead; in this example it should be pretty close to half. I&#8217;ll run it when I do michal&#8217;s stuff and make a separate post. </p>
<p>It&#8217;s fast. I like it. Windows 7 works well; Ubuntu 10.04 is much faster. Depends on what you can afford and what you want I guess. <img src='http://www.stat.cmu.edu/~nmv/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Seriously though, check out the passmark site. It will help you judge how much processing power you are buying.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinh Nguyen</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-9</link>
		<dc:creator>Vinh Nguyen</dc:creator>
		<pubDate>Wed, 30 Jun 2010 04:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-9</guid>
		<description>@nathanvan Thanks for your response.  Looks to me like the i7 processor is still a quad core.  It might show up as 8 logical cores due to the multi-threading?  Can you confirm?

Sorry to bother you with such requests, but can you try your code with 8 cores and 4 cores, and see if there really is an advantage?  If there is, try it with 10 cores specified.  I&#039;m convinced that specifying 8 cores can&#039;t beat 4 since the computer is a quad-core.  I hope to be proven otherwise (I&#039;m interested because, as said before, I&#039;m in the market for a laptop I can do parallel computing with R).

Also, although its a quad-core, the clock speed is at 1.8ghz.  Can you comment on the system performance?  Regular usage and when computing with R?  I&#039;d like to know whether 1.8ghz suffices or whether I should really go for something with a higher clock speed like 2.4ghz (quad).  Thanks!</description>
		<content:encoded><![CDATA[<p>@nathanvan Thanks for your response.  Looks to me like the i7 processor is still a quad core.  It might show up as 8 logical cores due to the multi-threading?  Can you confirm?</p>
<p>Sorry to bother you with such requests, but can you try your code with 8 cores and 4 cores, and see if there really is an advantage?  If there is, try it with 10 cores specified.  I&#8217;m convinced that specifying 8 cores can&#8217;t beat 4 since the computer is a quad-core.  I hope to be proven otherwise (I&#8217;m interested because, as said before, I&#8217;m in the market for a laptop I can do parallel computing with R).</p>
<p>Also, although its a quad-core, the clock speed is at 1.8ghz.  Can you comment on the system performance?  Regular usage and when computing with R?  I&#8217;d like to know whether 1.8ghz suffices or whether I should really go for something with a higher clock speed like 2.4ghz (quad).  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathanvan</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-8</link>
		<dc:creator>nathanvan</dc:creator>
		<pubDate>Wed, 30 Jun 2010 04:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-8</guid>
		<description>@vinh I have an Asus N61JQ-X1. I chose it by getting the CPU performance ranking from http://www.cpubenchmark.net/cpu_list.php and then comparing on price to find the cheapest processing power at the 1k price point. It&#039;s great, but the battery only lasts for two hours. 

@michal
I&#039;ll compare when I return from the IES conference and report back. Thanks for the sample to check with!</description>
		<content:encoded><![CDATA[<p>@vinh I have an Asus N61JQ-X1. I chose it by getting the CPU performance ranking from <a href="http://www.cpubenchmark.net/cpu_list.php" rel="nofollow">http://www.cpubenchmark.net/cpu_list.php</a> and then comparing on price to find the cheapest processing power at the 1k price point. It&#8217;s great, but the battery only lasts for two hours. </p>
<p>@michal<br />
I&#8217;ll compare when I return from the IES conference and report back. Thanks for the sample to check with!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michal</title>
		<link>http://www.stat.cmu.edu/~nmv/2010/06/09/pegging-your-multicore-cpu-in-revolution-r-good-and-bad/#comment-7</link>
		<dc:creator>michal</dc:creator>
		<pubDate>Mon, 28 Jun 2010 17:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://nathanvan.wordpress.com/?p=29#comment-7</guid>
		<description>Thanks for the example!

I would be curious how, performance-wise, your simulation would run using some other parallel framework in R. For example the &#039;multicore&#039; package. You could do it with something like:

library(multicore)

# matrix of simulation conditions
conditions &lt;- matrix(rnorm(900), 100, 3)

# single simulation run
doit &lt;- function(i)
{
  # vector of inputs
  v &lt;- conditions[i,]
  # some dummy calculations
  c(  result1=(v[1] + v[2]) * v[3],
      result2=(v[2] + v[3]) * v[1],
      result3=(v[3] - v[2]) * v[1] )
}

# this gives a list with a component for every run,
# change mc.cores to 8 in your setup
l &lt;- mclapply(seq(1, nrow(conditions)), doit, mc.cores=3)
# cbind it
r &lt;- do.call(&quot;cbind&quot;, l)</description>
		<content:encoded><![CDATA[<p>Thanks for the example!</p>
<p>I would be curious how, performance-wise, your simulation would run using some other parallel framework in R. For example the &#8216;multicore&#8217; package. You could do it with something like:</p>
<p>library(multicore)</p>
<p># matrix of simulation conditions<br />
conditions &lt;- matrix(rnorm(900), 100, 3)</p>
<p># single simulation run<br />
doit &lt;- function(i)<br />
{<br />
  # vector of inputs<br />
  v &lt;- conditions[i,]<br />
  # some dummy calculations<br />
  c(  result1=(v[1] + v[2]) * v[3],<br />
      result2=(v[2] + v[3]) * v[1],<br />
      result3=(v[3] &#8211; v[2]) * v[1] )<br />
}</p>
<p># this gives a list with a component for every run,<br />
# change mc.cores to 8 in your setup<br />
l &lt;- mclapply(seq(1, nrow(conditions)), doit, mc.cores=3)<br />
# cbind it<br />
r &lt;- do.call(&quot;cbind&quot;, l)</p>
]]></content:encoded>
	</item>
</channel>
</rss>