OK, thanks for telling me that.<br clear="all"><div></div><div><br></div>Regards,<div>- Liyang</div><br>
<br><br><div class="gmail_quote">2011/12/24 Peter  Simon <span dir="ltr">&lt;<a href="mailto:simon.peter@inf.ethz.ch">simon.peter@inf.ethz.ch</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="DE-CH" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Liyang,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">These questions are probably best asked in the Phoenix MapReduce mailing list (<a href="mailto:phoenix-users@lists.stanford.edu" target="_blank">phoenix-users@lists.stanford.edu</a>), rather than the Barrelfish list.
 The Barrelfish behavior of Phoenix should be identical to the Linux one.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hope this helps,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Simon<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Liyang [mailto:<a href="mailto:tangliyang921@gmail.com" target="_blank">tangliyang921@gmail.com</a>]
<br>
<b>Sent:</b> Samstag, 24. Dezember 2011 03:24<br>
<b>To:</b> <a href="mailto:barrelfish-users@lists.inf.ethz.ch" target="_blank">barrelfish-users@lists.inf.ethz.ch</a><br>
<b>Subject:</b> [Barrelfish-users] questions about phoenix kmeans<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I&#39;ve read the kmeans code here: <a href="http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c" target="_blank"><span style="color:#1155cc">http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c</span></a>.
 I wonder if you maintain the code, but I don&#39;t know who else to contact.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I do have some questions about using phoenix in kmeans.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<pre style="background:white;white-space:pre-wrap"><u></u> <u></u></pre>
<pre style="background:white"><u></u> <u></u></pre>
<pre style="background:white"><a href="http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args" target="_blank"><b><span style="color:#993366;text-decoration:none">map_reduce_args</span></b></a>.<a href="http://www.lingrok.org/source/s?defs=L1_cache_size&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">L1_cache_size</span></a> = <a href="http://www.lingrok.org/source/s?defs=atoi&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">atoi</span></a>(<a href="http://www.lingrok.org/source/s?defs=GETENV&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">GETENV</span></a>(<span style="color:green">&quot;MR_L1CACHESIZE&quot;</span>));<span style="color:#666666">//1024 * 8;</span><u></u><u></u></pre>


<pre style="background:white"><a href="http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args" target="_blank"><b><span style="color:#993366;text-decoration:none">map_reduce_args</span></b></a>.<a href="http://www.lingrok.org/source/s?defs=num_map_threads&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">num_map_threads</span></a> = <a href="http://www.lingrok.org/source/s?defs=atoi&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">atoi</span></a>(<a href="http://www.lingrok.org/source/s?defs=GETENV&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">GETENV</span></a>(<span style="color:green">&quot;MR_NUMTHREADS&quot;</span>));<span style="color:#666666">//8;</span><u></u><u></u></pre>


<pre style="background:white"><a href="http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args" target="_blank"><b><span style="color:#993366;text-decoration:none">map_reduce_args</span></b></a>.<a href="http://www.lingrok.org/source/s?defs=num_reduce_threads&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">num_reduce_threads</span></a> = <a href="http://www.lingrok.org/source/s?defs=atoi&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">atoi</span></a>(<a href="http://www.lingrok.org/source/s?defs=GETENV&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">GETENV</span></a>(<span style="color:green">&quot;MR_NUMTHREADS&quot;</span>));<span style="color:#666666">//16;</span><u></u><u></u></pre>


<pre style="background:white"><a href="http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args" target="_blank"><b><span style="color:#993366;text-decoration:none">map_reduce_args</span></b></a>.<a href="http://www.lingrok.org/source/s?defs=num_merge_threads&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">num_merge_threads</span></a> = <a href="http://www.lingrok.org/source/s?defs=atoi&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">atoi</span></a>(<a href="http://www.lingrok.org/source/s?defs=GETENV&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">GETENV</span></a>(<span style="color:green">&quot;MR_NUMTHREADS&quot;</span>));<span style="color:#666666">//8;</span><u></u><u></u></pre>


<pre style="background:white"><a href="http://www.lingrok.org/source/xref/barrelfish/usr/phoenix_tests/kmeans.c#map_reduce_args" target="_blank"><b><span style="color:#993366;text-decoration:none">map_reduce_args</span></b></a>.<a href="http://www.lingrok.org/source/s?defs=num_procs&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">num_procs</span></a> = <a href="http://www.lingrok.org/source/s?defs=atoi&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">atoi</span></a>(<a href="http://www.lingrok.org/source/s?defs=GETENV&amp;project=barrelfish" target="_blank"><span style="color:#202062;text-decoration:none">GETENV</span></a>(<span style="color:green">&quot;MR_NUMPROCS&quot;</span>));<span style="color:#666666">//16;</span><u></u><u></u></pre>


</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">How could the above codes get the values for args? I mean, where are those MR_ environment variables defined? And what if they are not? Does the cache size variable has any connection with the splitter function? I know that phoenix schedules
 threads according to cache size as chunk size, but how?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I would be much appreciated if you could help me with these questions.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- Liyang<u></u><u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br>