kcusage.1m (2012 03)
k
kcusage(1M) kcusage(1M)
NAME
kcusage - query the usage of kernel resources
SYNOPSIS
kcusage [
-l ][-t ][(
-h | -d | -m | -y )] [tunable... ]
DESCRIPTION
kcusage is used to query the usage of kernel resources controlled by various kernel tunables. The full list
of tunables are given below, along with some indication on how to interpret the data on each tunable.
When none of the options h, d, m,ory are given, data is displayed that reflects the currently running
system. When any of these options are given, then historical data is displayed.
When tunables are specified, then information is displayed for those tunables. When no tunables are
listed, then data is displayed for all kernel tunables for which kcusage has information.
kcusage displays data recorded in the following 4 files:
• /var/adm/kcmond/hour
• /var/adm/kcmond/day
• /var/adm/kcmond/month
• /var/adm/kcmond/year
Each of these files contains the usage data for each monitored parameter for different time periods, in the
form of records.
Every time the history is updated, the current usage value is compared with the usage value recorded for
the last 5 minute interval in the hour file, for the last one hour interval in the day file, for the last one
day interval in the month file and for the last one week interval in the year file.
If the current value exceeds the recorded value then the recorded value is replaced with the current
value. Thus in the historical output the maximum usage value will be recorded, when the history was
updated in that time interval.
These records are updated when kcusage is executed with super user privileges. These records are also
updated periodically if there is an ems request to monitor the resource
/system/kernel_parameters/history.
Operands
kcusage recognizes the following operands
tunable Name of a monitorable tunable (see Monitored Tunables, below).
Options
kcusage recognizes the following options
-h Print five minute data for the past hour.
-d Print hourly data for the past 24 hours.
-m Print daily data for the past 31 days.
-y Print weekly data for the past 52 weeks.
-l Print the listing in a long format that is easier to parse by another program.
-t Print a listing that include the top 5 processes or users of the given resource.
By default kcusage lists each of the monitorable tunables with the current usage of each of those tun-
ables, no information on the top 5 users, and not in an easily machine parseable form.
The start of an hour, day or week is determined by the timezone kernel tunable and is independent of
the TZ environment variable.
There is no need to trim the data files as they are of fixed size.
MONITORED TUNABLES
The following kernel tunables are monitorable.
• nflocks
HP-UX 11i Version 3: March 2012 − 1 − Hewlett-Packard Company 1