PowerSupply#
- class impactshpc.PowerSupply(weight: ReplicableValue | None = None, embodied_impacts: Impacts | None = None, electric_power: ReplicableValue | str | None = None, peak_power: ReplicableValue | str | None = None, idle_power: ReplicableValue | str | None = None)
Bases:
HasConsumptionAndEmbodiedImpactsRepresents a power supply and computes its impacts.
This class uses the same estimation as BoavitzAPI, described in
Thibault Simon, David Ekchajzer, Adrien Berthelot, Eric Fourboul, Samuel Rince, et al.. BoaviztAPI: a bottom-up model to assess the environmental impacts of cloud services. HotCarbon’24 - 3rd Workshop on Sustainable Computer Systems, Jul 2024, Santa Cruz, United States. hal-04621947v3"See the documentation of BoavitzAPI : https://doc.api.boavizta.org/Explanations/components/power_supply/
- weight
The weight of the power supply. Defaults to the value in the config file under
default_value_power_supply > weight.- Type:
ReplicableValue | None, optional
Methods Summary
Instant consumption of HDD is ignored.
Estimate the embodied impacts of the CPU.
Returns the minimum consumption of the component, the consumption it has when no job are running
Returns the maximum consumption of the component
Methods Documentation
- estimate_electric_power() ReplicableValue | None#
Instant consumption of HDD is ignored.
- Returns:
Always returns None.
- Return type:
ReplicableValue | None
- estimate_embodied_impacts() Impacts#
Estimate the embodied impacts of the CPU.
This is done by multiplying the
weightby an impact factor defined in the config file underdefault_value_power_supply > impact_factor.- Returns:
The estimated embodied impacts of the CPU.
- Return type:
Impact | None
- estimate_idle_power() ReplicableValue | None#
Returns the minimum consumption of the component, the consumption it has when no job are running
- estimate_peak_power() ReplicableValue | None#
Returns the maximum consumption of the component
- estimate_electric_power() ReplicableValue | None
Instant consumption of HDD is ignored.
- Returns:
Always returns None.
- Return type:
ReplicableValue | None
- estimate_embodied_impacts() Impacts
Estimate the embodied impacts of the CPU.
This is done by multiplying the
weightby an impact factor defined in the config file underdefault_value_power_supply > impact_factor.- Returns:
The estimated embodied impacts of the CPU.
- Return type:
Impact | None
- estimate_idle_power() ReplicableValue | None
Returns the minimum consumption of the component, the consumption it has when no job are running
- estimate_peak_power() ReplicableValue | None
Returns the maximum consumption of the component