wu-sheng commented on code in PR #614: URL: https://github.com/apache/skywalking-website/pull/614#discussion_r1241179554
########## content/blog/2023-06-25-intruducing-continuous-profiling-skywalking-with-ebpf/index.md: ########## @@ -0,0 +1,232 @@ +--- +title: "Activating Performance Analysis Tools with SkyWalking and eBPF under Threshold Conditions -- Continuous Profiling" +date: 2023-06-25 +author: "Han Liu" +description: "Introduce and demonstrate how SkyWalking and eBPF implement process monitoring with low energy consumption. It will also detail how, when certain conditions are met, these tools initiate more complex performance tasks to monitor programs." +tags: +- eBPF +- Profiling +- Tracing +--- + +# Background + +In previous articles, We have discussed how to use SkyWalking and eBPF for performance problem detection within [processes](/blog/2022-07-05-pinpoint-service-mesh-critical-performance-impact-by-using-ebpf) and [networks](blog/diagnose-service-mesh-network-performance-with-ebpf). +However, there are still two outstanding issues: + +1. **Task initiation time**: It's often challenging to quickly determine which processes require performance monitoring when problems occur. +Typically, manual intervention is required to identify processes and the types of performance analysis necessary. +We need a faster way to detect which processes require performance analysis. +2. **Resource consumption of tasks**: When tasks are initiated, they may consume more system resources to analyze more extensive performance issues. +We need a method to manage resource consumption and understand which processes necessitate performance analysis. + +In this article, we will delve into how we tackle these issues through continuous profiling. + +# Mechanism + +If profiling tasks consume a significant amount of system resources, can we find alternative ways to monitor processes that use fewer system resources? The answer is yes. +Currently, SkyWalking establishes policy rules for specified target services, which are then monitored by the eBPF Agent in a low-energy manner. +When a policy match occurs, a profiling task is automatically triggered. Review Comment: ```suggestion As profiling tasks consume a significant amount of system resources, can we find alternative ways to monitor processes that use fewer system resources? The answer is yes. Currently, SkyWalking supports establishing policy rules for specific services to be monitored by the eBPF Agent in a low-energy manner, and run profiling when necessary automatically. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
