@@ -241,6 +241,16 @@ default_focus = "InteractiveCommand"
241241# Must be 3 positive (non-zero) integers
242242panel_ratios = [4 , 3 , 3 ]
243243
244+ # Maximum number of eBPF trace messages to keep in the output panel
245+ # Older messages are automatically discarded when this limit is reached
246+ # Minimum value: 100
247+ # Recommended values:
248+ # - Low-frequency tracing: 1000-2000
249+ # - Medium-frequency tracing: 2000-5000 (default: 2000)
250+ # - High-frequency tracing: 5000-10000
251+ # Note: Larger values consume more memory
252+ ebpf_max_messages = 2000
253+
244254[ui .history ]
245255# Enable command history
246256enabled = true
@@ -422,6 +432,7 @@ export LLVM_SYS_170_PREFIX=/usr/lib/llvm-17
422432- ** Layout** : Horizontal (panels side by side)
423433- ** Panel Ratios** : 4:3:3 (Source:EbpfInfo: Command )
424434- ** Default Focus** : InteractiveCommand panel
435+ - ** eBPF Max Messages** : 2000 messages
425436- ** History** : Enabled with 5000 entry limit
426437
427438## File Output Naming
@@ -450,7 +461,9 @@ GhostScope validates configuration at startup:
4504614 . ** Panel Ratios** : Ensures all 3 values are positive (non-zero) integers
4514625 . ** Log Level** : Validates against allowed values (error, warn, info, debug, trace)
4524636 . ** Layout Mode** : Validates against allowed values (Horizontal, Vertical - capitalized)
453- 7 . ** eBPF Configuration** :
464+ 7 . ** UI Configuration** :
465+ - ** ebpf_max_messages** : Must be at least 100
466+ 8 . ** eBPF Configuration** :
454467 - ** ringbuf_size** : Must be power of 2, range 4096-16777216 bytes
455468 - ** perf_page_count** : Must be power of 2, range 8-1024 pages
456469 - ** proc_module_offsets_max_entries** : Must be in range 64-65536
@@ -468,6 +481,7 @@ Invalid configuration will produce clear error messages with suggestions for fix
468481- ** "perf_page_count must be a power of 2"** : Use values like 32, 64, 128, 256, etc.
469482- ** "perf_page_count X is out of reasonable range"** : Must be between 8 and 1024 pages.
470483- ** "proc_module_offsets_max_entries X is out of reasonable range"** : Must be between 64 and 65536.
484+ - ** "ebpf_max_messages X is too small"** : Must be at least 100. Increase the value in your config file.
471485
472486## Best Practices
473487
0 commit comments