deepflow
deepflow copied to clipboard
[FR] FR-017: Implement full CPU usage limit for deepflow-agent in kernel < 3 environment
Search before asking
- [X] I had searched in the issues and found no similar feature requirement.
Description
Currently, due to the limitations of cgroups under kernel 2.6, we only implement the CPU consumption limit for the main thread, and hope to achieve the CPU consumption limit for all threads.
https://github.com/deepflowys/deepflow/pull/2287/files#diff-07236d6ddaa48843625b8161a7e173b240fdd3973675f1810408d521ddb5108bR76
Use case
No response
Related issues
https://github.com/deepflowys/deepflow/issues/2283
Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
When there are no cgroups in the system, we will only periodically check CPU and memory usage for a lightweight overload protection.
related FR: https://github.com/deepflowio/deepflow/issues/2918