.TH "powercap-info" "1" "2017-09-20" "powercap" "powercap-info" .SH "NAME" .LP powercap\-info \- get information from the Linux power capping framework .SH "SYNPOSIS" .LP \fBpowercap\-info \-p\fP \fINAME\fP [\fIOPTION\fP]... .SH "DESCRIPTION" .LP Prints configurations for a powercap control type. .SH "OPTIONS" .LP .TP \fB\-h,\fR \fB\-\-help\fR Prints the help screen .TP \fB\-v,\fR \fB\-\-verbose\fR Print errors when files are not available .TP \fB\-p,\fR \fB\-\-control\-type\fR=\fINAME\fP [REQUIRED] The powercap control type name. Must not be empty or contain a '.' or '/'. .TP \fB\-z,\fR \fB\-\-zone=\fR\fIZONE(S)\fP The zone/subzone numbers in the control type's powercap tree (control type's root by default). Separate zones/subzones with a colon. E.g., for zone 0, subzone 2: .br \fB\-z 0:2\fP .br Ending with a colon prevents output for subzones. E.g., for zone 0, but not subzones: .br \fB\-z 0:\fP .TP \fB\-c,\fR \fB\-\-constraint\fR=\fICONSTRAINT\fP The constraint number .TP All remaining options below are mutually exclusive: .TP \fB\-n,\fR \fB\-\-nzones\fR Print the number of zones (control type's root by default; within the \-z/\-\-zone level, if set) .LP The following are zone-level arguments and require \-z/\-\-zone: .TP \fB\-j,\fR \fB\-\-z\-energy\fR Print zone energy counter .TP \fB\-J,\fR \fB\-\-z\-max\-energy\-range\fR Print zone maximum energy counter range .TP \fB\-w,\fR \fB\-\-z\-power\fR Print zone current power .TP \fB\-W,\fR \fB\-\-z\-max\-power\-range\fR Print zone maximum current power range .TP \fB\-e,\fR \fB\-\-z\-enabled\fR Print zone enable/disabled status .TP \fB\-x,\fR \fB\-\-z\-name\fR Print zone name .LP The following are constraint-level arguments and require \-z/\-\-zone and \-c/\-\-constraint: .TP \fB\-l,\fR \fB\-\-c\-power\-limit\fR Print constraint power limit .TP \fB\-s,\fR \fB\-\-c\-time\-window\fR Print constraint time window .TP \fB\-U,\fR \fB\-\-c\-max\-power\fR Print constraint maximum allowed power .TP \fB\-u,\fR \fB\-\-c\-min\-power\fR Print constraint minimum allowed power .TP \fB\-T,\fR \fB\-\-c\-max\-time\-window\fR Print constraint maximum allowed time window .TP \fB\-t,\fR \fB\-\-c\-min\-time\-window\fR Print constraint minimum allowed time window .TP \fB\-y,\fR \fB\-\-c\-name\fR Print constraint name .SH "EXAMPLES" .LP These examples use Intel RAPL, for which the control type is \fBintel\-rapl\fR. .TP \fBpowercap\-info \-p intel\-rapl\fP Print all RAPL zones. .TP \fBpowercap\-info \-p intel\-rapl \-z 0\fP Print only zone 0, which is usually named \fBpackage\-0\fR. .TP \fBpowercap\-info \-p intel\-rapl \-z 0:1\fP Print zone 0, subzone 1, which is usually the \fBuncore\fR or \fBdram\fR subzone of \fBpackage\-0\fR, depending on the system. .TP \fBpowercap\-info \-p intel\-rapl \-z 0 \-c 1\fP Print zone 0, constraint 1, which is usually the \fBshort_term\fR constraint for \fBpackage\-0\fR. .TP \fBpowercap\-info \-p intel\-rapl \-z 0 \-j\fP Print the energy counter for zone 0, which is usually named \fBpackage\-0\fR. .TP \fBpowercap\-info \-p intel\-rapl \-z 1:0 \-c 0 \-l\fP Print the power limit for zone 1, subzone 0, constraint 0, which is usually the \fBlong_term\fR constraint for the \fBcore\fR subzone of \fBpackage\-1\fR (a multi-socket system). .SH "REMARKS" .LP Some fields are optional and will only be printed if they are available unless \-v/\-\-verbose is set. .br If no subzone/constraint\-specific outputs are requested, all available zones and constraints will be shown. .LP Energy units: microjoules (uJ) .br Power units: microwatts (uW) .br Time units: microseconds (us) .SH "BUGS" .LP Report bugs upstream at .SH "FILES" .nf \fI/sys/devices/virtual/powercap/*\fP .nf \fI/sys/class/powercap/*\fP .fi .SH "AUTHORS" .nf Connor Imes .fi .SH "SEE ALSO" .LP powercap\-set(1), rapl-info(1), rapl-set(1)