<div dir="ltr">It spins because that is optimal for latency and how the shared-memory protocols work.  If you want blocking semantics, use ch3:sock, which will park the calling thread in the kernel.  It is great for oversubscription but terrible for performance in the common case of exact subscription or undersubscription.<div><br></div><div>You can't save much power unless you drop into lower P/C-states, but the states that save you significant power will increase the latency a huge amount.  Dell did something a while back that turned down the frequency during MPI calls (<a href="http://www.hpcadvisorycouncil.com/events/2013/Spain-Workshop/pdf/5_Dell.pdf">http://www.hpcadvisorycouncil.com/events/2013/Spain-Workshop/pdf/5_Dell.pdf</a>), which saved a bit of power.<br><div><br></div><div>Jeff</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 7, 2018 at 4:27 AM, Ali MoradiAlamdarloo <span dir="ltr"><<a href="mailto:timndus@gmail.com" target="_blank">timndus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear all,<div><br></div><div>The blocking call definition from my understanding is something like this:</div><div>when a process(P0) do a blocking system call, scheduler block the process and assign another process(P1) in order to efficiently use of CPU core. Finally P0 response will be ready and scheduler can map it again on a core.</div><div><br></div><div>But this is not what happening In MPICH->MPI_Recv function. you call it BLOCKING call, but the process that call this function actually doesn't block, it just continue running on core WAITING for his response.</div><div><br></div><div>Why you decide to do this? why we have a process waiting on a valuable processing core and burning the power?</div></div>
<br>______________________________<wbr>_________________<br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.mpich.org/<wbr>mailman/listinfo/devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>
</div>