CPU resource scheduling method and device and storage medium

By filtering the appropriate CPU cores in the SoC system for resource scheduling, the problem of difficulty in reducing static power consumption in the SoC system is solved, and low-power scheduling is achieved when load changes.

CN119829267APending Publication Date: 2025-04-15ALLWINNER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411632825.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

In SoC systems, existing resource scheduling methods are difficult to effectively reduce static power consumption, especially when load changes.

Method used

Resource scheduling is performed by determining alternative CPU cores that match resource scheduling requirements in the SoC system, and filtering out the target CPU cores that meet preset parameter conditions based on the temperature and location of these CPU cores.

Benefits of technology

This method can reduce the static power consumption of the SoC system during resource scheduling, and reduce thermal resonance and power consumption increase by optimizing the start-up and shutdown of the CPU core.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829267A_ABST
    Figure CN119829267A_ABST
Patent Text Reader

Abstract

The invention discloses a CPU resource scheduling method and device and a storage medium, and relates to the technical field of resource scheduling, and the method comprises the steps: firstly determining a plurality of alternative CPUs matched with a resource scheduling demand from an SoC system according to the scheduling demand, and then determining the resource scheduling demand according to the temperatures of the alternative CPUs and / or the positions of the alternative CPUs. At least one target CPU meeting the preset parameter condition is screened out to serve as a CPU needing to be scheduled. Wherein the temperature of the alternative CPU and / or the position of the alternative CPU are / is the main factor for measuring the heat mutual influence among the CPUs in the SoC system, so that the embodiment of the invention can realize that the influence of the newly started CPU on the temperature of the whole SoC system is small when the CPU resources need to be increased in the resource scheduling process through setting the preset parameter condition, and the resource scheduling efficiency is improved. Therefore, the static power consumption of the SoC system is effectively reduced; when the CPU resources need to be reduced, the closed CPU has great influence on the temperature of the whole SoC system, so that the overall static power consumption of the whole SoC system is small after the corresponding CPU is closed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource scheduling, and in particular to a CPU resource scheduling method and device, and a storage medium. Background Art

[0002] SoC (System on Chip) system is an integrated circuit system that aims to integrate all components required for an electronic system into a single chip. This integration method not only improves processing efficiency, but also greatly reduces power consumption and cost. The operation of the SoC system depends on the appropriate resource scheduling method. The resource scheduling method of the SoC system is used to reasonably adjust the working conditions of each component on the SoC system when the SoC system increases or decreases the load, so that the SoC system can maximize the computing power advantage. Common resource scheduling methods for SoC systems include CFS scheduling method and EAS scheduling method.

[0003] Among them, the principle of the CFS scheduling method is to distribute the computing power load evenly to all CPU cores as much as possible, so that the computing power of each CPU core can be maximized, and each CPU core has sufficient computing power margin to cope with the sudden computing power requirements of the system. Practice has shown that when the CFS scheduling method distributes the computing power load evenly to all CPU cores, it may cause the static power consumption of the entire system to increase. Therefore, when the CFS scheduling method performs resource scheduling, the reliability of the static power consumption adjustment of the SoC system is low.

[0004] The principle of the EAS scheduling method is to find the CPU core with the smallest dynamic power consumption increment of the entire CPU system after adding the computing load, and then add the computing load to the running queue corresponding to this CPU core for scheduling. Therefore, the EAS scheduling method only schedules from the perspective of dynamic power consumption increment, and does not consider the static power consumption increment of the SoC system.

[0005] It can be seen that in the process of SoC system resource scheduling, how to effectively reduce the static power consumption of the SoC system is a technical problem that needs to be solved urgently. Summary of the invention

[0006] The present invention provides a CPU resource scheduling method and device, and a storage medium, which can effectively reduce the static power consumption of a SoC system.

[0007] In order to solve the above technical problems, the first aspect of the present invention discloses a CPU resource scheduling method, which is applied to a SoC system including multiple CPU cores, and comprises:

[0008] When the SoC system has a resource scheduling requirement, a plurality of candidate CPU cores matching the resource scheduling requirement are determined from the SoC system according to the resource scheduling requirement;

[0009] Obtain target parameters corresponding to each of the candidate CPU cores, and based on the target parameters corresponding to all the candidate CPU cores, select at least one target CPU core that meets preset parameter conditions from all the candidate CPU cores as the CPU core that needs to be scheduled; wherein the target parameters corresponding to the candidate CPU cores include the temperature of the candidate CPU core and / or the location of the candidate CPU core; wherein, if the resource scheduling requirement indicates that CPU resources need to be increased, the target CPU core is the CPU core to be started; if the resource scheduling requirement indicates that CPU resources need to be reduced, the target CPU core is the CPU core to be shut down.

[0010] As an optional implementation manner, in the first aspect of the present invention, the step of selecting at least one target CPU core that meets preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores comprises:

[0011] According to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, selecting at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all the candidate CPU cores;

[0012] The degree of influence of the candidate CPU core on the temperature of the activated CPU core in the SoC system is determined based on the target parameters corresponding to the candidate CPU core and the target parameters corresponding to the activated CPU core.

[0013] As an optional implementation, in the first aspect of the present invention, the step of selecting, from all the candidate CPU cores, at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition, according to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, comprises:

[0014] Determine a core CPU core from the started CPU cores of the SoC system, wherein the core CPU core includes a CPU core whose current temperature meets a preset temperature condition among the started CPU cores;

[0015] If the resource scheduling requirement indicates that CPU resources need to be increased, determining the degree of influence of each candidate CPU core on the core CPU core temperature rise according to the temperature difference between the target parameter corresponding to each candidate CPU core and the target parameter corresponding to the core CPU core, and selecting at least one target CPU core whose degree of influence on the core CPU core temperature rise is lower than a preset temperature rise influence degree threshold from all the candidate CPU cores;

[0016] If the resource scheduling requirement indicates that CPU resources need to be reduced, the degree of temperature drop influence of each of the alternative CPU cores on the core CPU core is determined based on the temperature difference between the target parameter corresponding to each of the alternative CPU cores and the target parameter corresponding to the core CPU core, and at least one target CPU core whose degree of temperature drop influence on the core CPU core is lower than a preset temperature drop influence degree threshold is selected from all the alternative CPU cores.

[0017] As an optional implementation, in the first aspect of the present invention, if the resource scheduling requirement indicates that CPU resources need to be increased, when the target parameter corresponding to the alternative CPU core includes the temperature of the alternative CPU core, the lower the temperature of the alternative CPU core, the smaller the impact of starting the alternative CPU core on the temperature rise of the core CPU core; when the target parameter corresponding to the alternative CPU core includes the location of the alternative CPU core, the farther the distance between the alternative CPU core and the core CPU core, the smaller the impact of starting the alternative CPU core on the temperature rise of the core CPU core;

[0018] If the resource scheduling requirement indicates a need to reduce CPU resources, when the target parameter corresponding to the alternative CPU core includes the temperature of the alternative CPU core, the higher the temperature of the alternative CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core; when the target parameter corresponding to the alternative CPU core includes the location of the alternative CPU core, the closer the distance between the alternative CPU core and the core CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core.

[0019] As an optional implementation, in the first aspect of the present invention, determining the core CPU core from the started CPU cores of the SoC system includes:

[0020] Selecting a CPU core whose current temperature exceeds a preset temperature threshold from the started CPU cores of the SoC system as a core CPU core whose current temperature meets a preset temperature condition among the started CPU cores; or,

[0021] Select a CPU core whose temperature difference between the current temperature and the maximum allowed operating temperature is less than a preset temperature difference threshold from the started CPU cores of the SoC system as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or,

[0022] A CPU core whose current temperature exceeds a preset temperature threshold and whose temperature difference between the current temperature value and the maximum allowed operating temperature value is less than the preset temperature difference threshold is selected from the started CPU cores of the SoC system as the core CPU core, and as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores.

[0023] As an optional implementation, in the first aspect of the present invention, determining a plurality of candidate CPU cores matching the resource scheduling requirement from the SoC system according to the resource scheduling requirement includes:

[0024] Determine the target CPU resource parameters to be scheduled according to the resource scheduling requirements, wherein the target CPU resource parameters include resource quantity and / or CPU core type;

[0025] According to the target CPU resource parameters, a plurality of candidate CPU cores matching the target CPU resource parameters are determined from the SoC system.

[0026] As an optional implementation, in the first aspect of the present invention, each CPU core in the SoC system has a temperature sensor corresponding thereto, and one temperature sensor uniquely corresponds to one CPU core, or one temperature sensor corresponds to multiple CPU cores;

[0027] And, after selecting at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores, the method further includes:

[0028] The unique identification information corresponding to each target CPU core is provided to the resource scheduling module of the SoC system, so that the resource scheduling module performs resource scheduling operations on each target CPU core according to the resource scheduling requirements.

[0029] A second aspect of the present invention discloses a CPU resource scheduling device, which is applied to a SoC system including multiple CPU cores, and includes:

[0030] An alternative determination module, used for determining a plurality of alternative CPU cores matching the resource scheduling requirement from the SoC system according to the resource scheduling requirement when the SoC system has the resource scheduling requirement;

[0031] A scheduling determination module is used to obtain target parameters corresponding to each of the candidate CPU cores, and based on the target parameters corresponding to all the candidate CPU cores, screen at least one target CPU core that meets preset parameter conditions from all the candidate CPU cores as the CPU core that needs to be scheduled; wherein the target parameters corresponding to the candidate CPU core include the temperature of the candidate CPU core and / or the location of the candidate CPU core; wherein, if the resource scheduling requirement indicates that CPU resources need to be increased, the target CPU core is the CPU core to be started; if the resource scheduling requirement indicates that CPU resources need to be reduced, the target CPU core is the CPU core to be shut down.

[0032] As an optional implementation manner, in the second aspect of the present invention, the specific manner in which the scheduling determination module selects at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores includes:

[0033] According to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, selecting at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all the candidate CPU cores;

[0034] The degree of influence of the candidate CPU core on the temperature of the activated CPU core in the SoC system is determined based on the target parameters corresponding to the candidate CPU core and the target parameters corresponding to the activated CPU core.

[0035] As an optional implementation, in the second aspect of the present invention, the specific manner in which the scheduling determination module selects at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all the candidate CPU cores according to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system includes:

[0036] Determine a core CPU core from the started CPU cores of the SoC system, wherein the core CPU core includes a CPU core whose current temperature meets a preset temperature condition among the started CPU cores;

[0037] If the resource scheduling requirement indicates that CPU resources need to be increased, determining the degree of influence of each candidate CPU core on the core CPU core temperature rise according to the temperature difference between the target parameter corresponding to each candidate CPU core and the target parameter corresponding to the core CPU core, and selecting at least one target CPU core whose degree of influence on the core CPU core temperature rise is lower than a preset temperature rise influence degree threshold from all the candidate CPU cores;

[0038] If the resource scheduling requirement indicates that CPU resources need to be reduced, the degree of temperature drop influence of each of the alternative CPU cores on the core CPU core is determined based on the temperature difference between the target parameter corresponding to each of the alternative CPU cores and the target parameter corresponding to the core CPU core, and at least one target CPU core whose degree of temperature drop influence on the core CPU core is lower than a preset temperature drop influence degree threshold is selected from all the alternative CPU cores.

[0039] As an optional implementation, in the second aspect of the present invention, if the resource scheduling requirement indicates that CPU resources need to be increased, when the target parameter corresponding to the alternative CPU core includes the temperature of the alternative CPU core, the lower the temperature of the alternative CPU core, the smaller the impact of starting the alternative CPU core on the temperature rise of the core CPU core; when the target parameter corresponding to the alternative CPU core includes the location of the alternative CPU core, the farther the distance between the alternative CPU core and the core CPU core, the smaller the impact of starting the alternative CPU core on the temperature rise of the core CPU core;

[0040] If the resource scheduling requirement indicates a need to reduce CPU resources, when the target parameter corresponding to the alternative CPU core includes the temperature of the alternative CPU core, the higher the temperature of the alternative CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core; when the target parameter corresponding to the alternative CPU core includes the location of the alternative CPU core, the closer the distance between the alternative CPU core and the core CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core.

[0041] As an optional implementation, in the second aspect of the present invention, the specific manner in which the scheduling determination module determines the core CPU core from the started CPU cores of the SoC system includes:

[0042] Selecting a CPU core whose current temperature exceeds a preset temperature threshold from the started CPU cores of the SoC system as a core CPU core whose current temperature meets a preset temperature condition among the started CPU cores; or,

[0043] Select a CPU core whose temperature difference between the current temperature and the maximum allowed operating temperature is less than a preset temperature difference threshold from the started CPU cores of the SoC system as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or,

[0044] A CPU core whose current temperature exceeds a preset temperature threshold and whose temperature difference between the current temperature value and the maximum allowed operating temperature value is less than the preset temperature difference threshold is selected from the started CPU cores of the SoC system as the core CPU core, and as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores.

[0045] As an optional implementation, in the second aspect of the present invention, the specific manner in which the candidate determination module determines, from the SoC system, a plurality of candidate CPU cores matching the resource scheduling requirement according to the resource scheduling requirement includes:

[0046] Determine the target CPU resource parameters to be scheduled according to the resource scheduling requirements, wherein the target CPU resource parameters include resource quantity and / or CPU core type;

[0047] According to the target CPU resource parameters, a plurality of candidate CPU cores matching the target CPU resource parameters are determined from the SoC system.

[0048] As an optional implementation, in the second aspect of the present invention, each CPU core in the SoC system has a corresponding temperature sensor, and one temperature sensor uniquely corresponds to one CPU core, or one temperature sensor corresponds to multiple CPU cores;

[0049] And, the device also includes:

[0050] The resource scheduling module is used to receive identification information uniquely corresponding to each target CPU core after the scheduling determination module selects at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores, so as to perform resource scheduling operations on each target CPU core according to the resource scheduling requirements.

[0051] A third aspect of the present invention discloses another CPU resource scheduling device, the device comprising:

[0052] A memory storing executable program code;

[0053] a processor coupled to the memory;

[0054] The processor calls the executable program code stored in the memory to execute the CPU resource scheduling method disclosed in the first aspect of the present invention.

[0055] The fourth aspect of the present invention discloses a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the CPU resource scheduling method disclosed in the first aspect of the present invention.

[0056] Compared with the prior art, the present invention has the following beneficial effects:

[0057] The CPU resource scheduling method in the present invention can first determine multiple candidate CPU cores that match the resource scheduling requirements from the SoC system according to the scheduling requirements, and then screen out at least one target CPU core that meets the preset parameter conditions as the CPU core that needs to be scheduled through the temperature of the candidate CPU core and / or the location of the candidate CPU core. Among them, the temperature of the candidate CPU core and / or the location of the candidate CPU core are the main factors for measuring the thermal interaction between the various CPU cores in the SoC system. Therefore, the embodiment of the present invention can achieve in the resource scheduling process through the setting of preset parameter conditions: when it is necessary to increase CPU resources, the newly opened CPU core has a smaller impact on the temperature of the entire SoC system, thereby effectively reducing the static power consumption of the SoC system; when it is necessary to reduce CPU resources, the closed CPU core has a greater impact on the temperature of the entire SoC system, so that the overall static power consumption of the entire SoC system is smaller after the corresponding CPU core is closed. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 It is a flowchart of a CPU resource scheduling method disclosed in an embodiment of the present invention;

[0060] Figure 2 It is a structural schematic diagram of a CPU resource scheduling device disclosed in an embodiment of the present invention;

[0061] Figure 3 It is a structural schematic diagram of another CPU resource scheduling device disclosed in an embodiment of the present invention;

[0062] Figure 4 It is a structural diagram of another CPU resource scheduling device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0064] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.

[0065] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0066] The invention discloses a CPU resource scheduling method and device, and a storage medium, which can effectively reduce the static power consumption of a SoC system.

[0067] Embodiment 1

[0068] See also Figure 1 , Figure 1 : is a flow chart of a CPU resource scheduling method disclosed in an embodiment of the present invention. Figure 1 The described CPU resource scheduling method is applied to a SoC system including multiple CPU cores, and can also be applied to a CPU resource scheduling device. The CPU resource scheduling device can be integrated in a cloud server or a local server, and the embodiment of the present invention does not limit this. Figure 1 As shown, the CPU resource scheduling method may include the following operations:

[0069] Step 101: When the SoC system has a resource scheduling requirement, multiple candidate CPU cores matching the resource scheduling requirement are determined from the SoC system according to the resource scheduling requirement.

[0070] In an embodiment of the present invention, resource scheduling refers to the management and control process of multiple CPU cores integrated on a SoC system, wherein a CPU core is an independent unit in the SoC system responsible for executing program instructions. Specifically, a CPU core may include an arithmetic logic unit (ALU), a control unit (CU), and registers, etc. For example, a common eight-core processor refers to a central processing unit (CPU) integrated with eight independent processing cores (CPU cores), and each CPU core can independently perform computing tasks, thereby improving the multi-tasking capability and overall performance of the processor. The main purpose of SoC system resource scheduling is to ensure that various applications and services can run efficiently and stably. For example, the startup and shutdown of a CPU core can be controlled by resource scheduling. Specifically, when the startup of a CPU core needs to be controlled by resource scheduling, the resource scheduling demand indicates the need to increase CPU resources; when the shutdown of a CPU core needs to be controlled by resource scheduling, the resource scheduling demand indicates the need to reduce CPU resources.

[0071] In an embodiment of the present invention, the SoC system includes multiple CPU cores. When the SoC system has a resource scheduling requirement, multiple candidate CPU cores matching the resource scheduling requirement are determined from the SoC system according to the resource scheduling requirement, wherein each candidate CPU core is a CPU core that can meet the current resource scheduling requirement. For example, taking a SoC system with four large cores and four small cores as an example, when the resource scheduling requirement indicates that CPU resources need to be increased, it is first determined whether the large core or the small core is in line with the increase of CPU resources.

[0072] Step 102: Obtain target parameters corresponding to each candidate CPU core, and select at least one target CPU core that meets preset parameter conditions from all candidate CPU cores according to the target parameters corresponding to all candidate CPU cores as the CPU core to be scheduled;

[0073] In the embodiment of the present invention, if the resource scheduling requirement indicates that the CPU resources need to be increased, the target CPU core is the CPU core to be started; if the resource scheduling requirement indicates that the CPU resources need to be reduced, the target CPU core is the CPU core to be shut down.

[0074] Existing SoC system resource scheduling methods do not consider the physical layout and mutual influence of modules within the SoC system when scheduling resources, which will cause thermal resonance between modules within the SoC system, thereby increasing the static power consumption of modules within the SoC system. The increase in static power consumption of modules within the SoC system will further increase the module temperature, which will further increase the static power consumption of the modules, forming a positive feedback of temperature and power consumption, bringing challenges to the power consumption control of the SoC system. According to empirical data, the static power consumption of the SoC system will double for every 25°C increase in ambient temperature. It can be seen that in high temperature environments, static power consumption has become the main factor affecting the power consumption and heat generation of SoC systems.

[0075] Therefore, in an embodiment of the present invention, the target parameters corresponding to the alternative CPU core include the temperature of the alternative CPU core and / or the location of the alternative CPU core; wherein, the temperature of the alternative CPU core and / or the location of the alternative CPU core are the main factors for measuring the thermal interactions between the CPU cores in the SoC system, for example: between CPU core 1 and CPU core 2, the higher the temperature of CPU core 1, the higher the degree of temperature influence of CPU core 1 on CPU core 2, and the farther the distance between CPU core 1 and CPU core 2, the lower the degree of temperature influence of CPU core 1 on CPU core 2.

[0076] In an embodiment of the present invention, optionally, if the resource scheduling requirement indicates that the CPU resources need to be increased, when the target parameter includes the temperature of the candidate CPU core, the preset parameter condition may be that the temperature is lower than a set temperature threshold or the temperature value is the lowest; when the target parameter includes the location of the candidate CPU core, the preset parameter condition may be that the distance from the specific CPU core is greater than a set distance threshold or the distance is the farthest. If the resource scheduling requirement indicates that the CPU resources need to be reduced, when the target parameter includes the temperature of the candidate CPU core, the preset parameter condition may be that the temperature is higher than a set temperature threshold or the temperature value is the highest; when the target parameter includes the location of the candidate CPU core, the preset parameter condition may be that the distance from the specific CPU core is less than a set distance threshold or the distance is the shortest.

[0077] It can be seen that the CPU resource scheduling method in the embodiment of the present invention can first determine multiple candidate CPU cores that match the resource scheduling requirements from the SoC system according to the scheduling requirements, and then screen out at least one target CPU core that meets the preset parameter conditions as the CPU core that needs to be scheduled through the temperature of the candidate CPU core and / or the location of the candidate CPU core. Among them, the temperature of the candidate CPU core and / or the location of the candidate CPU core are the main factors for measuring the thermal interaction between the various CPU cores in the SoC system. Therefore, the embodiment of the present invention can achieve in the resource scheduling process through the setting of preset parameter conditions: when it is necessary to increase CPU resources, the newly opened CPU core has a smaller impact on the temperature of the entire SoC system, thereby effectively reducing the static power consumption of the SoC system; when it is necessary to reduce CPU resources, the closed CPU core has a greater impact on the temperature of the entire SoC system, so that the overall static power consumption of the entire SoC system is smaller after the corresponding CPU core is closed.

[0078] In an optional embodiment, according to the target parameters corresponding to all the candidate CPU cores, selecting at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores includes:

[0079] According to the temperature influence degree of each candidate CPU core on the started CPU core in the SoC system, at least one target CPU core whose temperature influence degree on the started CPU core in the SoC system meets a preset temperature influence condition is screened from all the candidate CPU cores.

[0080] In this optional embodiment, the temperature influence degree of the alternative CPU core on the activated CPU core in the SoC system is determined based on the target parameters corresponding to the alternative CPU core and the target parameters corresponding to the activated CPU core. The temperature influence degree is used to measure the temperature influence of the alternative CPU core on the activated CPU core in the SoC system. For example, the activation of the alternative CPU core 1 will cause the temperature of the activated CPU core a to rise sharply, the temperature of the activated CPU core b to rise slowly, and the temperature of the activated CPU core c will not be affected, etc. For another example, the shutdown of the alternative CPU core 1 will cause the temperature of the activated CPU core a to drop sharply, the temperature of the activated CPU core b to drop slowly, and the temperature of the activated CPU core c will not be affected, etc. Optionally, the positive or negative value of the parameter can be used to indicate whether the temperature influence degree affects the temperature increase or the temperature decrease, and the size of the parameter can be used to indicate the size of the temperature influence degree.

[0081] In this optional embodiment, in order to solve the technical problem of effectively reducing the static power consumption of the SoC system, the selection of the target CPU core is achieved by whether the temperature impact degree meets the preset temperature impact condition, wherein, optionally, the preset temperature impact condition can be set to a certain parameter threshold. When the CPU resources need to be increased, the temperature impact degree of the target CPU core is less than this parameter threshold, so that the newly enabled CPU core has less impact on the temperature of the entire SoC system, thereby effectively reducing the static power consumption of the SoC system; when the CPU resources need to be reduced, the temperature impact degree of the target CPU core is greater than this parameter threshold, so that after the corresponding CPU core is turned off, the overall static power consumption of the entire SoC system is smaller.

[0082] It can be seen that in this optional embodiment, the selection of the target CPU core is achieved by whether the temperature influence degree meets the preset temperature influence condition, and the temperature influence degree is used to measure the temperature influence of the candidate CPU core on the started CPU core in the SoC system. When it is necessary to increase CPU resources, the temperature influence degree of the target CPU core meets the preset temperature influence condition, so that the newly enabled CPU core has less temperature influence on the entire SoC system, thereby effectively reducing the static power consumption of the SoC system; when it is necessary to reduce CPU resources, the temperature influence degree of the target CPU core meets the preset temperature influence condition, so that the overall static power consumption of the entire SoC system is smaller after the corresponding CPU core is turned off.

[0083] In another optional embodiment, according to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, selecting at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all candidate CPU cores, including:

[0084] Determine a core CPU core from the started CPU cores of the SoC system, the core CPU core including a CPU core whose current temperature meets a preset temperature condition among the started CPU cores;

[0085] If the resource scheduling requirement indicates that CPU resources need to be increased, then the degree of influence of each candidate CPU core on the core CPU core temperature rise is determined according to the temperature difference between the target parameter corresponding to each candidate CPU core and the target parameter corresponding to the core CPU core, and at least one target CPU core whose degree of influence on the core CPU core temperature rise is lower than a preset temperature rise influence degree threshold is selected from all the candidate CPU cores;

[0086] If the resource scheduling requirement indicates the need to reduce CPU resources, the degree of temperature drop impact of each alternative CPU core on the core CPU core is determined based on the temperature difference between the target parameters corresponding to each alternative CPU core and the target parameters corresponding to the core CPU core, and at least one target CPU core whose temperature drop impact on the core CPU core is lower than a preset temperature drop impact threshold is selected from all the alternative CPU cores.

[0087] In this optional embodiment, if the temperature impact on all started CPU cores is considered, the calculation method is relatively complicated. For example, if there are multiple started CPU cores with different temperatures, it is often necessary to comprehensively analyze the temperature impact by combining factors such as the temperature and position of different CPU cores. However, in actual operation, it is usually necessary to focus on some special CPU cores with higher or lower temperatures. For example, if the current temperature of a CPU core is the highest and the temperature is close to the maximum temperature limit, then it is necessary to focus on reducing the temperature of the CPU core, so as to effectively reduce the static power consumption of the SoC system.

[0088] Therefore, the preset temperature condition is used to screen out the core CPU cores that have a greater impact on the static power consumption of the SoC system from the started CPU cores, which need to be considered. Therefore, in this optional embodiment, further optionally, determining the core CPU core from the started CPU cores of the SoC system may include:

[0089] Select a CPU core whose current temperature exceeds a preset temperature threshold from the started CPU cores of the SoC system as a core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or,

[0090] Select a CPU core whose temperature difference between the current temperature and the maximum allowed operating temperature is less than a preset temperature difference threshold from the started CPU cores of the SoC system as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or,

[0091] A CPU core whose current temperature exceeds a preset temperature threshold and whose temperature difference between the current temperature value and the maximum allowed operating temperature value is less than the preset temperature difference threshold is selected from the started CPU cores of the SoC system as the core CPU core, and as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores.

[0092] It can be seen that the above-mentioned solution of determining the core CPU cores from the started CPU cores of the SoC system can reasonably and efficiently screen out the core CPU cores that need to be focused on and have a greater impact on the static power consumption of the SoC system from the started CPU cores.

[0093] According to Fourier's law of heat conduction, regardless of the distance between object A and object B, the greater the temperature difference between object A and object B, the greater the thermal impact on each other. Therefore, in this optional embodiment, the temperature rise influence or temperature drop influence of each candidate CPU core on the core CPU core is determined based on the temperature difference between the target parameter corresponding to each candidate CPU core and the target parameter corresponding to the core CPU core. If the resource scheduling requirement indicates that the CPU resources need to be increased, at least one target CPU core whose temperature rise influence on the core CPU core is lower than the preset temperature rise influence threshold is selected from all candidate CPU cores; if the resource scheduling requirement indicates that the CPU resources need to be reduced, at least one target CPU core whose temperature drop influence on the core CPU core is lower than the preset temperature drop influence threshold is selected from all candidate CPU cores.

[0094] It can be seen that this optional embodiment can be used to screen out the core CPU cores that need to be considered from the started CPU cores according to the preset temperature conditions and have a greater impact on the static power consumption of the SoC system, thereby eliminating the need to consider the temperature impact on all the started CPU cores, thereby improving the efficiency of resource scheduling; in addition, based on the temperature difference between the target parameters corresponding to each candidate CPU core and the target parameters corresponding to the core CPU core, the degree of influence of each candidate CPU core on the temperature rise or temperature drop of the core CPU core is determined, which complies with Fourier's law of heat conduction, and can more reasonably and accurately determine the target CPU core, thereby improving the effectiveness of resource scheduling.

[0095] In another optional embodiment, if the resource scheduling requirement indicates that the CPU resources need to be increased, when the target parameter corresponding to the candidate CPU core includes the temperature of the candidate CPU core, the lower the temperature of the candidate CPU core, the smaller the impact of starting the candidate CPU core on the temperature rise of the core CPU core; when the target parameter corresponding to the candidate CPU core includes the location of the candidate CPU core, the farther the distance between the candidate CPU core and the core CPU core, the smaller the impact of starting the candidate CPU core on the temperature rise of the core CPU core;

[0096] If the resource scheduling requirement indicates that CPU resources need to be reduced, when the target parameter corresponding to the standby CPU core includes the temperature of the standby CPU core, the higher the temperature of the standby CPU core, the greater the impact of shutting down the standby CPU core on the temperature drop of the core CPU core; when the target parameter corresponding to the standby CPU core includes the location of the standby CPU core, the closer the distance between the standby CPU core and the core CPU core, the greater the impact of shutting down the standby CPU core on the temperature drop of the core CPU core.

[0097] Fourier's law of heat conduction is known:

[0098]

[0099] Among them, q is the heat flux density, k is the thermal conductivity, and dT / dx is the temperature gradient, that is, the rate at which temperature changes with position. The Fourier law of heat transfer shows that the amount of heat transferred through a unit cross-sectional area per unit time is proportional to the rate of temperature change in the direction perpendicular to the cross-sectional area. Simply put, the degree of heat transfer and mutual influence on the chip of the SoC system is directly related to the mutual distance between the CPU cores. The farther the distance, the lower the degree of mutual influence; the closer the distance, the higher the degree of mutual influence; in addition, the degree of heat transfer and mutual influence on the chip of the SoC system is directly related to the temperature difference between the CPU cores. The smaller the temperature difference, the lower the degree of mutual influence; the larger the temperature difference, the higher the degree of mutual influence.

[0100] Based on Fourier's law of heat conduction, the lower the temperature of the standby CPU core, the smaller the impact of starting the standby CPU core on the temperature rise of the core CPU core; the farther the distance between the standby CPU core and the core CPU core, the smaller the impact of starting the standby CPU core on the temperature rise of the core CPU core. The higher the temperature of the standby CPU core, the greater the impact of shutting down the standby CPU core on the temperature drop of the core CPU core; the closer the distance between the standby CPU core and the core CPU core, the greater the impact of shutting down the standby CPU core on the temperature drop of the core CPU core.

[0101] It can be seen that this optional embodiment can design a more reasonable and effective temperature impact judgment scheme based on Fourier's law of heat conduction, combined with the temperature difference and distance between the alternative CPU core and the core CPU core, and can more reasonably and accurately determine the target CPU core, thereby improving the effectiveness of resource scheduling.

[0102] In yet another optional embodiment, determining a plurality of candidate CPU cores matching the resource scheduling requirements from the SoC system according to the resource scheduling requirements includes:

[0103] Determine the target CPU resource parameters to be scheduled according to the resource scheduling requirements, where the target CPU resource parameters include resource quantity and / or CPU core type;

[0104] According to the target CPU resource parameters, a plurality of candidate CPU cores matching the target CPU resource parameters are determined from the SoC system.

[0105] In this optional embodiment, resource scheduling refers to the management and control process of multiple CPU cores integrated on the SoC system. For example, a new task operation needs to be managed and controlled by the resource scheduling method for multiple CPU cores integrated on the SoC system, so that while the SoC system processes the task operation, the static power consumption of the SoC system increases at a low level. For multiple CPU cores integrated on the SoC system, each CPU core may be set to handle different types of work, and the amount of work that each CPU core can handle is also different. Therefore, the amount of resources and / or the type of CPU core corresponding to the resource scheduling requirements need to be considered during scheduling. Taking the SoC system corresponding to 4 large cores and 4 small cores as an example, the candidate CPU core can be judged as a large core or a small core based on the amount of resources and / or the type of CPU core corresponding to the resource scheduling requirements, thereby screening out the candidate CPU cores that meet the requirements.

[0106] It can be seen that this optional embodiment can determine the target CPU resource parameters that need to be scheduled according to the resource scheduling requirements, and then determine multiple alternative CPU cores that match the target CPU resource parameters from the SoC system based on the target CPU resource parameters. CPU cores whose resource quantity and / or CPU core type do not meet the requirements are directly excluded from the range of alternative CPU cores, thereby improving the efficiency of resource scheduling.

[0107] In yet another optional embodiment, each CPU core in the SoC system has a corresponding temperature sensor, and one temperature sensor uniquely corresponds to one CPU core, or one temperature sensor corresponds to multiple CPU cores;

[0108] And, after selecting at least one target CPU core that meets the preset parameter conditions from all candidate CPU cores according to the target parameters corresponding to all candidate CPU cores, the method further includes:

[0109] The unique identification information corresponding to each target CPU core is provided to the resource scheduling module of the SoC system, so that the resource scheduling module performs resource scheduling operations on each target CPU core according to resource scheduling requirements.

[0110] In this optional embodiment, the temperature of each CPU core needs to be monitored. Optionally, one CPU core may correspond to one temperature sensor, or one temperature sensor may correspond to multiple CPU cores, thereby saving hardware resources and reducing hardware size.

[0111] In this optional embodiment, the resource scheduling module can be a functional module integrated in the operating system corresponding to the SoC system, and its function is to control the entire resource scheduling process. After the target CPU core is determined, the resource scheduling module performs resource scheduling operations on each target CPU core according to the resource scheduling requirements.

[0112] It can be seen that this optional embodiment can adopt a solution of one temperature sensor corresponding to multiple CPU cores to realize the monitoring of CPU core temperature, thereby saving hardware resources and reducing hardware volume. In addition, according to the resource scheduling requirements and the identification information uniquely corresponding to the target CPU core, the resource scheduling operation is performed on each target CPU core, thereby improving the intelligence of the resource scheduling operation.

[0113] Embodiment 2

[0114] See also Figure 2 , Figure 2 1 is a schematic diagram of the structure of a CPU resource scheduling device disclosed in an embodiment of the present invention, and the device is applied to a SoC system including multiple CPU cores. Figure 2 As shown, the CPU resource scheduling device may include:

[0115] The candidate determination module 201 is used to determine a plurality of candidate CPU cores matching the resource scheduling requirements from the SoC system according to the resource scheduling requirements when the SoC system has resource scheduling requirements;

[0116] The scheduling determination module 202 is used to obtain the target parameters corresponding to each candidate CPU core, and based on the target parameters corresponding to all the candidate CPU cores, screen at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores as the CPU core that needs to be scheduled; wherein the target parameters corresponding to the candidate CPU core may include the temperature of the candidate CPU core and / or the location of the candidate CPU core; wherein, if the resource scheduling requirement indicates that the CPU resources need to be increased, the target CPU core is the CPU core to be started; if the resource scheduling requirement indicates that the CPU resources need to be reduced, the target CPU core is the CPU core to be shut down.

[0117] It can be seen that the CPU resource scheduling device in the embodiment of the present invention can first determine multiple candidate CPU cores that match the resource scheduling requirements from the SoC system according to the scheduling requirements, and then screen out at least one target CPU core that meets the preset parameter conditions as the CPU core that needs to be scheduled through the temperature of the candidate CPU core and / or the location of the candidate CPU core. Among them, the temperature of the candidate CPU core and / or the location of the candidate CPU core are the main factors for measuring the thermal interaction between the various CPU cores in the SoC system. Therefore, the embodiment of the present invention can achieve in the resource scheduling process through the setting of preset parameter conditions: when it is necessary to increase CPU resources, the newly opened CPU core has a smaller impact on the temperature of the entire SoC system, thereby effectively reducing the static power consumption of the SoC system; when it is necessary to reduce CPU resources, the closed CPU core has a greater impact on the temperature of the entire SoC system, so that the overall static power consumption of the entire SoC system is smaller after the corresponding CPU core is closed.

[0118] In an optional embodiment, the specific manner in which the scheduling determination module 202 selects at least one target CPU core that meets the preset parameter conditions from all candidate CPU cores according to the target parameters corresponding to all candidate CPU cores may include:

[0119] According to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system meets a preset temperature influence condition is selected from all candidate CPU cores;

[0120] The degree of influence of the candidate CPU core on the temperature of the activated CPU core in the SoC system is determined based on the target parameters corresponding to the candidate CPU core and the target parameters corresponding to the activated CPU core.

[0121] It can be seen that in this optional embodiment, the selection of the target CPU core is achieved by whether the temperature influence degree meets the preset temperature influence condition, and the temperature influence degree is used to measure the temperature influence of the candidate CPU core on the started CPU core in the SoC system. When it is necessary to increase CPU resources, the temperature influence degree of the target CPU core meets the preset temperature influence condition, so that the newly enabled CPU core has less temperature influence on the entire SoC system, thereby effectively reducing the static power consumption of the SoC system; when it is necessary to reduce CPU resources, the temperature influence degree of the target CPU core meets the preset temperature influence condition, so that the overall static power consumption of the entire SoC system is smaller after the corresponding CPU core is turned off.

[0122] In another optional embodiment, the specific manner in which the scheduling determination module 202 selects at least one target CPU core whose temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all candidate CPU cores according to the temperature influence of each candidate CPU core on the started CPU core in the SoC system may include:

[0123] Determine a core CPU core from the started CPU cores of the SoC system, where the core CPU core may include a CPU core whose current temperature meets a preset temperature condition among the started CPU cores;

[0124] If the resource scheduling requirement indicates that CPU resources need to be increased, then the degree of influence of each candidate CPU core on the core CPU core temperature rise is determined according to the temperature difference between the target parameter corresponding to each candidate CPU core and the target parameter corresponding to the core CPU core, and at least one target CPU core whose degree of influence on the core CPU core temperature rise is lower than a preset temperature rise influence degree threshold is selected from all the candidate CPU cores;

[0125] If the resource scheduling requirement indicates the need to reduce CPU resources, the degree of temperature drop impact of each alternative CPU core on the core CPU core is determined based on the temperature difference between the target parameters corresponding to each alternative CPU core and the target parameters corresponding to the core CPU core, and at least one target CPU core whose temperature drop impact on the core CPU core is lower than a preset temperature drop impact threshold is selected from all the alternative CPU cores.

[0126] It can be seen that this optional embodiment can be used to screen out the core CPU cores that need to be considered from the started CPU cores according to the preset temperature conditions and have a greater impact on the static power consumption of the SoC system, thereby eliminating the need to consider the temperature impact on all the started CPU cores, thereby improving the efficiency of resource scheduling; in addition, based on the temperature difference between the target parameters corresponding to each candidate CPU core and the target parameters corresponding to the core CPU core, the degree of influence of each candidate CPU core on the temperature rise or temperature drop of the core CPU core is determined, which complies with Fourier's law of heat conduction, and can more reasonably and accurately determine the target CPU core, thereby improving the effectiveness of resource scheduling.

[0127] In another optional embodiment, if the resource scheduling requirement indicates that the CPU resources need to be increased, when the target parameter corresponding to the alternative CPU core may include the temperature of the alternative CPU core, the lower the temperature of the alternative CPU core, the smaller the impact of starting the alternative CPU core on the temperature rise of the core CPU core; when the target parameter corresponding to the alternative CPU core may include the location of the alternative CPU core, the farther the distance between the alternative CPU core and the core CPU core, the smaller the impact of starting the alternative CPU core on the temperature rise of the core CPU core;

[0128] If the resource scheduling requirement indicates the need to reduce CPU resources, when the target parameter corresponding to the alternative CPU core may include the temperature of the alternative CPU core, the higher the temperature of the alternative CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core; when the target parameter corresponding to the alternative CPU core may include the location of the alternative CPU core, the closer the distance between the alternative CPU core and the core CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core.

[0129] It can be seen that this optional embodiment can design a more reasonable and effective temperature impact judgment scheme based on Fourier's law of heat conduction, combined with the temperature difference and distance between the alternative CPU core and the core CPU core, and can more reasonably and accurately determine the target CPU core, thereby improving the effectiveness of resource scheduling.

[0130] In yet another optional embodiment, the specific manner in which the scheduling determination module 202 determines the core CPU core from the started CPU cores of the SoC system may include:

[0131] Select a CPU core whose current temperature exceeds a preset temperature threshold from the started CPU cores of the SoC system as a core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or,

[0132] Select a CPU core whose temperature difference between the current temperature and the maximum allowed operating temperature is less than a preset temperature difference threshold from the started CPU cores of the SoC system as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or,

[0133] A CPU core whose current temperature exceeds a preset temperature threshold and whose temperature difference between the current temperature value and the maximum allowed operating temperature value is less than the preset temperature difference threshold is selected from the started CPU cores of the SoC system as the core CPU core, and as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores.

[0134] It can be seen that the above-mentioned solution of determining the core CPU cores from the started CPU cores of the SoC system can reasonably and efficiently screen out the core CPU cores that need to be focused on and have a greater impact on the static power consumption of the SoC system from the started CPU cores.

[0135] In yet another optional embodiment, the specific manner in which the candidate determination module 201 determines multiple candidate CPU cores matching the resource scheduling requirement from the SoC system according to the resource scheduling requirement may include:

[0136] Determine the target CPU resource parameters to be scheduled according to the resource scheduling requirements, where the target CPU resource parameters may include resource quantity and / or CPU core type;

[0137] According to the target CPU resource parameters, a plurality of candidate CPU cores matching the target CPU resource parameters are determined from the SoC system.

[0138] It can be seen that this optional embodiment can determine the target CPU resource parameters that need to be scheduled according to the resource scheduling requirements, and then determine multiple alternative CPU cores that match the target CPU resource parameters from the SoC system based on the target CPU resource parameters. CPU cores whose resource quantity and / or CPU core type do not meet the requirements are directly excluded from the range of alternative CPU cores, thereby improving the efficiency of resource scheduling.

[0139] In yet another optional embodiment, each CPU core in the SoC system has a corresponding temperature sensor, and one temperature sensor uniquely corresponds to one CPU core, or one temperature sensor corresponds to multiple CPU cores;

[0140] And, if Figure 3 As shown, the device may also include:

[0141] The resource scheduling module 203 is used to receive identification information uniquely corresponding to each target CPU core after the scheduling determination module 202 selects at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores, so as to perform resource scheduling operations on each target CPU core according to the resource scheduling requirements.

[0142] It can be seen that this optional embodiment can adopt a solution of one temperature sensor corresponding to multiple CPU cores to realize the monitoring of CPU core temperature, thereby saving hardware resources and reducing hardware volume. In addition, according to the resource scheduling requirements and the identification information uniquely corresponding to the target CPU core, the resource scheduling operation is performed on each target CPU core, thereby improving the intelligence of the resource scheduling operation.

[0143] Embodiment 3

[0144] See also Figure 4 , Figure 4 FIG. 1 is a schematic diagram of the structure of another CPU resource scheduling device disclosed in an embodiment of the present invention. Figure 4 As shown, the CPU resource scheduling device may include:

[0145] A memory 301 storing executable program codes;

[0146] a processor 302 coupled to the memory 301;

[0147] The processor 302 calls the executable program code stored in the memory 301 to execute the steps in the CPU resource scheduling method described in the first embodiment of the present invention.

[0148] Embodiment 4

[0149] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the CPU resource scheduling method described in the first embodiment of the present invention.

[0150] Embodiment 5

[0151] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the steps in the CPU resource scheduling method described in the first embodiment.

[0152] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0153] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0154] Finally, it should be noted that the CPU resource scheduling method, device, and storage medium disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A CPU resource scheduling method, characterized in that: The method is applied to a SoC system including multiple CPU cores, and the method includes: When the SoC system has a resource scheduling requirement, a plurality of candidate CPU cores matching the resource scheduling requirement are determined from the SoC system according to the resource scheduling requirement; Obtain target parameters corresponding to each of the candidate CPU cores, and based on the target parameters corresponding to all the candidate CPU cores, select at least one target CPU core that meets preset parameter conditions from all the candidate CPU cores as the CPU core that needs to be scheduled; wherein the target parameters corresponding to the candidate CPU cores include the temperature of the candidate CPU core and / or the location of the candidate CPU core; wherein, if the resource scheduling requirement indicates that CPU resources need to be increased, the target CPU core is the CPU core to be started; if the resource scheduling requirement indicates that CPU resources need to be reduced, the target CPU core is the CPU core to be shut down.

2. The CPU resource scheduling method according to claim 1, characterized in that: The step of selecting at least one target CPU core that meets preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores includes: According to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, selecting at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all the candidate CPU cores; The degree of influence of the candidate CPU core on the temperature of the activated CPU core in the SoC system is determined based on the target parameters corresponding to the candidate CPU core and the target parameters corresponding to the activated CPU core.

3. The CPU resource scheduling method according to claim 2, characterized in that: The step of selecting, according to the degree of temperature influence of each candidate CPU core on the started CPU core in the SoC system, at least one target CPU core whose degree of temperature influence on the started CPU core in the SoC system satisfies a preset temperature influence condition from all the candidate CPU cores comprises: Determine a core CPU core from the started CPU cores of the SoC system, wherein the core CPU core includes a CPU core whose current temperature meets a preset temperature condition among the started CPU cores; If the resource scheduling requirement indicates that CPU resources need to be increased, determining the degree of influence of each candidate CPU core on the core CPU core temperature rise according to the temperature difference between the target parameter corresponding to each candidate CPU core and the target parameter corresponding to the core CPU core, and selecting at least one target CPU core whose degree of influence on the core CPU core temperature rise is lower than a preset temperature rise influence degree threshold from all the candidate CPU cores; If the resource scheduling requirement indicates that CPU resources need to be reduced, the degree of temperature drop influence of each of the alternative CPU cores on the core CPU core is determined based on the temperature difference between the target parameter corresponding to each of the alternative CPU cores and the target parameter corresponding to the core CPU core, and at least one target CPU core whose degree of temperature drop influence on the core CPU core is lower than a preset temperature drop influence degree threshold is selected from all the alternative CPU cores.

4. The CPU resource scheduling method according to claim 3, characterized in that: If the resource scheduling requirement indicates that CPU resources need to be increased, when the target parameter corresponding to the candidate CPU core includes the temperature of the candidate CPU core, the lower the temperature of the candidate CPU core, the smaller the impact of starting the candidate CPU core on the temperature rise of the core CPU core; when the target parameter corresponding to the candidate CPU core includes the location of the candidate CPU core, the farther the distance between the candidate CPU core and the core CPU core, the smaller the impact of starting the candidate CPU core on the temperature rise of the core CPU core; If the resource scheduling requirement indicates a need to reduce CPU resources, when the target parameter corresponding to the alternative CPU core includes the temperature of the alternative CPU core, the higher the temperature of the alternative CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core; when the target parameter corresponding to the alternative CPU core includes the location of the alternative CPU core, the closer the distance between the alternative CPU core and the core CPU core, the greater the impact of shutting down the alternative CPU core on the temperature drop of the core CPU core.

5. The CPU resource scheduling method according to claim 3 or 4, characterized in that: The determining of the core CPU core from the started CPU cores of the SoC system includes: Selecting a CPU core whose current temperature exceeds a preset temperature threshold from the started CPU cores of the SoC system as a core CPU core whose current temperature meets a preset temperature condition among the started CPU cores; or, Select a CPU core whose temperature difference between the current temperature and the maximum allowed operating temperature is less than a preset temperature difference threshold from the started CPU cores of the SoC system as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores; or, A CPU core whose current temperature exceeds a preset temperature threshold and whose temperature difference between the current temperature value and the maximum allowed operating temperature value is less than the preset temperature difference threshold is selected from the started CPU cores of the SoC system as the core CPU core, and as the core CPU core whose current temperature meets the preset temperature condition among the started CPU cores.

6. The CPU resource scheduling method according to claim 5, characterized in that: The determining, according to the resource scheduling requirement, from the SoC system a plurality of candidate CPU cores that match the resource scheduling requirement comprises: Determine the target CPU resource parameters to be scheduled according to the resource scheduling requirements, wherein the target CPU resource parameters include resource quantity and / or CPU core type; According to the target CPU resource parameters, a plurality of candidate CPU cores matching the target CPU resource parameters are determined from the SoC system.

7. The CPU resource scheduling method according to claim 6, characterized in that: Each CPU core in the SoC system has a corresponding temperature sensor, and one temperature sensor uniquely corresponds to one CPU core, or one temperature sensor corresponds to multiple CPU cores; And, after selecting at least one target CPU core that meets the preset parameter conditions from all the candidate CPU cores according to the target parameters corresponding to all the candidate CPU cores, the method further includes: The unique identification information corresponding to each target CPU core is provided to the resource scheduling module of the SoC system, so that the resource scheduling module performs resource scheduling operations on each target CPU core according to the resource scheduling requirements.

8. A CPU resource scheduling device, characterized in that: The device is applied to a SoC system including multiple CPU cores, and the device includes: An alternative determination module, used for determining a plurality of alternative CPU cores matching the resource scheduling requirement from the SoC system according to the resource scheduling requirement when the SoC system has the resource scheduling requirement; A scheduling determination module is used to obtain target parameters corresponding to each of the candidate CPU cores, and based on the target parameters corresponding to all the candidate CPU cores, screen at least one target CPU core that meets preset parameter conditions from all the candidate CPU cores as the CPU core that needs to be scheduled; wherein the target parameters corresponding to the candidate CPU core include the temperature of the candidate CPU core and / or the location of the candidate CPU core; wherein, if the resource scheduling requirement indicates that CPU resources need to be increased, the target CPU core is the CPU core to be started; if the resource scheduling requirement indicates that CPU resources need to be reduced, the target CPU core is the CPU core to be shut down.

9. A CPU resource scheduling device, characterized in that: The device comprises: a memory storing executable program code; a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute the CPU resource scheduling method according to any one of claims 1-7.

10. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the CPU resource scheduling method according to any one of claims 1 to 7.