table of contents
| cpacfstatsd(8) | System Manager's Manual | cpacfstatsd(8) |
NAME¶
cpacfstatsd - CPACF statistics collection daemon process
SYNOPSIS¶
cpacfstatsd [-h|--help] [-v|--version] [-f|--foreground]
DESCRIPTION¶
The cpacfstatsd controlling daemon enables, disables, resets, and fetches the mainframe CPACF performance counter registers. The daemon receives commands from the user application cpacfstats through the UNIX Domain Socket, processes them and returns the requested information. For all available commands, see the cpacfstats man page.
Prerequisites
- The running Linux kernel must have the the CONFIG_PERF_EVENTS config option enabled.
- Libpfm version 4 or higher is needed to successfully run the daemon.
- On the HMC or SE, authorize the LPAR for each counter set you want to use. Customize the LPAR activation profile and modify the Counter Facility Security Options. You need to activate the "Crypto activity counter set authorization control" checkbox.
- The daemon requires root privileges to interact with the performance ioctls of the kernel.
CPU hotplug is recognized by the daemon. When adding or removing a CPU, the daemon ensures correct summing of the per-CPU performance counters.
The starting daemon first checks for any stale pid file /run/cpacfstatsd.pid. If this file exists, and the process ID in the file belongs to an active process, an error message is printed to the console and the program terminates.
The daemon and the client cpacfstats communicate through a Unix Domain Socket. This socket is created by the daemon at startup with the associated socket file /run/cpacfstatsd_socket. For security reasons only members of the group cpacfstats are allowed to communicate with the daemon. A system administrator should create this group and add all users which are allowed to run the cpacfstats client to the group.
After startup, the daemon runs in the background and detaches from any terminal. Errors and warnings are posted to the syslog subsystem. Check the process list and the system syslog messages for confirmation of successful startup.
On regular termination the pid file, the communication socket and the associated file is removed gracefully.
OPTIONS¶
- -h or --help
- Display help information for the command.
- -v or --version
- Display version and copyright information for the command.
- -f or --foreground
- Run the daemon in foreground mode, thus printing errors to stderr instead of posting them through syslog. This option might be useful when debugging daemon startup and initialization failures.
FILES¶
/run/cpacfstatsd_socket /run/cpacfstatsd.pid
RETURN VALUE¶
- 0
- The daemon was successfully set to run in the background. This does not imply that the daemon startup was successful, as the main initialization is done in the re-spawned process. Check the syslog for success or failure.
- 1
- The daemon could not be set to run in the background.
SEE ALSO¶
| January 2015 | s390-tools |