SCHEDULING METHOD, SCHEDULING APPARATUS AND STORAGE MEDIUM

Information

  • Patent Application
  • 20230297423
  • Publication Number
    20230297423
  • Date Filed
    July 29, 2022
    a year ago
  • Date Published
    September 21, 2023
    9 months ago
Abstract
The present disclosure relates to a scheduling method, a scheduling apparatus and a storage medium. The method includes: acquiring, by a terminal device, temperatures of the terminal device in two adjacent monitoring periods; determining a temperature change level based on a first temperature difference between the adjacent monitoring periods; and determining and executing a corresponding CPU scheduling strategy based on the temperature change level, to maintain the temperature of the terminal device below a temperature warning value.
Description
Claims
  • 1. A scheduling method, comprising: acquiring, by a terminal device, temperatures of the terminal device in two adjacent monitoring periods;determining, by the terminal device, a temperature change level based on a first temperature difference between the adjacent monitoring periods; anddetermining and executing, by the terminal device, a corresponding CPU scheduling strategy based on the temperature change level, to maintain a temperature of the terminal device below a temperature warning value.
  • 2. The scheduling method according to claim 1, wherein the first temperature difference is configured to indicate a temperature difference between a current monitoring period and a previous monitoring period; and wherein determining the temperature change level based on the first temperature difference between the adjacent monitoring periods comprises: determining the temperature change level being a first level in response to that the first temperature difference is not smaller than a change amount threshold; anddetermining the temperature change level being a second level or a third level based on temperature changes of a plurality of consecutive monitoring periods, in response to that the first temperature difference is smaller than the change amount threshold.
  • 3. The scheduling method according to claim 2, wherein determining the temperature change level being a second level or a third level based on temperature changes of a plurality of consecutive monitoring periods comprises: successively determining a plurality of second temperature differences in the plurality of monitoring periods based on temperatures of the plurality of consecutive monitoring periods comprising the current monitoring period, wherein the second temperature difference is configured to indicate a temperature difference between a latter monitoring period and a former monitoring period in every two adjacent monitoring periods of the plurality of consecutive monitoring periods; anddetermining a corresponding temperature change level based on the plurality of second temperature differences.
  • 4. The scheduling method according to claim 3, wherein determining the corresponding temperature change level based on the plurality of second temperature differences comprises: determining the temperature change level being the second level in response to that the plurality of second temperature differences are all greater than 0 and increase successively; anddetermining the temperature change level being the third level in response to that a part of temperature differences among the plurality of second temperature differences is not greater than 0.
  • 5. The scheduling method according to claim 2, wherein determining and executing the corresponding CPU scheduling strategy based on the temperature change level comprises: determining and executing following scheduling strategies in response to that the temperature change level is the first level: disabling a large core cluster in the CPU, restricting a frequency of a medium core cluster in the CPU, restricting a frequency of a GPU, and clearing preset applications run in a background.
  • 6. The scheduling method according to claim 2, wherein determining and executing the corresponding CPU scheduling strategy based on the temperature change level comprises: determining and executing following scheduling strategies in response to that the temperature change level is the second level: restricting frequencies of a large core cluster and a medium core cluster in the CPU, and reducing a CPU occupancy rate of applications run in a background.
  • 7. The scheduling method according to claim 1, further comprising: acquiring a temperature of a preset monitoring period after executing the scheduling strategy; anddetermining and executing a corresponding performance optimization strategy based on the temperature of the preset monitoring period.
  • 8. The scheduling method according to claim 7, wherein determining and executing the corresponding performance optimization strategy based on the temperature of the preset monitoring period comprises: determining and executing at least one of following performance optimization strategies in response to that the temperature of the preset monitoring period is smaller than a temperature threshold: stopping a measure of disabling or restricting a large core cluster and a medium core cluster in the CPU, stopping a measure of restricting a GPU, or increasing frequencies of the large core cluster and the medium core cluster in the CPU; anddetermining and executing at least one of following performance optimization strategies in response to that the temperature of the preset monitoring period is not smaller than the temperature threshold and temperatures of a plurality of successive monitoring periods comprising the preset monitoring period gradually decrease: stopping a measure of disabling the large core cluster in the CPU, or restoring a frequency of the GPU,wherein, the temperature threshold is smaller than the temperature warning value.
  • 9. A scheduling apparatus, applied to a terminal device and comprising: a processor; anda memory, for storing instructions executable by the processor,wherein the processor is configured to: acquire temperatures of the terminal device in two adjacent monitoring periods;determine a temperature change level based on a first temperature difference between the adjacent monitoring periods; anddetermine and execute a corresponding CPU scheduling strategy based on the temperature change level, to maintain a temperature of the terminal device below a temperature warning value.
  • 10. The scheduling apparatus according to claim 9, wherein the first temperature difference is configured to indicate a temperature difference between a current monitoring period and a previous monitoring period; and the processor is further configured to: determine the temperature change level being a first level in response to that the first temperature difference is not smaller than a change amount threshold; anddetermine the temperature change level being a second level or a third level based on temperature changes of a plurality of consecutive monitoring periods, in response to that the first temperature difference is smaller than the change amount threshold.
  • 11. The scheduling apparatus according to claim 10, wherein the processor is further configured to: successively determine a plurality of second temperature differences in the plurality of monitoring periods based on temperatures of the plurality of consecutive monitoring periods comprising the current monitoring period, wherein the second temperature difference is configured to indicate a temperature difference between a latter monitoring period and a former monitoring period in every two adjacent monitoring periods of the plurality of consecutive monitoring periods; anddetermine a corresponding temperature change level based on the plurality of second temperature differences.
  • 12. The scheduling apparatus according to claim 11, wherein the processor is further configured to: determine the temperature change level being the second level in response to that the plurality of second temperature differences are all greater than 0 and increase successively; anddetermine the temperature change level being the third level in response to that a part of temperature differences among the plurality of second temperature differences is not greater than 0.
  • 13. The scheduling apparatus according to claim 10, wherein the processor is further configured to: determine and execute following scheduling strategies in response to that the temperature change level is the first level: disabling a large core cluster in the CPU, restricting a frequency of a medium core cluster in the CPU, restricting a frequency of a GPU, and clearing preset applications run in a background.
  • 14. The scheduling apparatus according to claim 10, wherein the processor is further configured to: determine and execute following scheduling strategies in response to that the temperature change level is the second level: restricting frequencies of a large core cluster and a medium core cluster in the CPU, and reducing a CPU occupancy rate of applications run in a background.
  • 15. The scheduling apparatus according to claim 9, wherein the processor is further configured to acquire a temperature of a preset monitoring period after executing the scheduling strategy; andthe processor is further configured to determine and execute a corresponding performance optimization strategy based on the temperature of the preset monitoring period.
  • 16. The scheduling apparatus according to claim 15, wherein the processor is further configured to: determine and execute at least one of following performance optimization strategies in response to that the temperature of the preset monitoring period is smaller than a temperature threshold: stopping a measure of disabling or restricting a large core cluster and a medium core cluster in the CPU, stopping a measure of restricting a GPU, or increasing frequencies of the large core cluster and the medium core cluster in the CPU; anddetermine and execute at least one of following performance optimization strategies in response to that the temperature of the preset monitoring period is not smaller than the temperature threshold and temperatures of a plurality of successive monitoring periods comprising the preset monitoring period gradually decrease: stopping a measure of disabling the large core cluster in the CPU, or restoring a frequency of the GPU,wherein, the temperature threshold is smaller than the temperature warning value.
  • 17. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a scheduling apparatus, enables the scheduling apparatus to execute a scheduling method, the method comprising: acquiring temperatures of the terminal device in two adjacent monitoring periods;determining a temperature change level based on a first temperature difference between the adjacent monitoring periods; anddetermining and executing a corresponding CPU scheduling strategy based on the temperature change level, to maintain the temperature of the terminal device below a temperature warning value.
  • 18. The scheduling method according to claim 2, wherein determining and executing the corresponding CPU scheduling strategy based on the temperature change level comprises: determining and executing a following scheduling strategy in response to that the temperature change level is the third level: maintaining a current running state of a CPU core cluster.
  • 19. The scheduling apparatus according to claim 10, wherein the processor is further configured to: determine and execute a following scheduling strategy in response to that the temperature change level is the third level: maintaining a current running state of a CPU core cluster.
Priority Claims (1)
Number Date Country Kind
202210278480.2 Mar 2022 CN national