numasched(8)

πŸ“¦ version 0.36.1, in alpine 3.24, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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_BPF
  • bcc

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. πŸ’…βœ¨πŸŒˆ