JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle VM Server for SPARC 3.0 Reference Manual     Oracle VM Server for SPARC
search filter icon
search icon

Document Information

System Administration

ldm(1M)

ldmconfig(1M)

ldmd(1M)

ldmp2v(1M)

ldmpower(1M)

ldmpower

- show per-domain, power-consumption information

Synopsis

ldmpower [-ehiprstvx | -o hours | -m minutes] [-c resource] [-l ldom[,ldom[,...]]]
  [interval [count]]

Description

The ldmpower command shows the power-consumption data in watts for domains. By default, it shows the processor power that is consumed by each running domain. You can use options to view memory power-consumption data and the extrapolated power consumption of the entire system divided among the running domains. The per-domain system power consumption is calculated by using strand utilization averages, as well as the percentage of memory bound to each running domain.

When specified with no options, the ldmpower command shows the average power consumption during the last 15, 30, and 60 seconds. The command can also show the most recent power-consumption data. For a longer history, the command can show up to 60 one-minute averages covering the last hour and 336 one-hour averages covering the last 14 days.

To run this command as a non-privileged user, you must be assigned the LDoms Power Mgmt Observability rights profile. If you already have been assigned the LDoms Management or LDoms Review rights profile, you automatically have permission to run the ldmpower command.

The ldmpower command uses the following options and operands:

-c resource

Shows per-domain power consumption for the specified resource type, resource. Valid values are processors and memory. The long version of this option is --component.

-e

Shows the minimum and maximum power-consumption values since data recording began. The long version of this option is --extremes.

-h

Shows descriptions of the ldmpower command options. The alternate short version of this option is -? and the long version of this option is --help.

-i

Shows instantaneous power-consumption data. The long versions of this option are --instant and --instantaneous.

-l ldom

Shows power-consumption data for one or more specified domains. Domain names are separated by commas. The long version of this option is --list.

Note that less data is shown for domains that have been booted for a shorter amount of time than the requested period.

-m minutes

Shows up to one hour of average power-consumption data in fixed one-minute intervals. The long version of this option is --minutes.

Note that less data is shown if the Logical Domains daemon has been running for a shorter amount of time than the requested period.

-o hours

Shows up to 14 days of average power-consumption data in fixed one-hour intervals. The long version of this option is --hours.

Note that less data is shown if the Logical Domains daemon has been running for a shorter amount of time than the requested period.

-p

Shows the overall power consumption for the entire system, which includes processors, memory, and fans. The long version of this option is --platform.

-r

Shows the rolling average power-consumption history for the past 15, 30, and 60 seconds. The long version of this option is --rolling.

-s

Suppresses the output header. The long version of this option is --suppress.

-t

Shows time stamps in the output. The long version of this option is --timestamps.

-v

Shows version data. The long version of this option is --version.

-x

Shows extrapolated power-consumption averages. These averages reflect the percentage of overall system watts that are being consumed based on strand utilization statistics and the percentage of memory bound to the domain. This option can be used with any of the -o, -i, -m, and -r options. The long version of this option is --extrapolate.

interval

Reports output once each interval seconds.

count

Shows count reports. If you specify the count, you must first specify the interval.

Examples

Example 1 Viewing Power-Consumption Data

The following command shows the 15-second, 30-second, and 60-second rolling average power-consumption data for all domains:

# ldmpower
DOMAIN  15_SEC  30_SEC  60_SEC
primary 315     469     520
gdom1   275     308     210
gdom2   250     230     220

Example 2 Viewing Power-Consumption Data at a Regular Interval

The following commands show power-consumption data at a regular interval:

Example 3 Viewing Power-Consumption Data for the Entire System

The following commands show the overall instantaneous system power consumption in watts:

Example 4 Viewing Per-Domain, Power-Consumption Data

The following commands show the per-domain power consumption in watts for memory, processors, or both:

Example 5 Viewing Power-Consumption Data for Specified Domains

The following command shows the instantaneous power-consumption data for the gdom2 and gdom5 domains. The -i option shows the instantaneous power-consumption data, and the -t option shows time stamps in the output. The -l option arguments specify that only information about the gdom2 and gdom5 domains appear in the output. The first operand, 10, indicates that power-consumption data is reported in 10-second intervals. The second operand, 5, is the number of iterations for which the data is output.

# ldmpower -itl gdom2, gdom5 10 5
Processor Power Consumption in Watts
DOMAIN  TIMESTAMP               INSTANT
gdom2   2012.08.29 12:05:33     222
gdom5   2012.08.29 12:05:33     467

gdom2   2012.08.29 12:05:43     351
gdom5   2012.08.29 12:05:43     256

gdom2   2012.08.29 12:05:53     344
gdom5   2012.08.29 12:05:53     435

gdom2   2012.08.29 12:06:03     645
gdom5   2012.08.29 12:06:03     467

gdom2   2012.08.29 12:06:13     378
gdom5   2012.08.29 12:06:13     257

Example 6 Viewing Power-Consumption Data for a Specified Amount of Time

The following commands show power-consumption data for specified amounts of time:

Example 7 Viewing Extrapolated Power-Consumption Data for All Domains

The following command shows extrapolated power-consumption data for all the domains: primary, gdom1, and gdom2.

# ldmpower -x
System Power Consumption in Watts

DOMAIN    15_SEC        30_SEC          60_SEC
primary   315/38.14%    46942.79%       520/53.46%
gdom1     275/33.72%    308/32.68%      210/21.99%
gdom2     250/24.14%    230/24.53%      220/24.55%

Attributes

See the attributes(5) man page for a description of the following attribute.

Attribute Type
Attribute Value
Availability
SUNWldm

See Also

ldmd(1M), attributes(5)