numasched(8)
π numasched π
okay bestie, so this is a page from the System Manager's Manual β section 8, the big-girl system administration section, and the star of the show is a lil tool called numasched. pull up a chair, grab a boba, we're doing NUMA today. π§
β¨ NAME β¨
numasched β tracing task switch NUMA. it uses bcc/eBPF. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
numasched
just... numasched. no args, no drama. she's simple like that. π
π DESCRIPTION π
numasched tracked task switch of NUMA. that's the mission. that's the whole mission.
also β and this is the cute part β this program is also a basic example of bcc and tracepoint. so if you're tryna learn how bcc does its thing, she's literally right here, showing you the ropes. iconic behavior fr fr. β¨
β οΈ okay important thing, don't skip this: since this uses BPF, only the root user can use this tool. root only. no cap. if you're not root, it's not gonna work, that's just the rules. π
π REQUIREMENTS π
CONFIG_BPFbcc
that's it. that's the list. two things. π
π OPTIONS π
-p,--pid_PID_ β trace this PID only. one process, all eyes on her. π-t,--tid_TID_ β trace this TID only. very specific. very targeted. we love a focused queen. π―-c,--comm_COMM_ β trace this COMM only. filter by command name, chef's kiss. π
π EXAMPLES π
Tracing task switch NUMA:
# numasched
Trace PID 181 only:
# numasched -p 181
see how easy? she ate and left no crumbs. π₯
β FIELDS β
here's the tea on what each column actually means when the output starts scrolling, because bestie you're gonna wanna know:
TIMEβ a timestamp on the output, in"HH:MM:SS"format. when did it happen, basically.PIDβ the process ID.TIDβ the thread ID.SRC_NIDβ source NUMA ID. where she came from. πDST_NIDβ target NUMA ID. where she's going. βοΈCOMMβ the process COMM.
π¦ SOURCE π¦
this is from bcc.
https://github.com/iovisor/bcc
also, lowkey important: also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool. it's giving bonus content, and we love bonus content. π«Ά
πΈ OS πΈ
Linux π (obviously, bestie, it's BPF)
π STABILITY π
Unstable - in development.
so like... she's still growing. still evolving. main character origin story era. treat her gently, expect changes. π
π AUTHOR π
Rong Tao <rongtao@cestc.cn>
thank you for your service, legend. π
β¨ SEE ALSO β¨
go check her out too, she's also a baddie. π
and that's the whole page, bestie!! this was USER COMMANDS, dated 2022-12-14, and yeah β numasched(8). now go trace some NUMA task switches, you absolute icon. periodt. π
β¨π
π¦ where this page comes from
- alpine 3.24: bcc-doc 0.36.1-r1 Β· Apache-2.0
- nixpkgs unstable: bcc 0.37.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms