Repository navigation
Setup GC threads on Crystal tests - #3001
Conversation
|
|
||
| export GC_MARKERS=1 | ||
|
|
||
| export GC_NPROCS=1 |
There was a problem hiding this comment.
Note that setting this to 1
when multiple processors are available will preserve
correctness, but may lead to really horrible performance,
since the lock implementation will immediately yield without
first spinning.
It is safer to adjust GC_MARKERS than GC_NPROCS,
since GC_MARKERS has no impact on the lock implementation.
It is safer to adjust GC_MARKERS than GC_NPROCS, since GC_MARKERS has no impact on the lock implementation.
It is safer to adjust GC_MARKERS than GC_NPROCS, since GC_MARKERS has no impact on the lock implementation.
It is safer to adjust GC_MARKERS than GC_NPROCS, since GC_MARKERS has no impact on the lock implementation.
It is safer to adjust GC_MARKERS than GC_NPROCS, since GC_MARKERS has no impact on the lock implementation.
| </tr> | ||
| <% end %> | ||
| </table> No newline at end of file | ||
| <table><tr><th>id</th><th>message</th></tr><% fortunes.each do |fortune| %><tr><td><%= fortune.id %></td><td><%= HTML.escape(fortune.message || "") %></td></tr><% end %></table> |
There was a problem hiding this comment.
@faustinoaq this doesn't seem like a realistic template. I would rather keep the spaces so if someone comes and looks at this Amber project, they can see what is going on.
Do you anticipate a significant increase in performance by removing the spaces?
There was a problem hiding this comment.
Oh, I see, let me revert this changes
Convert type from (String | Nil) to String
|
@drujensen Finally worked! :) I think we're ready to test performance |
drujensen
left a comment
There was a problem hiding this comment.
lgtm. please squash the extra commits.
@RX14 Do you think there are better settings for the GC than what @faustinoaq is proposing?
|
Hey guys, I'm going to leave this open until our new Server Central environment is ready to go. So feel free to make additional changes and as soon as we get that all set up, I'll merge in and we'll spit out another preview round. Make as many commits as you'd like; I always squash and merge. |
|
@nbrady-techempower It looks like this is ready to test. Really interested to see if this makes a difference. Thanks for your help. |
|
@drujensen It's on top of my list to get these numbers to you guys. We're waiting on the vendor to finish moving our machines to another server. It's out of our hands at the moment, but as soon as it's all set and we're able to start running tests again you will be among the first to know! |
|
@nbrady-techempower keep us in the loop we are interested in these results :) |
* Set production environments on Kemal and Amber
|
Hey guys, we've got our environment set up. I just kicked off a new run with this PR merged in. I should have some results to share for you by Monday. |
Hi @nbrady-techempower We're having some issues on Kemal & Amber frameworks amberframework/amber#273 & #2960
Latest Crystal release doesn't support parallelism yet, so we are launching processes and using
reuse_port. However current GC (bdwgc) is multithreaded.This PR tries a new GC setting to avoid launching multiples threads across cores competing for CPU time.
Also add some small optimizations (compress html and remove extra variable) and update some dependencies
/cc @drujensen