conc
|
thread avg tps
|
scale
|
eff
|
|
populate
|
1
|
1741
|
1.00
|
1.00
|
2
|
1285
|
1.48
|
0.74
|
|
3
|
1028
|
1.77
|
0.59
|
|
4
|
843
|
1.94
|
0.48
|
|
5
|
696
|
2.00
|
0.40
|
|
6
|
600
|
2.07
|
0.34
|
|
scan
|
1
|
1565
|
1.00
|
1.00
|
2
|
1285
|
1.64
|
0.82
|
|
3
|
1018
|
1.95
|
0.65
|
|
4
|
843
|
2.15
|
0.54
|
|
5
|
696
|
2.22
|
0.44
|
|
6
|
586
|
2.25
|
0.37
|
|
On 2020-07-31, at 22:35, YueCompl via Haskell-Cafe <haskell-cafe@haskell.org> wrote:Hi Ben,
Thanks as always for your great support! And at the moment I'm working on a minimum working example to reproduce the symptoms, I intend to work out a program depends only on libraries bundled with GHC, so it can be easily diagnosed without my complex env, but so far no reprod yet. I'll come with some piece of code once it can reproduce something.
Thanks in advance.
Sincerely,
ComplOn 2020-07-31, at 21:36, Ben Gamari <ben@well-typed.com> wrote:
Simon Peyton Jones via Haskell-Cafe <haskell-cafe@haskell.org> writes:Compl,Compl’s problem is (apparently) that execution becomes dominated by
GC. That doesn’t sound like a constant-factor overhead from TVars, no
matter how efficient (or otherwise) they are. It sounds more like a
space leak to me; perhaps you need some strict evaluation or
something.
My point is only: before re-engineering STM it would make sense to get
a much more detailed insight into what is actually happening, and
where the space and time is going. We have tools to do this (heap
profiling, Threadscope, …) but I know they need some skill and insight
to use well. But we don’t have nearly enough insight to draw
meaningful conclusions yet.
Maybe someone with experience of performance debugging might feel able
to help Compl?
If you want to discuss the issue feel free to get in touch on IRC. I
would be happy to help.
It would be great if we had something of a decision tree for performance
tuning of Haskell code in the users guide or Wiki. We have so many tools
yet there isn't a comprehensive overview of
1. what factors might affect which runtime characteristics of your
program
2. which tools can be used to measure which factors
3. how these factors can be improved
Cheers,
- Ben
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.