External Interface Design for Power Awareness.
Technical Term | Description or Definition |
PMI | Power Management Infrastructure |
Tractability Matrix
Use Case(s) | Requirement(s) | Interface(s) |
|---|---|---|
2.a | 3.a, 3.b, 3.e, 3.f | 2, 10, 11 |
2.b | 3.d, 3.g | 1, 4, 6, 7, 8, 9, 12, 24-38, 40-49 |
2.c | 3.c | 3, 5, 13, 18, 20, 21, 39 |
A. Interface changes
Interface #1
Visibility: Public
Change Control: Stable
Synopsis: Generically applicable server power_provisioning flag
Reference to more detail on the interface.
The power_provisioning boolean server attribute will have a default of unset, be visible to all and changeable by a manager. When it is set True, PMI operations may take place if allowed by vnode power_provisioning flag (see A.1.9). If it is unset or set False, no PMI operations will take place on any vnode.
Use qmgr to set the power_provisioning flag true or false. For example:
Interface #2
Visibility: Public
Change Control: Stable
Synopsis: Generically applicable energy usage for a job
Add a new attribute for a job: resources_used.energy
Reference to more detail on the interface.
The type will be float.
The units will be kWh. For example: resources_used.energy=64.2
The resources_used.energy value will only be updated when PMI operations are allowed on the vnodes used by the job. The resources_used.energy value will not be seen in qstat -f output or server/accounting logs when PMI operations are not allowed on the node.
Interface #3
Visibility: Public
Change Control: Stable
Synopsis: Generically applicable resource “eoe”
A new resource similar to “aoe” is added to both jobs and vnodes to specify the energy operational environment.
Reference to more detail on the interface.
Is added to default resource list of scheduler in sched_config file.
It is a non-consumable resource.
It is of type resource, added to attribute resources_available. e.g. resources_available.eoe=”low,med,high”. It is a string array.
Contains list of all power profile names that are available on a vnode. By default, resources_available.eoe is unset.
The list is visible to all but settable only by manager.
Job Resource_List.eoe per chunk in –l select as –l select=1:ncpus:eoe=low. This will request one chunk from a node with resource_available.eoe=low.
Only one eoe value can be active on a vnode at a time.
A job Resource_List.eoe may be requested in a select statement but no more than one distinct value for the requested eoe is currently supported. i.e. -lselect=1:ncpus=1:eoe=med+1:ncpus=2:eoe=med
If a Job request is made with more than one value for eoe (I.e. –l select=1:eoe=low+1:eoe=high), it will be rejected by qsub with the error “qsub: only one value of eoe is allowed”.
A value for resources_available.eoe will not be automatically set on the system(s) where the PBS server and scheduler are running.
If both an aoe and eoe are set for a job, the aoe setting will be processed first by the scheduler.
The scheduler will not preempt a job with eoe set using suspend or checkpoint.
Interface #4
Visibility: Public
Change Control: Stable
Synopsis: Generically applicable vnode attribute: current_eoe
Reference to more detail on the interface.
Identifies the eoe active on a vnode. It is of type String. By default, it is unset. It is settable only by manager and visible to all.
A job J1 running with a eoe setting X will cause the value of current_eoe to be set to X on the vnodes assigned to J1 that allow PMI operations.
Manually changing current_eoe is unsupported.
The scheduler can run a job requesting an eoe on vnodes with a current_eoe value that matches the job eoe.
The scheduler can only run a job on a vnode where the current_eoe does not match the job eoe if no jobs are running on the vnode and PMI operations are allowed on the vnode.
When a job ends the deactivate operation will take place if all the vnodes used by the job have no other jobs running and allow PMI operations. At this point, current_eoe will be unset on all the vnodes used by the job.
Interface #5
Visibility: Public
Change Control: Stable
Synopsis: Cray specific resource: pstate
Reference to more detail on the interface.
Cray ALPS reservation setting for p-state. See Basil 1.4 documentation.
It is of type String. By default, it is unset. It is settable and visible to all PBS users.
Interface #6
Visibility: Public
Change Control: Stable
Synopsis: Cray specific resource: pgov
Reference to more detail on the interface.
Cray ALPS reservation setting for p-governor. See Basil 1.4 documentation.
It is of type String. By default, it is unset. It is settable and visible to all PBS users.
Interface #7
Visibility: Public
Change Control: Stable
Synopsis: Cray specific resource: pcap_node
Reference to more detail on the interface.
Cray capmc set_power_cap --node setting. See capmc documentation.
It is of type Int. By default, it is unset. It is settable and visible to all PBS users.
A negative value will result in a PBSE_BADATVAL error.
Interface #8
Visibility: Public
Change Control: Stable
Synopsis: Cray specific resource: pcap_accelerator
Reference to more detail on the interface.
Cray capmc set_power_cap --accel setting. See capmc documentation.
It is of type Int. By default, it is unset. It is settable and visible to all PBS users.
A negative value will result in a PBSE_BADATVAL error.
Interface #9
Visibility: Public
Change Control: Stable
Synopsis: Generically applicable vnode power_provisioning flag
Reference to more detail on the interface.
The power_provisioning boolean vnode attribute will be unset by default, be visible to all and changeable by a manager.
Use qmgr to set the power_provisioning flag true or false. For example:
When it is set to True, PMI operations may take place on the vnode. If it is unset or set to False, no PMI operations are allowed to take place on the vnode.
Interface #10
Visibility: Public
Change Control: Stable
Synopsis: Mom log using logjobmsg when a job ends and the value of current_eoe is unset.
Reference to more detail on the interface.
Example:
Interface #11
Visibility: Public
Change Control: Unstable
Synopsis: When the energy for a job on an SGI HPE system is obtained, it will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #12
Visibility: Public
Change Control: Unstable
Synopsis: The Cray capmc command invocations will be logged by MoM using LOG_DEBUG with the keyword “launch”.
Reference to more detail on the interface.
Example:
Interface #13
Visibility: Public
Change Control: Unstable
Synopsis: Following a successful Cray capmc invocation, a message will be logged by MoM using LOG_WARNING if the time used by capmc is greater than 30 seconds.
Reference to more detail on the interface.
Example:
Interface #14
Visibility: Public
Change Control: Unstable
Synopsis: If Cray capmc writes anything to stderr, the first line will be logged by MoM using LOG_WARNING after the “launch” message.
Reference to more detail on the interface.
Cray has not documented the possible stderr output from capmc.
Example:
Interface #15
Visibility: Public
Change Control: Unstable
Synopsis: When Cray capmc is run with the argument “get_node_energy_counter”, the node count is checked and if it is wrong, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
The same command will be run one additional time if an error is seen. No message will be logged for the first error. If an error occurs after the second attempt, a message is logged.
For example:
The output from capmc should include a node count. If it does not, the messages will show “not set” instead of a number.
Example:
Interface #16
Visibility: Public
Change Control: Unstable
Synopsis: If Cray RUR is configured (see B.1.f), log messages will be logged by MoM using logjobmsg when a job ends.
Reference to more detail on the interface.
A message will show the energy used by each aprun run by a job and a job tally in Joules. For example:
Interface #17
Visibility: Public
Change Control: Unstable
Synopsis: If Cray RUR is not configured, a log message will be logged by MoM using logjobmsg when a job ends.
Reference to more detail on the interface.
Example:
Interface #18
Visibility: Public
Change Control: Unstable
Synopsis: At the end of a job on a Cray, the energy reported by capmc for the compute nodes used by the job will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #19
Visibility: Public
Change Control: Unstable
Synopsis: The energy reported by capmc for the compute nodes used by a job on a Cray will be logged by MoM using logjobmsg periodically every 5 minutes as the job runs.
Reference to more detail on the interface.
Example:
Interface #20
Visibility: Public
Change Control: Unstable
Synopsis: When the PMI on a Cray is initialized, MoM will log messages at LOG_DEBUG.
Reference to more detail on the interface.
Example:
Interface #21
Visibility: Public
Change Control: Unstable
Synopsis: When get_usage() is called for a job on a Cray, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #22
Visibility: Public
Change Control: Unstable
Synopsis: When query() is called on a Cray, a message will be logged by MoM using LOG_DEBUG.
Reference to more detail on the interface.
Example:
Interface #23
Visibility: Public
Change Control: Unstable
Synopsis: When activate_profile() is called on a Cray, a message will be logged by MoM using LOG_DEBUG.
Reference to more detail on the interface.
Example:
Interface #24
Visibility: Public
Change Control: Unstable
Synopsis: When activate_profile() is called on a Cray but no compute nodes are allocated to the job, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #25
Visibility: Public
Change Control: Unstable
Synopsis: When activate_profile() is called on a Cray and the job has pcap_node set, a message will be logged by MoM using logjobmsg showing the pcap_node value.
Reference to more detail on the interface.
Example:
Interface #26
Visibility: Public
Change Control: Unstable
Synopsis: When activate_profile() is called on a Cray and the job has pcap_accelerator set, a message will be logged by MoM using logjobmsg showing the pcap_ accelerator value.
Reference to more detail on the interface.
Example:
Interface #27
Visibility: Public
Change Control: Unstable
Synopsis: When activate_profile() is called on a Cray and the job has neither pcap_node or pcap_accelerator set, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #28
Visibility: Public
Change Control: Unstable
Synopsis: When deactivate_profile() is called on a Cray, a message will be logged by MoM using LOG_DEBUG.
Reference to more detail on the interface.
Example:
Interface #29
Visibility: Public
Change Control: Unstable
Synopsis: When deactivate_profile() is called on a Cray but no compute nodes are allocated to the job, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #30
Visibility: Public
Change Control: Unstable
Synopsis: When deactivate_profile() is called on a Cray and the job has pcap_node set, a message will be logged by MoM using logjobmsg showing the pcap_node value.
Reference to more detail on the interface.
Example:
Interface #31
Visibility: Public
Change Control: Unstable
Synopsis: When deactivate_profile() is called on a Cray and the job has pcap_accelerator set, a message will be logged by MoM using logjobmsg showing the pcap_ accelerator value.
Reference to more detail on the interface.
Example:
Interface #32
Visibility: Public
Change Control: Unstable
Synopsis: When deactivate_profile() is called on a Cray and the job has neither pcap_node or pcap_accelerator set, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example:
Interface #33
Visibility: Public
Change Control: Unstable
Synopsis: If Cray RUR is configured but the file created by the output plugin has a permission problem, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
The file owner must be 0 and it must not be writable by other.
Example:
Interface #34
Visibility: Public
Change Control: Unstable
Synopsis: If Cray RUR is configured but the file created by the output plugin can be read, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example
Interface #35
Visibility: Public
Change Control: Unstable
Synopsis: If the file created by the RUR output plugin can be read but the energy value cannot be parsed, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
A python exception error string will be output as part of the message.
Example
Interface #36
Visibility: Public
Change Control: Unstable
Synopsis: If the file created by the RUR output plugin can be read but the Cray energy RUR plugin has not been enabled, a message will be logged by MoM using logjobmsg.
Reference to more detail on the interface.
Example
Interface #37
Visibility: Public
Change Control: Unstable
Synopsis: When the energy for a job is successfully obtained from RUR, MOM will log one of three possible messages using logjobmsg.
Reference to more detail on the interface.
If no energy value was obtained from capmc:
If the energy value from capmc was smaller than what was obtained from RUR:
If the energy value from capmc was greater than or equal to what was obtained from RUR:
Interface #38
Visibility: Public
Change Control: Unstable