(19)
(11)EP 3 330 834 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
06.06.2018 Bulletin 2018/23

(21)Application number: 16829725.7

(22)Date of filing:  27.06.2016
(51)International Patent Classification (IPC): 
G06F 1/20(2006.01)
(86)International application number:
PCT/CN2016/087227
(87)International publication number:
WO 2017/016359 (02.02.2017 Gazette  2017/05)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
MA MD

(30)Priority: 28.07.2015 CN 201510451706

(71)Applicant: Oneplus Technology (Shenzhen) Co., Ltd.
Shenzhen, Guangdong 518000 (CN)

(72)Inventor:
  • ZHANG, Wenyan
    Shenzhen Guangdong 518000 (CN)

(74)Representative: J A Kemp 
14 South Square Gray's Inn
London WC1R 5JJ
London WC1R 5JJ (GB)

  


(54)METHOD AND APPARATUS FOR CONTROLLING OPERATION RESOURCES, AND COMPUTER STORAGE MEDIUM


(57) Disclosed is a method for controlling operation resources. The method comprises: acquiring a maximum frequency supporting running of first operation resources in an apparatus; determining a refrigerated plant quantity corresponding to the maximum frequency according to a pre-determined rule; and determining a second operation resource for a specific quantity, and closing the specific quantity of second operation resources, wherein the specific quantity is the same as the refrigerator quantity. Also disclosed are an apparatus for controlling operation resources and a computer storage medium.




Description

TECHNICAL FIELD



[0001] The disclosure relates to the technical field of electronics, and particularly to a computation resource control method and device and a computer storage medium.

BACKGROUND



[0002] Along with development of a technology, a calculation capability of a processor for an intelligent mobile terminal (for example, a mobile phone and a tablet computer) gets higher and higher. There are included more and more computation units in a tiny physical package of a processor, which attracts more and more attentions to a heat problem of the processor. In a conventional art, in case of high temperature in mobile terminal equipment, a thermal management may reduce frequencies of some computation units and even forcibly disable all computation units to achieve a purpose of reducing the temperature. If the temperature may still not be reduced, the thermal management, as a final barrier, may start device protection to forcibly implement device shutdown. Such a method may protect service life of a device from being shortened by the high temperature. However, a program in computation is easily interrupted forcibly, which brings influence to a user experience. There exists an improvement space for a thermal management strategy of an existing processor applied to an intelligent mobile terminal.

SUMMARY



[0003] Embodiments of the disclosure are expected to provide a computation resource control method and device and a computer storage medium, so as to solve the problem.

[0004] The embodiments of the disclosure provide a computation resource control method, which may include that: a highest frequency supported by a first computation resource for operation in a device is acquired; a cooling room number corresponding to the highest frequency is determined according to a predetermined rule; and
a specific number of second computation resources are determined, and the specific number of second computation resources are disabled, herein the specific number may be the same as the cooling room number.

[0005] In one embodiment, the step that the cooling room number corresponding to the highest frequency is determined according to the predetermined rule may include that: a preset frequency point matched with the highest frequency is searched according to a preset cooling room demand table, and a cooling room number corresponding to the preset frequency point in the cooling room demand table is acquired, herein correspondences between preset frequency points and cooling room numbers may be recorded in the cooling room demand table.

[0006] In one embodiment, the step that the specific number of second computation resources are determined and the specific number of second computation resources are disabled may include that: idle computation resources, computation resources which are highly loaded and used for a long time and computation resources which are least busy are determined from among multiple second computation resources; and the computation resources are disabled according to one of the following manners: a specific number of idle computation resources are selected and disabled, all the idle computation resources and a part of computation resources which are highly loaded and used for a long time are disabled, a sum of numbers of the idle computation resources and the computation resources which are highly loaded and used for a long time being equal to the specific number, or all the idle computation resources, all the computation resources which are highly loaded and used for a long time and a part of computation resources which are least busy are disabled, a sum of numbers of the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy being equal to the specific number.

[0007] In one embodiment, after the step that the specific number of second computation resources are determined and the specific number of second computation resources are disabled, the method may further include that: a temperature of each computation resource is regularly acquired; and when it is detected that the temperature of a certain computation resource is higher than a preset value, the computation resource of which the temperature is higher than the preset value is disabled, and a task required to be processed by the disabled computation resource is transferred to the computation resource with the lowest temperature of the computation resources which have been disabled according to the cooling room number, so as to be processed by the transferred computation resource.

[0008] In one embodiment, after the step that the specific number of second computation resources are determined and the specific number of second computation resources are disabled, the method may further include that: a highest frequency supported by each computation resource for operation is determined, a minimum value is determined from among the determined highest frequencies, a cooling room number corresponding to the minimum value is determined according to the predetermined rule, and it is determined whether the determined cooling room number is smaller than the number of the computation resources which have been disabled at present; if the determined cooling room number is smaller than the number of the computation resources which have been disabled, it is further determined whether minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost; and if the minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost, the disabled computation resource is enabled.

[0009] The embodiments of the disclosure further provide a computation resource control method, which may include that: a temperature of each computation resource is regularly acquired; and
when it is detected that a temperature of a specific computation resource is higher than a preset value, the computation resource of which the temperature is higher than the preset value is disabled, and processing required to be computed by the disabled computation resource is transferred to a computation resource with the lowest temperature in computation resources which have been disabled for processing.

[0010] The embodiments of the disclosure further provide a computation resource control device, which may include: an acquisition module arranged to acquire a highest frequency supported by a first computation resource for operation in a device; a determination module arranged to determine a cooling room number corresponding to the highest frequency according to a predetermined rule; and a disabling module arranged to determine a specific number of second computation resources, and disable the specific number of second computation resources, herein the specific number may be the same as the cooling room number.

[0011] In one embodiment, the determination module may further be arranged to search a preset frequency point matched with the highest frequency according to a preset cooling room demand table, and acquire a cooling room number corresponding to the preset frequency point in the cooling room demand table, herein correspondences between preset frequency points and cooling room numbers may be recorded in the cooling room demand table.

[0012] In one embodiment, the disabling module may include: a type determination module arranged to determine idle computation resources, computation resources which are highly loaded and used for a long time and computation resources which are least busy from among multiple second computation resources; and a resource disabling module arranged to disable the computation resources according to one of the following manners:

selecting and disabling a specific number of idle computation resources,

disabling all the idle computation resources and a part of computation resources which are highly loaded and used for a long time, a sum of numbers of the idle computation resources and the computation resources which are highly loaded and used for a long time being equal to the specific number, or

disabling all the idle computation resources, all the computation resources which are highly loaded and used for a long time and a part of computation resources which are least busy, a sum of numbers of the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy being equal to the specific number.



[0013] In one embodiment, the device may further include: a temperature acquisition module arranged to regularly acquire a temperature of each computation resource; and an exchange module arranged to, when it is detected that the temperature of a certain computation resource is higher than a preset value, disable the computation resource of which the temperature is higher than the preset value, and transfer a task required to be processed by the disabled computation resource to the computation resource with the lowest temperature of the computation resources which have been disabled according to the cooling room number, so as to be processed by the transferred computation resource.

[0014] In one embodiment, the device may further include: a first determination module arranged to determine a highest frequency supported by each computation resource for operation, determine a minimum value from among the determined highest frequencies, determine a cooling room number corresponding to the minimum value according to the predetermined rule, and determine whether the determined cooling room number is smaller than the number of the computation resources which have been disabled at present; a second determination module arranged to, if the determined cooling room number is smaller than the number of the computation resources which have been disabled, further determine whether minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost; and a resource enabling module arranged to, if the minimum current cost after the disabled computation resource is enabled is lower than the present maximum current cost, enable the disabled computation resource.

[0015] The embodiments of the disclosure further provide a computation resource control device, which may include:

a temperature acquisition module arranged to regularly acquire a temperature of each computation resource; and

an exchange module arranged to, when it is detected that a temperature of a certain computation resource is higher than a preset value, disable the computation resource of which the temperature is higher than the preset value, and transfer a task required to be processed by the disabled computation resource to a computation resource with the lowest temperature in computation resources which have been disabled, so as to be processed by the transferred computation resource.



[0016] The embodiments of the disclosure further provide a computer storage medium, in which a computer-executable instruction may be stored, the computer-executable instruction being arranged to execute the computation resource control method of the embodiments of the disclosure.

[0017] According to the computation resource control method and device and computer storage medium provided by the embodiments of the disclosure, the highest frequency presently operable for the first computation resource in the device is acquired, the cooling room number corresponding to the highest frequency is determined, the specific number of second computation resources are determined, and the specific number of second computation resources are disabled, herein the specific number is the same as the cooling room number. On the basis of the characteristic that heat may be autonomously transmitted from a high-temperature object to a low-temperature object, the second computation resources are disabled, the temperatures of the second computation resources are reduced, and then heat of the first computation resource with a relatively high temperature may be transmitted to the second computation resources with relatively low temperatures, thereby implementing heat dissipation of the first computation resource.

BRIEF DESCRIPTION OF DRAWINGS



[0018] 

FIG. 1 is a flowchart of a computation resource control method according to an embodiment.

FIG. 2 is a flowchart of disabling a computation resource according to an embodiment.

FIG. 3 is a flowchart of enabling a computation resource which has been disabled according to an embodiment.

FIG. 4 is a flowchart of another computation resource control method according to an embodiment.

FIG. 5 is a structure block diagram of a computation resource control device according to an embodiment.

FIG. 6 is a structure block diagram of a disabling module according to an embodiment.

FIG. 7 is a structure block diagram of a computation resource control device according to another embodiment.

FIG. 8 is a structure block diagram of another computation resource control device according to an embodiment.


DETAILED DESCRIPTION



[0019] For making the purpose, technical solutions and advantages of the disclosure clearer, the disclosure will further be described below in combination with the drawings and embodiments in detail. It should be understood that the specific embodiments described here are adopted not to limit the disclosure but only to explain the disclosure.

[0020] As shown in FIG. 1, in an embodiment, a computation resource control method is disclosed. The method may be applied to multiple electronic devices, including, but not limited to, a personal computer, a notebook computer, a smart phone, a tablet computer and intelligent wearable equipment. The method specifically includes the following steps.

[0021] In Step 110, a highest frequency supported by a first computation resource for operation in a device is acquired.

[0022] The computation resource may be a core of a Central Processing Unit (CPU) in a processor. For example, a CPU of an existing typical processor for a mobile terminal may have 4, 6 or 8 cores. The computation resource may further be a Graphics Processing Unit (GPU) in the processor. It can be understood that those skilled in the art may realize that the computation resource is not limited to the above two, and in another implementation mode, the computation resource may be a component with a calculation capability in a processor, such as a core, a master core, a sub-core and a hardware engine. The computation resource may be a single one or combination of the abovementioned types.

[0023] In the embodiment, the computation resource in the device usually supports multi-frequency-point computation, and usually selects a proper frequency point in all optional frequency points as an operating frequency according to a computation load and a utilization rate. The highest frequency refers to a maximum frequency in all the optional frequency points. For protecting the processor from being damaged by overheat, a thermal management may forcibly reduce the optional frequency points of the computation resource and accordingly reduce the highest frequency when detecting a high temperature.

[0024] For example, there are 10 frequency points available for a certain computation resource at the beginning: 634 MHz, 768 MHz, 864 MHz, 960 MHz, 1,248 MHz, 1,344 MHz, 1,440 MHz, 1,536 MHz, 1,632 MHz and 1,766 MHz, and at this moment, a highest frequency is 1,766 MHz. When a temperature of the computation resource is relatively high, the available frequency points are reduced step by step. For example, the available frequency points are reduced to 9 at first, and at this moment, the highest frequency is 1,632 MHz. If the temperature is kept increased, the available frequency points are reduced to 8 only, and at this moment, the highest frequency is reduced to 1,536 MHz, and so on.

[0025] In Step 120, a cooling room number corresponding to the highest frequency is determined according to a predetermined rule.

[0026] In the embodiment, a cooling room demand table is preset and stored in the device, and correspondences between preset frequency points and cooling room numbers are recorded in the cooling room demand table. Specifically, a preset frequency point matched with the highest frequency is searched in the cooling room demand table, and then a cooling room number is determined according to the preset frequency point. In the embodiment, the frequency points recorded in the cooling room demand table are frequency critical points corresponding to different cooling room numbers, and when the highest frequency is between two frequency critical points, the frequency point matched with the highest frequency is the relatively large frequency point. In another implementation mode, the cooling room number may be calculated on the basis of highest frequency of the computation resource through a specific formula.

[0027] For example, in a specific example, a certain processor has four available computation resources, and frequency points 384 MHz, 480 MHz, 768 MHz, 864 MHz, 960 MHz, 1,248 MHz, 1,344 MHz, 1,632 MHz and 1,766 MHz are provided. The preset cooling room demand table may be shown in Table 1.
Table 1
1. 768 MHz2. 1,248 MHz3. 1,766 MHz
4. Cooling room number=2 5. Cooling room number=1 6. Cooling room number=0


[0028] Herein, when 768 MHz<highest frequency<1,248 MHz, the highest frequency is lower than 1,248 MHz, but has yet not been reduced to 768 MHz, then the frequency point matched with the present highest frequency is 1,248 MHz, and the corresponding cooling room number is 1. When 1,248 MHz<highest frequency<1,766 MHz, the frequency point matched with the present highest frequency is 1,766 MHz. When highest frequency<768 MHz, the frequency point matched with the present highest frequency is 768 MHz.

[0029] In Step 130, a specific number of second computation resources are determined, and the specific number of second computation resources are disabled, herein the specific number is the same as the cooling room number.

[0030] When a workload of the first computation resource is relatively high but the present highest operable frequency is relatively low, it is indicated that a temperature of the first computation resource is relatively high and thus its highest operable frequency is reduced, and at this moment, heat dissipation is required. In the embodiment, the second computation resources are disabled for heat dissipation. Specifically, the second computation resources are disabled, that is, the second computation resources are deenergized, and temperatures of the second computation resources are reduced. When the temperatures of the second computation resources are lower than the first computation resource, considering directivity of heat conduction, that is, heat may be autonomously transmitted from a high-temperature object to a low-temperature object, heat of the first computation resource with the relatively high temperature may be transmitted to the second computation resources with the relatively low temperatures, thereby implementing heat dissipation of the first computation resource. Thus, the disabled second computation resources are called as cooling rooms.

[0031] In the implementation mode, the second computation resources and the first computation resource are of the same type, and are all cores of the CPU in the processor. It can be understood that, in another implementation mode, the second computation resources and the first computation resource may be of different types when necessary, for example, the first computation resource is a core of the CPU in the processor, and the second computation resources may be one type of components or combinations of multiple types in components with a calculation capability such as the GPU and hardware engine in the processor.

[0032] The specific number of second computation resources are not randomly selected from multiple second computation resources, and one of multiple factors required to be considered is a physical layout of the second computation resources, that is, the second computation resources close to the first computation resource are selected.

[0033] As shown in FIG. 2, in an embodiment, the step that the specific number of second computation resources are determined and the specific number of second computation resources are disabled includes the following steps.

[0034] In Step 130a, idle computation resources, computation resources which are highly loaded and used for a long time and computation resources which are least busy are determined from among multiple second computation resources.

[0035] In the embodiment, the computation resources are divided into three types in advance, i.e. the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy respectively, herein the idle computation resources refer to computation resources which have no computation tasks and are in an idle state, the computation resources which are highly loaded and used for a long time refer to computation resources which are kept in a busy state within a certain period of time, and the computation resources which are least busy refer to computation resources with lowest operating loads.

[0036] In Step 130b, the computation resources are disabled according to one of the following manners:

a specific number of idle computation resources are selected and disabled,

all the idle computation resources and a part of computation resources which are highly loaded and used for a long time are disabled, a sum of numbers of the idle computation resources and the computation resources which are highly loaded and used for a long time being equal to the specific number, or

all the idle computation resources, all the computation resources which are highly loaded and used for a long time and a part of computation resources which are least busy are disabled, a sum of numbers of the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy being equal to the specific number.



[0037] In the embodiment, computation resources in a number equal to the cooling room number are disabled according to the cooling room number. Specifically, if the number meets a requirement, the idle computation resources are preferably selected to be disabled. When the number of the idle computation resources is smaller than the cooling room number, all the idle computation resources are disabled, and a part of computation resources which are highly loaded and used for a long time are selected to be disabled. When a number of all the idle computation resources and all the computation resources which are highly loaded and used for a long time is smaller than the cooling room number, all of them are disabled, and then a part of computation resources which are least busy are selected to be disabled.

[0038] For example, if the required cooling room number searched from the cooling room demand table is 4, 4 computation resources are required to be disabled, and the idle computation resources are preferably disabled. If there is only one idle computation resource at present, the other 3 select computation resources which are highly loaded and used for a long time to be disabled. If the number of the computation resources which are highly loaded and used for a long time is smaller than 3, the left selects computation resources which are least busy to be disabled.

[0039] In the embodiment, the idle computation resources are preferably disabled. This is because they have no computation tasks, but clock sources and power supplies arranged to them have yet not been completely cut off and just enter a relatively low-current mode, only after they are disabled, supplied power may be completely cut off, there is no possibility of converting electricity into heat, and heat dissipation may be helped most preferably. Therefore, it is most appropriate to preferably disable the idle computation resources. If there are insufficient idle computation resources, the computation resources which are highly loaded and used for a long time are selected to be disabled. This is because the temperatures may be relatively high after high loads are kept for a period of time, more heat may be produced by electricity if the temperatures are higher, and is usually exponentially increased, then power supplies are required to supply increasingly high currents to cancel waste caused by conversion of the electricity into heat at the high temperatures, more heat may be produced if the currents are higher, and then more and more heat is accumulated, which is unfavorable for heat dissipation. In order to avoid such a condition, the computation resources which are highly loaded and used for a long time are disabled as second preferred objects. If the number of the two may still not meet the requirement, the computation resources which are least busy are selected to be disabled. Their temperatures are in an intermediate and balanced state, and there is no urgent disabling need, so that they are selected last. By a reasonable sequence of selecting the computation resources to be disabled, heat dissipation may be implemented more effectively.

[0040] In an embodiment, for more comprehensive and uniform heat dissipation of the device, cooling rooms may further be alternated. After Step 130 that the specific number of second computation resources are determined and the specific number of second computation resources are disabled, the method further includes the following steps.

[0041] A temperature of each computation resource is regularly acquired.

[0042] In the embodiment, a thermal sensor is arranged in the vicinity of each computation resource, and the temperature of each computation resource may be rapidly detected. For timely knowing about a change condition of the temperature of each computation resource, data of the thermal sensor may be regularly (for example, 1 second) acquired to determine the temperature of each computation resource.

[0043] When it is detected that the temperature of a certain computation resource is higher than a preset value, the computation resource of which the temperature is higher than the preset value is disabled, and a task required to be processed by the disabled computation resource is transferred to the computation resource with the lowest temperature of the computation resources which have been disabled, so as to be processed by the transferred computation resource.

[0044] The computation resources in the step all belong to the same type, and for example, are all cores in the CPU of the processor.

[0045] In the embodiment, a preset value is preset for the temperature of each computation resource, and after the computation resources are disabled according to the cooling room number, if it is found that the temperatures of the computation resources are still relatively high but not high enough to disable a computation resource, when it is detected that the temperature of a certain computation resource is higher than the preset value, the computation resource is disabled, and meanwhile, a task required to be computed by the disabled computation resource is transferred to the computation resource with the lowest temperature of the computation resources which have been disabled at present for processing. In such a manner, the computation resource of which the temperature is high is disabled, and meanwhile, the disabled computation resource with the lowest temperature is enabled, so that more comprehensive and uniform heat dissipation may be implemented.

[0046] In an embodiment, for reasonably utilizing the computation resources, the disabled computation resources may be re-enabled and recovered into computation resources with a collaborative computation capability. As shown in FIG. 3, after the step that the specific number of second computation resources are determined and the specific number of second computation resources are disabled, the method further includes the following steps.

[0047] In Step 142, a highest frequency operable for each computation resource is determined, a minimum value is determined from among the determined highest frequencies, a cooling room number corresponding to the minimum value is determined according to the predetermined rule, it is determined whether the determined cooling room number is smaller than the number of the computation resources which have been disabled at present, Step 144 is entered if YES, otherwise the method is ended. It is important to note that, in an implementation mode, if presently operating computation resources share the same clock source, the present operating computation resources have the same highest operable frequency, and the minimum value is the highest frequency operable for the presently operating computation resources.

[0048] In the embodiment, after the specific number of second computation resources are disabled, the highest frequency operable for each computation resource is determined again, the minimum value is determined in the highest frequencies of all the computation resources, a preset frequency point matched with the minimum value in the cooling room demand table is searched according to the preset cooling room demand table, and a corresponding cooling room number in the cooling room demand table is searched according to the preset frequency point. The frequency points recorded in the cooling room demand table are the frequency critical points corresponding to different cooling room numbers, and when the minimum value is between two frequency critical points, the frequency point matched with the minimum value is the relatively small frequency point.

[0049] Specifically, as shown in Table 1, when 768 MHz<minimum value<1,248 MHz, the minimum value is larger than 768 MHz but smaller than 1,248 MHz, then the frequency point matched with the minimum value is 768 MHz, and the corresponding cooling room number is 2. When 1,248 MHz<minimum value<1,766 MHz, the frequency point matched with the present minimum value is 1,248 MHz, and the corresponding cooling room number is 1. When minimum value>1,766 MHz, the frequency point matched with the present minimum value is 1,766 MHz, and the corresponding cooling room number is 0. For example, the present cooling room number is 2, a cooling room is allowed to be released (that is, a disabled computation resource is enabled) only when the minimum value returns to over 1,248 MHz, and 1,248 MHz is a minimum frequency point required to be reached after a cooling room is released.

[0050] In Step 144, it is determined whether minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost, Step 306 is entered if YES, otherwise the method is ended.

[0051] Specifically, current cost is power consumption, and its calculation formula is Power(f)*M, where f represents a frequency, Power(f) represents power consumption under the frequency f, and M represents a number of presently operating computation resources. Minimum current cost refers to current cost when the frequency is at a minimum frequency point, and the minimum current cost after the disabled computation resource is enabled may be represented as Power(fmin)*(M+1), where fmin represents a minimum frequency point required to be reached by a highest frequency operable for a disabled computation resource, the minimum frequency point is searched from the cooling room demand table, and since the disabled computation resource is enabled, the presently operating computation resources are increased to M+1. The present maximum current cost is represented as Power(F)*M, and represents current cost in execution of the computation resources under the present highest frequency F under the condition that the cooling room number M is kept unchanged, herein F represents a presently allowable highest frequency. Determining whether the minimum current cost after the disabled computation resource is enabled is lower than the present maximum current cost is to determine whether present maximum power consumption is enough to bear power consumption after a cooling room is released, Step 146 is entered if YES, and if NO, the method is ended.

[0052] In Step 146, the disabled computation resource is enabled.

[0053] In the embodiment, if the present cooling room number is larger than the required cooling room number and the minimum current cost after the disabled computation resource is enabled is lower than the present maximum current cost, a cooling room is released, that is, the disabled computation resource is enabled. In such a manner, the computation resources may be fully and reasonably utilized without computation resource waste.

[0054] The embodiment of the disclosure further provides a computer storage medium, in which a computer-executable instruction is stored, the computer-executable instruction being arranged to execute the computation resource control method of the embodiment of the disclosure.

[0055] As shown in FIG. 4, in an embodiment, a computation resource control method is disclosed. The method includes the following steps.

[0056] In Step 202, a temperature of each computation resource is regularly acquired.

[0057] In the embodiment, a thermal sensor is arranged in the vicinity of each computation resource, and the temperature of each computation resource may be rapidly detected. For timely knowing about a change condition of the temperature of each computation resource, data of the thermal sensor may be regularly (for example, 1 second) acquired to determine the temperature of each computation resource.

[0058] In Step 204, when it is detected that a temperature of a specific computation resource is higher than a preset value, the computation resource of which the temperature is higher than the preset value is disabled, and a task required to be processed by the disabled computation resource is transferred to a computation resource with the lowest temperature in computation resources which have been disabled, so as to be processed by the transferred computation resource.

[0059] The computation resources in Steps 202 and 204 all belong to the same type, and for example, are all cores in a CPU of a processor.

[0060] In the embodiment, a preset value is preset for the temperature of each computation resource, and after the computation resources are disabled according to a cooling room number, if it is found that the temperatures of the computation resources are still relatively high but not high enough to disable a computation resource, when it is detected that the temperature of a certain computation resource is higher than the preset value, the computation resource is disabled, and meanwhile, a task required to be computed by the disabled computation resource is transferred to the computation resource with the lowest temperature of the computation resources which have been disabled at present for processing. In such a manner, the computation resource of which the temperature is high is disabled, and meanwhile, the disabled computation resource with the lowest temperature is enabled, so that more comprehensive and uniform heat dissipation may be implemented.

[0061] In an implementation mode, Steps 202 and 204 are set after Step 130.

[0062] The embodiment of the disclosure further provides a computer storage medium, in which a computer-executable instruction is stored, the computer-executable instruction being arranged to execute the computation resource control method of the embodiment of the disclosure.

[0063] As shown in FIG. 5, in an embodiment, a computation resource control device is disclosed. The device includes:

an acquisition module 410 arranged to acquire a highest frequency supported by a first computation resource for operation in a device;

a determination module 420 arranged to determine a cooling room number corresponding to the highest frequency according to a predetermined rule; and

a disabling module 430 arranged to determine a specific number of second computation resources, and disable the specific number of second computation resources, herein the specific number is the same as the cooling room number.



[0064] In an embodiment, the determination module 420 is further arranged to search a preset frequency point matched with the highest frequency according to a preset cooling room demand table, and acquire a cooling room number corresponding to the preset frequency point in the cooling room demand table, herein correspondences between preset frequency points and cooling room numbers are recorded in the cooling room demand table.

[0065] As shown in FIG. 6, in an embodiment, the disabling module 430 includes:

a type determination module 430a arranged to determine idle computation resources, computation resources which are highly loaded and used for a long time and computation resources which are least busy from among multiple second computation resources; and

a resource disabling module 430b arranged to disable the computation resources according to one of the following manners:

selecting and disabling a specific number of idle computation resources,

disabling all the idle computation resources and a part of computation resources which are highly loaded and used for a long time, a sum of numbers of the idle computation resources and the computation resources which are highly loaded and used for a long time being equal to the specific number, or

disabling all the idle computation resources, all the computation resources which are highly loaded and used for a long time and a part of computation resources which are least busy, a sum of numbers of the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy being equal to the specific number.



[0066] In an embodiment, the device further includes:

a temperature acquisition module arranged to regularly acquire a temperature of each computation resource; and

an exchange module arranged to, when it is detected that the temperature of a certain computation resource is higher than a preset value, disable the computation resource of which the temperature is higher than the preset value, and transfer a task required to be processed by the disabled computation resource to the computation resource with the lowest temperature of the computation resources which have been disabled according to the cooling room number, so as to be processed by the transferred computation resource.



[0067] As shown in FIG. 7, in an embodiment, the device further includes:

a first determination module 440 arranged to determine a highest frequency supported by each computation resource for operation, determine a minimum value from among the determined highest frequencies, determine a cooling room number corresponding to the minimum value according to the predetermined rule, and determine whether the determined cooling room number is smaller than the number of the computation resources which have been disabled at present;

a second determination module 450 arranged to, if the determined cooling room number is smaller than the number of the computation resources which have been disabled, further determine whether minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost; and

a resource enabling module 460 arranged to, if the minimum current cost after the disabled computation resource is enabled is lower than the present maximum current cost, enable the disabled computation resource.



[0068] In the embodiment of the disclosure, the computation resource control device may be implemented by a personal computer during a practical application. The acquisition module 410, determination module 420 and disabling module 430 in the computation resource control device and submodules of the disabling module 430, including the type determination module 430a and the resource disabling module 430b, may all be implemented by a CPU, Digital Signal Processor (DSP), Microcontroller Unit (MCU) or Field-Programmable Gate Array (FPGA) in the computation resource control device during the practical application.

[0069] As shown in FIG. 8, in an embodiment, a computation resource control device is disclosed. The device includes:

a temperature acquisition module 502 arranged to regularly acquire a temperature of each computation resource; and

an exchange module 504 arranged to, when it is detected that a temperature of a certain computation resource is higher than a preset value, disable the computation resource of which the temperature is higher than the preset value, and transfer a task required to be processed by the disabled computation resource to a computation resource with the lowest temperature in computation resources which have been disabled, so as to be processed by the transferred computation resource.



[0070] In the embodiment of the disclosure, the computation resource control device may be implemented by a personal computer during a practical application. The temperature acquisition module 502 and exchange module 504 in the computation resource control device may both be implemented by a CPU, DSP, MCU or FPGA in the computation resource control device during the practical application.

[0071] In some embodiments provided by the application, it should be understood that the disclosed equipment and method may be implemented in another manner. The equipment embodiment described above is only schematic, and for example, division of the units is only logic function division, and other division manners may be adopted during practical implementation. For example, multiple units or components may be combined or integrated into another system, or some characteristics may be neglected executed. In addition, coupling, or direct coupling or communication connection between each displayed or discussed component may be indirect coupling or communication connection, implemented through some interfaces, of the equipment or the units, and may be electrical and mechanical or adopt other forms.

[0072] The units described as separate parts may or may not be physically separated, and parts displayed as units may or may not be physical units, and namely may be located in the same place, or may also be distributed to multiple network units. Part or all of the units may be selected to achieve the purpose of the solutions of the embodiments according to a practical requirement.

[0073] In addition, each function unit in each embodiment of the disclosure may be integrated into a processing unit, each unit may also exist independently, and two or more than two unit may also be integrated into a unit. The integrated unit may be implemented in a hardware form, and may also be implemented in form of hardware and software function unit.

[0074] Those skilled in the art should know that: all or part of the steps of the abovementioned method embodiment may be implemented by instructing related hardware through a program, the abovementioned program may be stored in a computer-readable storage medium, and the program is executed to execute the steps of the abovementioned method embodiment; and the storage medium includes: various media capable of storing program codes such as mobile storage equipment, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.

[0075] Or, when being implemented in form of software function module and sold or used as an independent product, the integrated unit of the disclosure may also be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the embodiments of the disclosure substantially or parts making contributions to the conventional art may be embodied in form of software product, and the computer software product is stored in a storage medium, including a plurality of instructions arranged to enable a piece of computer equipment (which may be a personal computer, a server, network equipment or the like) to execute all or part of the method in each embodiment of the disclosure. The abovementioned storage medium includes: various media capable of storing program codes such as mobile storage equipment, a ROM, a RAM, a magnetic disk or an optical disk.

[0076] The above is only the specific implementation mode of the disclosure and not intended to limit the scope of protection of the disclosure. Any variations or replacements apparent to those skilled in the art within the technical scope disclosed by the disclosure shall fall within the scope of protection of the disclosure. Therefore, the scope of protection of the disclosure shall be subject to the scope of protection of the claims.

INDUSTRIAL APPLICABILITY



[0077] According to the technical solutions of the embodiments of the disclosure, the highest frequency presently operable for the first computation resource in the device is acquired, the cooling room number corresponding to the highest frequency is determined, the specific number of second computation resources are determined, and the specific number of second computation resources are disabled, herein the specific number is the same as the cooling room number. On the basis of the characteristic that heat may be autonomously transmitted from a high-temperature object to a low-temperature object, the second computation resources are disabled, the temperatures of the second computation resources are reduced, and then heat of the first computation resource with a relatively high temperature may be transmitted to the second computation resources with relatively low temperatures, thereby implementing heat dissipation of the first computation resource.


Claims

1. A computation resource control method, comprising:

acquiring a highest frequency supported by a first computation resource for operation in a device;

determining a cooling room number corresponding to the highest frequency according to a predetermined rule; and

determining a specific number of second computation resources, and disabling the specific number of second computation resources, wherein the specific number is the same as the cooling room number.


 
2. The method according to claim 1, wherein determining the cooling room number corresponding to the highest frequency according to the predetermined rule comprises:
searching a preset frequency point matched with the highest frequency according to a preset cooling room demand table, and acquiring a cooling room number corresponding to the preset frequency point in the cooling room demand table, wherein correspondences between preset frequency points and cooling room numbers are recorded in the cooling room demand table.
 
3. The method according to claim 1, wherein determining the specific number of second computation resources and disabling the specific number of second computation resources comprises:

determining idle computation resources, computation resources which are highly loaded and used for a long time and computation resources which are least busy from among a plurality of second computation resources; and

disabling the computation resources according to one of the following manners:

selecting and disabling a specific number of idle computation resources,

disabling all the idle computation resources and a part of computation resources which are highly loaded and used for a long time, a sum of numbers of the idle computation resources and the computation resources which are highly loaded and used for a long time being equal to the specific number, or

disabling all the idle computation resources, all the computation resources which are highly loaded and used for a long time and a part of computation resources which are least busy, a sum of numbers of the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy being equal to the specific number.


 
4. The method according to claim 1, further comprising: after determining the specific number of second computation resources and disabling the specific number of second computation resources,
regularly acquiring a temperature of each computation resource; and
when it is detected that the temperature of a certain computation resource is higher than a preset value, disabling the computation resource of which the temperature is higher than the preset value, and transferring a task required to be processed by the disabled computation resource to a computation resource with the lowest temperature of the computation resources which have been disabled according to the cooling room number, so as to be processed by the transferred computation resource.
 
5. The method according to claim 1, further comprising: after determining the specific number of second computation resources and disabling the specific number of second computation resources,
determining a highest frequency supported by each computation resource for operation, determining a minimum value from among the determined highest frequencies, determining a cooling room number corresponding to the minimum value according to the predetermined rule, and determining whether the determined cooling room number is smaller than the number of the computation resources which have been disabled;
if the determined cooling room number is smaller than the number of the computation resources which have been disabled, further determining whether minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost; and if the minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost, enabling the disabled computation resource.
 
6. A computation resource control method, comprising:

regularly acquiring a temperature of each computation resource; and

when it is detected that a temperature of a specific computation resource is higher than a preset value, disabling the computation resource of which the temperature is higher than the preset value, and transferring a task required to be processed by the disabled computation resource to a computation resource with the lowest temperature in computation resources which have been disabled, so as to be processed by the transferred computation resource.


 
7. A computation resource control device, comprising:

an acquisition module arranged to acquire a highest frequency supported by a first computation resource for operation in a device;

a determination module arranged to determine a cooling room number corresponding to the highest frequency according to a predetermined rule; and

a disabling module arranged to determine a specific number of second computation resources, and disable the specific number of second computation resources, wherein the specific number is the same as the cooling room number.


 
8. The device according to claim 7, wherein the determination module is further arranged to search a preset frequency point matched with the highest frequency according to a preset cooling room demand table, and acquire a cooling room number corresponding to the preset frequency point in the cooling room demand table, wherein correspondences between preset frequency points and cooling room numbers are recorded in the cooling room demand table.
 
9. The device according to claim 7, wherein the disabling module comprises:

a type determination module arranged to determine idle computation resources, computation resources which are highly loaded and used for a long time and computation resources which are least busy from among a plurality of second computation resources; and

a resource disabling module arranged to disable the computation resources according to one of the following manners:

selecting and disabling a specific number of idle computation resources,

disabling all the idle computation resources and a part of computation resources which are highly loaded and used for a long time, a sum of numbers of the idle computation resources and the computation resources which are highly loaded and used for a long time being equal to the specific number, or

disabling all the idle computation resources, all the computation resources which are highly loaded and used for a long time and a part of computation resources which are least busy, a sum of numbers of the idle computation resources, the computation resources which are highly loaded and used for a long time and the computation resources which are least busy being equal to the specific number.


 
10. The device according to claim 7, further comprising:

a temperature acquisition module arranged to regularly acquire a temperature of each computation resource; and

an exchange module arranged to, when it is detected that the temperature of a certain computation resource is higher than a preset value, disable the computation resource of which the temperature is higher than the preset value, and transfer a task required to be processed by the disabled computation resource to the computation resource with the lowest temperature of the computation resources which have been disabled according to the cooling room number, so as to be processed by the transferred computation resource.


 
11. The device according to claim 7, further comprising:

a first determination module arranged to determine a highest frequency supported by each computation resource for operation, determine a minimum value from among the determined highest frequencies, determine a cooling room number corresponding to the minimum value according to the predetermined rule, and determine whether the determined cooling room number is smaller than the number of the computation resources which have been disabled at present;

a second determination module arranged to, if the determined cooling room number is smaller than the number of the computation resources which have been disabled, further determine whether minimum current cost after a disabled computation resource is enabled is lower than present maximum current cost; and

a resource enabling module arranged to, if the minimum current cost after the disabled computation resource is enabled is lower than the present maximum current cost, enable the disabled computation resource.


 
12. A computation resource control device, comprising:

a temperature acquisition module arranged to regularly acquire a temperature of each computation resource; and

an exchange module arranged to, when it is detected that a temperature of a certain computation resource is higher than a preset value, disable the computation resource of which the temperature is higher than the preset value, and transfer a task required to be processed by the disabled computation resource to a computation resource with the lowest temperature in computation resources which have been disabled, so as to be processed by the transferred computation resource.


 
13. A computer storage medium having stored thereon computer-executable instructions arranged to execute the computation resource control method according to any one of claims 1-5.
 
14. A computer storage medium having stored thereon computer-executable instructions arranged to execute the computation resource control method according to claim 6.
 




Drawing




























Search report