VCPUSTAT(8)

πŸ“¦ version 1.3.14, in opensuse-leap 16.0

πŸ’… VCPUSTAT(8) β€” Linux on Power Service Tools

okay bestie, meet vcpustat(8) β€” the Linux on Power service tool that reports logical partition (LPAR) dispatch statistics, no cap. It’s giving β€œniche but iconic,” and we’re gonna read it together. 🫢


🌸 NAME

vcpustat β€” Report logical partition (LPAR) dispatch statistics.


✨ SYNOPSIS

/usr/sbin/vcpustat [ options ] [ <interval> [ count ] ]

πŸ’« DESCRIPTION

The vcpustat command provides a report of logical processor (vcpu) dispatch statistics. It displays logical processor dispatch dispersions, relative to the previous dispatch, as well as relative to the logical processor’s home node as indicated by the Hypervisor. Periodt. πŸ’…

When you run vcpustat with no options, it generates a single report containing raw dispatch counts since the last time statistics were enabled. That’s useful if dispatch statistics have already been enabled persistently using the -e option, iykyk. ✨

The following information is displayed in the report for each logical processor:

πŸŒ€ dispatch dispersions

This represents logical processor dispatch dispersions, relative to the previous dispatch, and includes these columns:

  • total β€” Indicates the total number of dispatches of this logical processor. This is only displayed if numeric or raw values are being shown.
  • core β€” Indicates the number of times this logical processor was dispatched within the same core.
  • chip β€” Indicates the number of times this logical processor was dispatched in a different core, but within the same chip.
  • socket β€” Indicates the number of times this logical processor was dispatched in a different chip, but within the same socket. This is only seen on Multi Chip Modules.
  • cec β€” Indicates the number of times this logical processor was dispatched outside the socket.

πŸŒ€ numa dispersions

This represents logical processor dispatch dispersions, relative to the logical processor’s home node, and includes these columns:

  • home β€” Indicates the number of times this logical processor was dispatched in its home node.
  • adj β€” Indicates the number of times this logical processor was dispatched in the adjacent node.
  • far β€” Indicates the number of times this logical processor was dispatched in a further node.

πŸŽ€ OPTIONS

  • -e, --enable β€” Enable gathering dispatch statistics persistently, and not only when this command is active.
  • -d, --disable β€” Disable gathering dispatch statistics.
  • -n, --numeric β€” Display the values in numbers, rather than percentages.
  • -r, --raw β€” Display the raw values, rather than the delta.
  • -h, --help β€” Display the usage of vcpustat.
  • -V, --version β€” Display the vcpustat version information.
  • interval β€” The interval parameter specifies the amount of time between each report.
  • count β€” The count parameter specifies how many reports will be displayed.

πŸ¦‹ NOTES

The preferred invocation of vcpustat is by specifying interval and an optional count to monitor logical processor dispatch dispersions over a desired interval of time. This enables in-kernel gathering of logical processor dispatch dispersions and provides a view of the same at the desired monitoring interval. With this form of invocation, the statistics are only gathered when the program is active, resulting in minimal kernel overhead. Slay, low overhead, we love to see it. πŸ’–

Long-term statistics can be obtained by enabling gathering of statistics in-kernel through the use of the -e option, followed by invocations of vcpustat without any options, or using the -r option to display raw values, rather than the difference in each monitoring interval. This should only be used when long-term statistics are desired and results in additional kernel load.

πŸ’€ It is imperative that the statistics be disabled using the -d option once monitoring is complete.

πŸ“ FILES

  • /proc/powerpc/vcpudispatch_stats

πŸ‘‘ AUTHOR

Written by Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>.


mwah πŸ’‹ β€” sign-off deets: source/version Linux Β· date Mar 2020 Β· manual tag VCPUSTAT(8). That’s the whole vibe, bestie. 🫢

πŸ“¦ where this page comes from