-
-
Notifications
You must be signed in to change notification settings - Fork 326
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
Refresh thread stats info only if asked #1432
Comments
Definitely sounds like a good idea. |
Since i know nothing about windows side of things how would you support the same for Windows? |
Side Note: So So for example: if the process is consuming 1000 clock ticks, and there are 10 threads each consuming 50 clock ticks, then you will see the the main thread will have the rest of the 500 clock ticks. by parsing just the main thread you can easily find the split of cpu usage between main thread and the rest. |
So seems like it's still needed. |
@GuillaumeGomez Any thoughts on
|
It's a linux-only feature, so basically this "refresh kind" would do nothing on other platforms. |
master...sigsegved:sysinfo:master i started working on this but want to check with you if this is going in the right direction. |
Seems good to me, but just so you know: it means a lot of processes will not be listed anymore. |
why would that be the case? I thought all "processes" should still be there, but their "tasks" will be none. Right? |
Looks like the linux process refresh mechanism by default parses all stat files in
/proc/<pid>/task/<tid>/stat
. This can be expensive for highly threaded applications like nginx which could be using 100s of threads for async io. In most places a user might just be interested in the overall process information without requiring to know all the thread/task stat.Would it be possible to have a new RefreshKind that supports refreshing only the pid stat?
The text was updated successfully, but these errors were encountered: