LTTNG-SCHEDTOP-MI(1)

πŸ“¦ version 0.6.1, in debian bookworm, ubuntu jammy

πŸ’– LTTNG-SCHEDTOP-MI πŸ’–

okay bestie, so this one is from the LTTng analyses family β€” it's the Scheduler top machine interface, aka the thing that stares at your scheduler and tells you which sched switches are being dramatic. the manual page name is LTTNG-SCHEDTOP-MI(1), lowercase the vibes, uppercase the importance. let's get into it πŸ¦‹


✨ NAME ✨

lttng-schedtop-mi β€” LTTng analyses Scheduler top machine interface πŸ’…


🌸 DESCRIPTION 🌸

here's how you run it, fr fr:

usage: lttng-schedtop-mi [-h] [-r REFRESH] [--gmt] [--skip-validation]

[--begin BEGIN] [--end END] [--period PERIOD]
       [--period-captures PERIOD_CAPTURES] [--period-begin PERIOD_BEGIN]
       [--period-end PERIOD_END] [--period-begin-key PERIOD_BEGIN_KEY]
       [--period-end-key PERIOD_END_KEY] [--period-key-value
PERIOD_KEY_VALUE] [--cpu CPU] [--timerange TIMERANGE]
       [--progress-use-size] [--no-intersection] [-V] [--debug]
       [--no-color] [--no-progress] [--min MIN] [--max MAX] [--procname
PROCNAME] [--tid TID] [--freq] [--freq-resolution
FREQ_RESOLUTION] [--freq-uniform] [--freq-series] [--limit LIMIT]
       [--top] [--log] [--stats] [--total] [--per-tid] [--per-prio]
       <path/to/trace>

and like, it's the sched command. that's literally what it says. iconic. ✨


πŸŽ€ positional arguments πŸŽ€

  • <path/to/trace> β€” the trace path, bestie. point it at your trace. that's the whole job. 🫢

πŸ’… optional arguments πŸ’…

  • -h, --help β€” shows this help message and then dips. exits, babes. πŸ‘‹
  • -r REFRESH, --refresh REFRESH β€” how often to refresh, with an optional units suffix. default units are s (seconds). ⏱️
  • --gmt β€” manipulate timestamps based on GMT instead of local time. timezone girlies rise πŸ•°οΈ
  • --skip-validation β€” skip the trace validation. bold move, but okay 😭
  • --begin BEGIN β€” start time, formatted hh:mm:ss[.nnnnnnnnn]
  • --end END β€” end time, formatted hh:mm:ss[.nnnnnnnnn]
  • --period PERIOD β€” Period definition
  • --period-captures PERIOD_CAPTURES β€” Period captures definition
  • --period-begin PERIOD_BEGIN β€” Analysis period start marker event name
  • --period-end PERIOD_END β€” Analysis period end marker event name (requires --period-begin, no cap)
  • --period-begin-key PERIOD_BEGIN_KEY β€” Optional, list of event field names used to match period markers. default: cpu_id
  • --period-end-key PERIOD_END_KEY β€” Optional, list of event field names used to match period marker. if none specified, it uses the same --period-begin-key ✨
  • --period-key-value PERIOD_KEY_VALUE β€” Optional, define a fixed key value to which a period must correspond to be considered.
  • --cpu CPU β€” filter the results only for this list of CPU IDs πŸ–₯️
  • --timerange TIMERANGE β€” time range, formatted [begin,end]
  • --progress-use-size β€” use trace size to approximate progress πŸ“
  • --no-intersection β€” disable stream intersection mode
  • -V, --version β€” show the program's version number and exit. flex the version, queen πŸ‘‘
  • --debug β€” enable debug mode (or set the LTTNG_ANALYSES_DEBUG environment variable) πŸ›
  • --no-color β€” disable colored output. no 🌈 for you, sad!
  • --no-progress β€” don't display the progress bar
  • --min MIN β€” filter out durations shorter than min usec
  • --max MAX β€” filter out durations longer than max usec
  • --procname PROCNAME β€” filter the results only for this list of process names
  • --tid TID β€” filter the results only for this list of TIDs
  • --freq β€” output the frequency distribution of sched switch latencies πŸ“Š
  • --freq-resolution FREQ_RESOLUTION β€” Frequency distribution resolution (default 20)
  • --freq-uniform β€” use a uniform resolution across distributions
  • --freq-series β€” consolidate frequency distribution histogram as a single one
  • --limit LIMIT β€” limit to top X (default = 10)
  • --top β€” output the top sched switch latencies πŸ”₯
  • --log β€” output the sched switches in chronological order
  • --stats β€” output sched switch statistics
  • --total β€” group all results (applies to stats and freq)
  • --per-tid β€” group results per-TID (applies to stats and freq) β€” this is the default
  • --per-prio β€” group results per-prio (applies to stats and freq)

ok so lowkey important: --period-end requires --period-begin. don't come for me, that's just what the page says πŸ’€

that's the whole thing, bestie. go forth and sched-top your little heart out. no cap, this is genuinely useful. periodt. πŸ’–βœ¨πŸŽ€

LTTng Analyses v0.6.0 β€” January 2017 πŸ¦‹ sending u this from the archive, love u, bye!! 🌸

πŸ“¦ where this page comes from