Skip to content

Load policy interval from thermal_policy.json#178

Merged
sujinmkang merged 3 commits intosonic-net:masterfrom
andywongarista:master-thermal-policy-interval
Aug 4, 2021
Merged

Load policy interval from thermal_policy.json#178
sujinmkang merged 3 commits intosonic-net:masterfrom
andywongarista:master-thermal-policy-interval

Conversation

@andywongarista
Copy link
Contributor

@andywongarista andywongarista commented Mar 11, 2021

Description

Update ThermalManagerBase to load an interval field from thermal_policy.json if it is available and provide a getter for this interval.

Motivation and Context

This interval can be used by thermalctld to run policies at an interval specified in thermal_policy.json, rather than a fixed constant (currently 60 seconds).

How Has This Been Tested?

Verified that thermalctld runs without exiting.
Also ran test_thermalctld.py

Additional Information (Optional)

@ghost
Copy link

ghost commented Mar 11, 2021

CLA assistant check
All CLA requirements met.

@jleveque
Copy link
Contributor

@Junchao-Mellanox: Please review.

@jleveque
Copy link
Contributor

@andywongarista: Please fix new conflicts.

@jleveque
Copy link
Contributor

@Junchao-Mellanox: Please review.

1 similar comment
@jleveque
Copy link
Contributor

@Junchao-Mellanox: Please review.

@lguohan lguohan requested a review from sujinmkang July 30, 2021 15:35
Copy link
Contributor

@sujinmkang sujinmkang left a comment

Choose a reason for hiding this comment

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

looks good to me!

@sujinmkang sujinmkang merged commit bd694b2 into sonic-net:master Aug 4, 2021
sujinmkang pushed a commit to sonic-net/sonic-platform-daemons that referenced this pull request Aug 6, 2021
Description
Update thermalctld to retrieve interval from thermal manager (which in turn loads an interval from thermal_policy.json) instead of using a constant.

Motivation and Context
sonic-net/sonic-platform-common#178

This will allow platform vendors to specify an alternate interval for running thermal policies, e.g. 15 seconds instead of the current 60.

How Has This Been Tested?
Verified that thermalctld runs without exiting.
Also ran test_thermalctld.py
judyjoseph pushed a commit that referenced this pull request Aug 20, 2021
Description
Update ThermalManagerBase to load an interval field from thermal_policy.json if it is available and provide a getter for this interval.

Motivation and Context
This interval can be used by thermalctld to run policies at an interval specified in thermal_policy.json, rather than a fixed constant (currently 60 seconds).

How Has This Been Tested?
Verified that thermalctld runs without exiting.
Also ran test_thermalctld.py
@andywongarista andywongarista deleted the master-thermal-policy-interval branch August 27, 2021 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants