deepflowio / deepflow

eBPF Observability - Distributed Tracing and Profiling
https://deepflow.io
Apache License 2.0
2.99k stars 334 forks source link

feat: agent - eBPF Create maps based on functional configuration #8243

Closed yinjiping closed 1 month ago

yinjiping commented 1 month ago

Memory usage of maps corresponding to eBPF capabilities in DeepFlow:

Uprobe Trace [1] Continuous Profile Pre-allocating Memory Dwarf Unwinding [1] Memory used (Bytes)
Disable Disable Disable Disable 13,674,008
Enable Disable Disable Disable 30,909,632
Disable Enable Disable Disable 31,731,736
Disable Disable Enable Disable 59,557,832
Disable Enable Disable Enable [2] 182,281,992
Disable Enable Enable Enable [2] 228,165,816
Enable Enable Enable Enable [2] 263,095,728
Disable Enable Enable Disable 77,615,560 [3]

Additional note:

Optimization Results:

In total, this optimization reduces memory usage by 63,119,448MB compared to the previous version.

This PR is for:

Affected branches

8028