Power Capping
Power capping is supported on NVIDIA® BlueField®-3 only.
It is possible to adjust the system for reduced power consumption using the BMC. It is important to note that changes to power capping configuration only takes effect after DPU reboot.
Power capping is disabled by default.
Get General Power Capping Information
Control information:
curl -k -u root:'<password>' -X GET https://<bmc_ip>/redfish/v1/Chassis/Card1/Controls/PowerLimit
Output example:
{
"@odata.id": "/redfish/v1/Chassis/Card1/Controls/PowerLimit",
"@odata.type": "#Control.v1_0_0.Control",
"AllowableMax": 300,
"AllowableMin": 200,
"ControlMode": "Manual",
"ControlType": "Power",
"Id": "PowerLimit",
"Name": "System Power Control",
"PhysicalContext": "Chassis",
"SetPoint": 50,
"SetPointType": "Single",
"SetPointUnits": "%",
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
Power consumption information:
curl -k -u root:'<password>' -X GET https://<bmc_ip>/redfish/v1/Chassis/Card1/PowerSubsystem
Output example:
{
"@odata.id": "/redfish/v1/Chassis/Card1/PowerSubsystem",
"@odata.type": "#PowerSubsystem.v1_1_0.PowerSubsystem",
"Allocation ": {
"AllocatedWatts": 200
},
"Id": "PowerSubsystem",
"Name": "Power Subsystem",
"PowerSupplies": {
"@odata.id": "/redfish/v1/Chassis/Card1/PowerSubsystem/PowerSupplies"
},
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
Enable/disable Power Capping
curl -k -u root:'<password>' -H "Content-Type: application/json" -X PATCH https://<bmc_ip>/redfish/v1/Chassis/Card1/Controls/PowerLimit -d '{"SetPoint": 70, "ControlMode":<"Manual"/"Disabled">}'
Set Power Allocation Percentage
curl -k -u root:'<password>' -H "Content-Type: application/json" -X PATCH https://<bmc_ip>/redfish/v1/Chassis/Card1/Controls/PowerLimit -d '{"SetPoint": <val>}'
Where val is the percentage of maximum capacity in Watts (AllowableMax).
If user configuration is lower than the minimum capacity power, then the UEFI sets the system power to minimum capacity.
Get Power Capping Status
ipmitool raw 0x32 0xc4
Enable/disable Power Capping
ipmitool raw 0x32 0xc5 <val>
Where val:
0 – disable
1 – enable
Changeable only from BMC prompt using admin account.
Get Power Capping Percentage
ipmitool raw 0x32 0xc8
Set Power Capping Percentage
ipmitool raw 0x32 0xc9 <val>
Where val is the value in percentage [0:100].
Changeable only from BMC prompt using admin account.
For example, if the maximum power capacity is 120 Watts, then set the system to work at 60 Watts (50%) using the following command:
ipmitool raw 0x32 0xc9 50
If user configuration is lower than the minimum capacity power, then the UEFI sets the system power to minimum capacity.
Get Maximum Power Capacity
ipmitool raw 0x32 0xc6
Power is given in watts.
Get Minimum Power Capacity
ipmitool raw 0x32 0xca
Power is given in watts.
Get Capacity Allocation
ipmitool raw 0x32 0xce
The amount of power allocated to the system in Watts.
This value indicates if user configuration was accepted or ignored by the UEFI.