-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Large number of context switches #2594
Comments
whys general perf debugging guidelines for go-ipfs:When you see ipfs doing something (using lots of cpu, memory, or otherwise
Bundle all that up and include a copy of the ipfs binary that you are running You can investigate yourself if you feel intrepid: Analysing the stack dump.The first thing I look for is hung goroutines, any goroutine thats been stuck
At the top, you can see that this goroutine (number 2306090) has been waiting Given that information, I would look for another goroutine that might be There are a few different reasons that goroutines can be hung, Analysing the CPU ProfileThe go team wrote an excellent article on profiling go OtherIf you have any questions, or want me to analyse some weird go-ipfs behaviour, |
@whyrusleeping This would be great to have in a doc! That way you can just point to it. Want me to do that? |
I remember now what happened the last time we ran into this, last time it was reuseport. To test this, set |
@RichardLitt if you want to make that into a doc then by all means please do :) |
Stolen from this comment #2594 (comment) License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
Closing as this issue isn't directly actionable. It's a symptom with many complicated causes. |
Irc user A124 reported a large amount of lag caused by an excess of context switches in the ipfs daemon.
He also built some graphs of the issue: https://imgur.com/uN0yF9d&wMp6t3y
This issue is to track this problem.
The text was updated successfully, but these errors were encountered: