-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stack bench --profile
disables SMP mode
#1808
Comments
Hrm, here's an old fixed GHC bug that seems relevant ish: https://ghc.haskell.org/trac/ghc/ticket/886 In various places in the docs there are references to the "SMP version of the RTS", the "profiling version of the RTS". "version" is also sometimes swapped out with "flavor". Perhaps this is just wording that hasn't gotten pruned out of the docs, but this seems to suggest that there needs to be a profiling + smp variant of the RTS for this to work. This is probably an upstream GHC issue, right? Have you gotten profiling to work with SMP in cabal? |
Of course I haven't tried it in Cabal, Stack is so much better. :-) The last comment in the ticket says:
I'm on lts-3.20, so if the ticket is accurate then the GHC version should not be affected. Also, I've now confirmed that the problem isn't just with benchmarks, it affects regular executables as well. If I do |
Are you relying on |
I am relying on that, but many of the
...the resulting
And yet it ran on a single core. To my mind this suggests that a missing
|
Strange! In the past I've had a case where something reproduced with |
Closing since it doesn't seem to be a stack issue. |
With the repo here, as of this commit, I observe the following behavior. When I run this command, the benchmark runs in SMP mode:
But when I run this command it runs in single-processor mode:
This can be seen from OS CPU usage report and the benchmarks themselves, which are testing the SMP speedup.
The text was updated successfully, but these errors were encountered: