<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 October 2016 at 17:55, Ben Gamari <span dir="ltr"><<a href="mailto:ben@well-typed.com" target="_blank">ben@well-typed.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><a href="mailto:lonetiger@gmail.com">lonetiger@gmail.com</a> writes:<br>
<br>
> Hi All,<br>
><br>
> A user on <a href="https://ghc.haskell.org/trac/ghc/ticket/11054" rel="noreferrer" target="_blank">https://ghc.haskell.org/trac/<wbr>ghc/ticket/11054</a> has asked why<br>
> -N -qa isn’t the default for -threaded.<br>
><br>
</span>I'm not sure that scheduling on all of the cores on the user's machine by<br>
default is a good idea, especially given that our users have<br>
learned to expect the existing default. Enabling affinity by default<br>
seems reasonable if we have evidence that it helps the majority of<br>
applications, but we would first need to introduce an additional<br>
flag to disable it.<br></blockquote><div><br></div><div>Affinity is almost always a bad idea in my experience.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In general I think -N1 is a reasonable default as it acknowledges the<br>
fact that deploying parallelism is not something that can be done<br>
blindly in many (most?) applications. To make effective use of<br>
parallelism the user needs to understand their hardware, their<br>
application, and its interaction with the runtime system and configure<br>
the RTS appropriately.<br>
<br></blockquote><div><br></div><div>Agree on keeping -N1.<br></div><div><br></div><div>Related to this, I think it's about time we made -threaded the default. We could add a -single-threaded option to get back the old behaviour.<br><br></div><div>There is a small overhead to using -threaded, but -threaded is also required to make a lot of things work (e.g. waitForProcess in a multithreaded program, not to mention parallelism).<br><br></div><div>Anyone interested in doing this?<br><br></div><div>Cheers<br></div><div>Simon<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Of course, this is just my two-cents.<br>
<br>
Cheers,<br>
<br>
- Ben<br>
<br>______________________________<wbr>_________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div></div>