perf_sched_map
Visualize CPU scheduling patterns as an ASCII map showing task placement per CPU over time to diagnose affinity issues and load imbalances.
Instructions
ASCII CPU activity map showing which task ran on which CPU at each time slice.
Use this for a visual overview of scheduling patterns, CPU affinity issues, and load imbalance.
Key parameters:
compact: one-character-per-task view.
cpus: restrict to specific CPUs.
pids: restrict to specific PIDs.
color_pids/color_cpus: highlight specific PIDs/CPUs.
Output: ASCII grid with CPUs as rows and time as columns. Requires: perf sched record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cpu | No | CPUs to filter | |
| cpus | No | CPUs to display in map | |
| pids | No | PIDs to show in map | |
| force | No | Don't complain, do it | |
| input | Yes | Path to perf.data file | |
| symfs | No | Symbol filesystem root | |
| compact | No | Show one-letter task state | |
| verbose | No | Verbosity level (0-2) | |
| vmlinux | No | vmlinux pathname | |
| kallsyms | No | kallsyms pathname | |
| task_name | No | Map task name(s) to their thread ids | |
| color_cpus | No | Highlight these CPUs with color | |
| color_pids | No | Highlight these PIDs with color | |
| fuzzy_name | No | Map fuzzy task name(s) | |
| dump_raw_trace | No | Dump raw trace in ASCII |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |