-
Notifications
You must be signed in to change notification settings - Fork 712
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
Reduce probe cpu usage #470
Conversation
ce4c336
to
947d798
Compare
Sorry about commenting on the commits rather than the diff view. That makes it a little harder to act on. Back over to you. |
947d798
to
a8c163b
Compare
Is it needed? Tick and {Report, Tag} are never call concurrently. If it is, then we'll also need a pointer receiver I think?
It lists (or streams) connections; udp, tcp etc, and will list of stream nat mappings. I don't think it does anything else. |
@peterbourgon I think I addressed all the issues. |
That's incidental and can easily and inadvertently change :)
Yes. |
@@ -22,7 +17,7 @@ const ( | |||
|
|||
// Publisher is something which can send a report to a remote collector. | |||
type Publisher interface { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
835d387
to
ff3aae2
Compare
overlay: mutex for Weave status
ff3aae2
to
65b7820
Compare
@tomwilkie I made the changes I proposed. Give me a 👍 and I'll merge. |
LGTM |
h.Write([]byte(part3)) | ||
sum := h.Sum64() | ||
var result string | ||
if id, err := idCache.Get(sum); id != nil && err != nil { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
2 issues - report generation is taking too long, and cpu usage is too high.
Reducing CPU usage (~40% to <20%), see #284
Report generation: