ZCRYPTSTATS(8)

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

πŸ’… ZCRYPTSTATS(8) β€” the manual, but make it make sense ✨

okay so bestie, you know that thing where you're on a System Manager's Manual page and it's giving ✨dry toast✨? Not today. This is zcryptstats from s390-tools, and I'm gonna walk you through it like we're on FaceTime. Sit down, grab a drink πŸ“.


🌸 NAME 🌸

zcryptstats β€” displays usage statistics of IBM Crypto Express adapters. That's it, that's the vibe. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

zcryptstats [OPTIONS] [DEVICE_ID [...] ]

zcryptstats --help|-h
zcryptstats --version|-v

πŸ¦‹ DESCRIPTION πŸ¦‹

Use zcryptstats to display usage statistics of IBM Crypto Express adapters. Periodt. πŸ’…

Here's the tea: zcryptstats obtains cryptographic performance measurement data periodically and displays that data for each cryptographic device, for each interval. A cryptographic device can be either a card device or a queue device (APQN). And look β€” zcryptstats runs forever unless you limit the number of intervals with the --count option. Like, it will literally outlive us all if you let it. The default interval time is 10 seconds, and you use the --interval option to specify a different interval time. Easy.

By default, all available cryptographic devices are monitored. If you want, you can optionally specify the device IDs of the devices to be monitored. The card device representation and the queue device are both in hexadecimal notation. Hex girl era, iykyk. πŸ”₯

Use the --no-apqn option to omit the performance measurement data of the queues. And here's the thing: if the system does not support obtaining cryptographic performance measurement data on the queue devices, then only the card devices are monitored. The system decided that for you, honestly. πŸ™ˆ

For each device, a set of counters is displayed. The amount and meaning of the counters are dependent on the device type and mode β€” see the COUNTERS section below, which I made cute for you. πŸ’œ For each counter and interval, the following values are displayed:

  • Number of measured operations.
  • Rate of the measured operation in operations per second.
  • Utilization of the device in percent.
  • Average duration of the operations.

The sum of all operations is displayed in a separate totals line. Use the --only-totals option to omit the individual counters and display the totals only. Use the --no-totals option to omit the totals. You have options, bestie, literally. ✨

Note: The utilization value of a counter can exceed 100%. This value is caused by the parallel execution of cryptographic operations. So if you see 140% and you're like "girl what" β€” that's normal, it's just the crypto operations being ✨multitasking icons✨. No cap.

Cryptographic performance measurement data might not be available when Linux is running as guest under z/VM or under KVM. When that happens, zcryptstats displays an error message and exits. Not a slay, but okay. 😭

Note: zcryptstats utilizes the device node /dev/chsc. When this device node is not available, you might have to load kernel module chsc_sch using modprobe chsc_sch to make it available. 🫢

✨ OPTIONS ✨

  • DEVICE_ID β€” Specifies a cryptographic device for which statistics are displayed. A device ID can either be a card device ID (<card-id>) or a queue device (APQN) ID (<card-id>.<domain-id>). To filter all devices by domain, provide .<domain-id>. If no IDs are given, statistics are displayed for all available devices. πŸŽ€
  • -i, --interval INTERVAL β€” Specifies the interval time in seconds. If this option is omitted, then the default interval time of 10 seconds is used. ⏱️
  • -c, --count COUNT β€” Specifies the number of reports that are generated at INTERVAL seconds apart. If this option is omitted, the zcryptstats command generates reports continuously, until it is stopped with Ctrl+C. πŸ’€
  • -o, --output JSON|TABLE|CSV β€” Displays the statistics in the specified format. If this option is omitted, a comprehensive report is displayed. Supported output formats are:
    • JSON: Displays the statistics in Javascript Object Notation (JSON) format. JSON output field order is undefined, and new fields might be added in the future. (so don't @ me about field order, it's giving chaos and that's the design πŸ’…)
    • TABLE: Displays the statistics in a human readable simple table format. The individual counters are omitted, and only the totals are displayed. This output format implies option --only-totals.
    • CSV: Displays the statistics in comma-separated values format. The values are separated with a semicolon. The individual counters are omitted, and only the totals are displayed. This output format implies option --only-totals. (yes, "comma-separated" but separated with a semicolon β€” iconic inconsistency, we love her 🌈)
  • -t, --no-totals β€” Excludes the totals of all counters of a card device or queue device (APQN). This option cannot be specified together with option --only-totals or option --output TABLE|CSV. Pick a lane, bestie. πŸ™ˆ
  • -T, --only-totals β€” Displays only the totals of all counters of a card device or a queue device (APQN), but not the individual counters. This option is implied with option --output TABLE|CSV. πŸ‘‘
  • -a, --no-apqn β€” Displays only the counters of the card device, but omits the counters of the queue device (APQN). If the system does not support obtaining cryptographic performance measurement data on the queue devices, this option is implied. πŸ¦‹
  • -M, --map-type MAPPING β€” Maps unknown cryptographic device types and modes to known types and modes. This option should only be used when new, so far unknown cryptographic devices are found. You can then map them to known devices and modes, provided that the new cryptographic devices report the same counters as the known cryptographic device to which it is mapped. The mapping specification consists of a comma-separated list of FROM-TYPE:FROM-MODE=TO-TYPE:TO-MODE specifications. The type and mode values must be specified in decimal notation. ⭐
  • -A, --all β€” Displays all cards devices and queue devices (APQNs), not only those that are available to the Linux instance. Using this option, additional cryptographic devices that are available in the CEC, but not available to the Linux system, are also monitored. This option cannot be specified together with option --only-online. πŸ‘€
  • -O, --only-online β€” Displays only online cards devices and queue devices (APQNs). This option cannot be specified together with option --all. 🟒
  • -V, --verbose β€” Displays additional information messages during processing. She's chatty and we love that for her. πŸ’–
  • -h, --help β€” Displays help text and exits. 🫢
  • -v, --version β€” Displays version information and exits. πŸŽ€

πŸ”₯ COUNTERS πŸ”₯

IBM Crypto Express adapter in accelerator mode:

  • All β€” All operations on the adapter.
  • RSA Key-gen β€” RSA-key-generation operations (also included in All). (yes, it's double-counted with All, that's on purpose, don't come for me πŸ“)

IBM Crypto Express adapter in CCA co-processor mode:

  • RSA 1024 ME β€” 1024-bit ME-format RSA operations.
  • RSA 2048 ME β€” 2048-bit ME-format RSA operations.
  • RSA 1024 CRT β€” 1024-bit CRT-format RSA operations.
  • RSA 2048 CRT β€” 2048-bit CRT-format RSA operations.
  • RSA 4096 ME β€” 4096-bit ME-format RSA operations.
  • RSA 4096 CTR β€” 4096-bit CRT-format RSA operations. (yes, the counter is named CTR and described as CRT β€” I'm just the messenger, bestie 😭)

IBM Crypto Express adapter in EP11 co-processor mode:

  • Asym. Slow β€” Slow asymmetric-key functions. 🐒
  • Asym. Fast β€” Fast asymmetric-key functions. ⚑
  • Symm. Partial β€” Symmetric-key functions that return partial or incremental results.
  • Symm. Complete β€” Symmetric-key functions that return a complete or final result.
  • Asym. Key-gen β€” asymmetric-key generation function. πŸ‘‘

🌈 EXAMPLES 🌈

zcryptstats 02 Display statistics for all cryptographic devices with card ID 02.

zcryptstats 02.0005 --interval 5 Display statistics for cryptographic devices with card ID 02 and domain ID 0005 in a 5 second interval.

zcryptstats .0005 --count 10 Display statistics for cryptographic devices with domain ID 0005 with the default interval time of 10 seconds, for 10 intervals.

zcryptstats 02 --output JSON Display statistics for all cryptographic devices with card ID 02 in JSON output format.


and that's the whole page, diva πŸ’œ go monitor some crypto adapters, you absolute main character. this was s390-tools, January 2019, straight out of the System Manager's Manual β€” mwah πŸ’‹βœ¨πŸŽ€

πŸ“¦ where this page comes from