Skip to content
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

feat: Harvest should include numPollers and RSS in autosupport #2143

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

cgrinds
Copy link
Collaborator

@cgrinds cgrinds commented Jun 20, 2023

Fixes: #2065

// Ignore processes that:
// - don't pass the allowList, unless the process is using more that 100MB of memory
// - have no cmdline (these are not interesting)
if pp.RssBytes < HundredMB && !psAllowListRe.MatchString(name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want all harvest pollers even if they take less than 100MB?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, even we do process limited process as per allowList, still do we need 100MB criteria ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, I have misunderstood the condition, it's skipping other processes which are less than 100MB, our all expected processes would any way will be evaluated irrespective of the memory.

} else {
pp.Threads = threads
}
msg.Platform.Processes = append(msg.Platform.Processes, pp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a limit of number of processes stored in slice considering the asup size limit?

@cgrinds cgrinds merged commit 9bb0f31 into main Jun 21, 2023
@cgrinds cgrinds deleted the cbg-issue-2065-autosupport branch June 21, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Harvest should include numPollers and RSS in autosupport
3 participants