<div dir="ltr">You might be interested in this ticket: <a href="https://ghc.haskell.org/trac/ghc/ticket/10229">https://ghc.haskell.org/trac/ghc/ticket/10229</a> ("setThreadAffinity assumes a certain CPU virtual core layout")<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 4:05 AM, Hong Yang <span dir="ltr"><<a href="mailto:hyangfji@gmail.com" target="_blank">hyangfji@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"><div>Hi Cafe,</div><div><br></div><div>On an 1P system, there are 8 cores. Does -N8 send one thread to each core no matter how loaded each core is? Assuming 6 cores are busy, will -N8 send threads only to the two idle cores? If -N8 sends threads to eight cores no matter what, is there any function that detects number of idle (or usage less than certain percentage) cores?</div><div><br></div><div>Suppose a 4P system has 32 cores (4 processors with each processor having 8 cores). Assuming the whole system is idle, how will -N32 work?</div><div><br></div><div>Thanks,</div><div><br></div><div>Hong</div></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>