Default options for -threaded
Ben Gamari
ben at well-typed.com
Sat Oct 8 16:55:17 UTC 2016
lonetiger at gmail.com writes:
> Hi All,
>
> A user on https://ghc.haskell.org/trac/ghc/ticket/11054 has asked why
> -N -qa isn’t the default for -threaded.
>
I'm not sure that scheduling on all of the cores on the user's machine by
default is a good idea, especially given that our users have
learned to expect the existing default. Enabling affinity by default
seems reasonable if we have evidence that it helps the majority of
applications, but we would first need to introduce an additional
flag to disable it.
In general I think -N1 is a reasonable default as it acknowledges the
fact that deploying parallelism is not something that can be done
blindly in many (most?) applications. To make effective use of
parallelism the user needs to understand their hardware, their
application, and its interaction with the runtime system and configure
the RTS appropriately.
Of course, this is just my two-cents.
Cheers,
- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 454 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20161008/7e54d596/attachment.sig>
More information about the ghc-devs
mailing list