Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added thermal model for hosts #238

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

zohaib-c
Copy link

Summary

Added the RC Thermal Model to simulate the temperature of hosts.

Implementation Notes ⚒️

  • Created a new interface and classes for thermal models.
  • Host file now outputs temperature in degrees Celsius.
  • Input JSON file now has the option to input a thermal model, otherwise it defaults to the default Intel Xeon 8160 processor's specifications.

@@ -57,8 +58,8 @@ public static SimPsuFactory noop() {
*
* @param model The power model to estimate the power consumption based on the CPU usage.
*/
public static SimPsuFactory simple(CpuPowerModel model) {
return (machine, graph) -> new SimplePsu(graph, model);
public static SimPsuFactory simple(CpuPowerModel model, ThermalModel thermalModel) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we would make the thermalModel variable nullable.
Currently, you always have to put in a thermalModel.
This is not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants