CN106293914B - A kind of method and terminal of task schedule - Google Patents

A kind of method and terminal of task schedule Download PDF

Info

Publication number
CN106293914B
CN106293914B CN201610621731.7A CN201610621731A CN106293914B CN 106293914 B CN106293914 B CN 106293914B CN 201610621731 A CN201610621731 A CN 201610621731A CN 106293914 B CN106293914 B CN 106293914B
Authority
CN
China
Prior art keywords
kernel
power
temperature
estimate
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610621731.7A
Other languages
Chinese (zh)
Other versions
CN106293914A (en
Inventor
辛将
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610621731.7A priority Critical patent/CN106293914B/en
Publication of CN106293914A publication Critical patent/CN106293914A/en
Application granted granted Critical
Publication of CN106293914B publication Critical patent/CN106293914B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The embodiment of the invention discloses a kind of method of task schedule and terminal, the method for task schedule is run among multi-core processor, and wherein method includes: that the embodiment of the present invention passes through the temperature for obtaining multiple kernels in multi-core processor real-time first;Obtain the minimum operating frequency of waiting task;Then according to the mark of multiple kernels, the temperature of minimum operating frequency and multiple kernels, obtain that multiple kernels are corresponding to estimate power from the database prestored;Wherein, database prestores multiple kernels and estimates power at a temperature of different operating frequency, different operating;Determine that target kernel, target kernel estimate power less than predetermined power threshold value according to the corresponding power of estimating of multiple kernels;Waiting task is finally dispatched to target kernel and waiting task is run with minimum operating frequency;It is run since waiting task is dispatched to the minimum kernel of power in the case where meeting minimum operating frequency, therefore can reduce the power of terminal task scheduling system.

Description

A kind of method and terminal of task schedule
Technical field
The present invention relates to electronic technology field more particularly to the methods and terminal of a kind of task schedule.
Background technique
In terms of current terminal handler overall technology development trend, the property development of single core processor has encountered technology bottle Neck is difficult have breakthrough again.So key breakthrough point of the chip producer in terms of improving processor performance just concentrates on multicore now Processor.Market multi-core processor is early to be mainstream, and four cores, eight cores, ten cores are all commonplace.However it is improved in performance same When, chip producer but will pay close attention to power problem.For multicore when early period develops in the market, the framework between multiple cores is equality, so And with the development of technology, chip producer has devised integrated more in a SOC (System on Chip, system level chip) A different cluster kernel.The framework designed between the kernel of different clusters is different, and is with 8994 platform of high pass currently on the market Example, there are two clusters for its kernel, focus on power and performance respectively, can simply be interpreted as energy consumption than different.In the prior art, only It is scheduled according only to the size (related threshold can be arranged to task size in kernel) of estimating of task, without considering power Situation.
Size of estimating due to the above-mentioned prior art only according to task is scheduled, so as to cause the power of terminal Greatly.
Summary of the invention
The embodiment of the present invention provides a kind of method of task schedule, can reduce the power of terminal task scheduling system.
In a first aspect, the method for the task schedule is run the embodiment of the invention provides a kind of method of task schedule Among multi-core processor, comprising:
The temperature for obtaining multiple kernels in the multi-core processor in real time obtains the minimum operation frequency of waiting task Rate;
According to the mark of the multiple kernel, the temperature of the minimum operating frequency and the multiple kernel, from what is prestored Obtain that the multiple kernel is corresponding to estimate power in database;Wherein, the database prestores the multiple kernel Under various operating conditions estimate power, the operating condition includes multiple working frequencies, multiple operating temperatures;
Determine that target kernel, the target kernel estimate power according to the corresponding power of estimating of the multiple kernel Less than predetermined power threshold value;
The waiting task is dispatched to the target kernel and is run with the minimum operating frequency described to be processed Task.
On the other hand, the embodiment of the invention provides a kind of terminal, the terminal includes multi-core processor, comprising:
Temperature acquiring unit obtains to be processed for obtaining the temperature of multiple kernels in the multi-core processor in real time The minimum operating frequency of task;
Power obtaining unit is estimated, for according to the mark of the multiple kernel, the minimum operating frequency and described more The temperature of a kernel, obtains that the multiple kernel is corresponding to estimate power from the database prestored;Wherein, the data Library prestore the multiple kernel under various operating conditions estimate power, the operating condition include multiple working frequencies, Multiple operating temperatures;
Target kernel determination unit, for determining target kernel according to the corresponding power of estimating of the multiple kernel, The target kernel estimates power less than predetermined power threshold value;
Scheduling unit, for the waiting task to be dispatched to the target kernel and with minimum operating frequency fortune The row waiting task.
The embodiment of the present invention is run among multi-core processor by the method for task schedule, is obtained at multicore in real time first Manage the temperature of multiple kernels in device;Obtain the minimum operating frequency of waiting task;Then according to the mark of multiple kernels, most The temperature of low running frequency and multiple kernels, obtains that multiple kernels are corresponding to estimate power from the database prestored;Its In, database prestore multiple kernels under various operating conditions estimate power, operating condition includes multiple working frequencies, more A operating temperature;Determine that target kernel, the power of estimating of target kernel are less than according to the corresponding power of estimating of multiple kernels Predetermined power threshold value;Waiting task is finally dispatched to target kernel and waiting task is run with minimum operating frequency;By It is run in waiting task is dispatched to the minimum kernel of power in the case where meeting minimum operating frequency, therefore can reduce end Hold the power of task scheduling system.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is an a kind of schematic flow diagram of the method for task schedule provided in an embodiment of the present invention;
Fig. 2 is a kind of another schematic flow diagram of the method for task schedule provided in an embodiment of the present invention;
Fig. 3 is an a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 4 is another schematic block diagram of a kind of terminal provided in an embodiment of the present invention;
Fig. 5 is another schematic block diagram of a kind of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but there is touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal may include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be executed at the terminal can be used such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
It is the schematic flow diagram for a kind of method that the embodiment of the present invention provides task schedule referring to Fig. 1, Fig. 1.The present embodiment In task schedule method executing subject be terminal, terminal includes multi-core processor, and terminal can be mobile phone, tablet computer Equal mobile terminals, or desktop computer etc., herein with no restrictions.The method of task schedule as shown in the figure may include following Step:
The method of task schedule is run among multi-core processor.
In a step 101, the temperature for obtaining multiple kernels in multi-core processor in real time, obtains the minimum of waiting task Running frequency.
In a step 102, according to the mark of multiple kernels, the temperature of minimum operating frequency and multiple kernels, from what is prestored Obtain that multiple kernels are corresponding to estimate power in database;Wherein, database prestores multiple kernels in different operating item Power is estimated under part, operating condition includes multiple working frequencies, multiple operating temperatures.
In specific implementation, according to the mark of multiple kernels, the temperature of minimum operating frequency and multiple kernels, from the number prestored It can be with according to the corresponding power of estimating of multiple kernels is obtained in library specifically:
The Temperature Matching with the mark of multiple kernels, minimum operating frequency and multiple kernels is obtained from the database prestored Multiple kernels respective estimate power.
Kernel identification and operating temperature, working frequency in database estimate power one-to-one correspondence.
In step 103, determine that target kernel, target kernel are estimated according to the corresponding power of estimating of multiple kernels Power is less than predetermined power threshold value.
Wherein, predetermined power threshold value is desired predetermined power.
At step 104, waiting task is dispatched to target kernel and waiting task is run with minimum operating frequency.
In specific implementation, since the waiting task of system may have multiple, system need to continuously dispatch waiting task, therefore After executing the step 104, step 101 is continued to execute.
In specific implementation, multiple kernels belong to different kernel clusters.
It include that (mark is respectively A53-1, A53-2, A53-3, A53-4, A57-1, A57- to multiple kernels in multi-core processor 2, A57-3 and A57-4), the temperature for obtaining multiple kernels in multi-core processor in real time is respectively 40 DEG C, 25 DEG C, 35 DEG C, 30 DEG C, 50 DEG C, 20 DEG C, 15 DEG C and 55 DEG C, obtain waiting task minimum operating frequency be 1.2G, according to above-mentioned multiple kernels Mark, the temperature of above-mentioned minimum operating frequency and above-mentioned multiple kernels, it is respectively right to obtain multiple kernels from the database prestored That answers estimates power, wherein database prestore multiple kernels under various operating conditions estimate power, operating condition includes Multiple working frequencies, multiple operating temperatures.Above-mentioned multiple kernels estimate power be respectively 5mW, 7.1mW, 2.2mW, 3.4mW, 8..6mW, 4.1mW, 3.5mW and 3.7mW;Target kernel, target kernel are determined according to the corresponding power of estimating of multiple kernels Estimate power less than predetermined power threshold value 3.5mW, therefore select kernel (A53-4) as target kernel, finally by be processed Business is dispatched to target kernel A53-4 and runs waiting task with minimum operating frequency 1.2G.
Referring to fig. 2, Fig. 2 is another schematic flow diagram for a kind of method that the embodiment of the present invention provides task schedule.This The executing subject of the method for task schedule in embodiment is terminal, and terminal includes multi-core processor, and terminal can be mobile phone, put down The mobile terminals such as plate computer, or desktop computer etc., herein with no restrictions.The method of task schedule as shown in Figure 2 can The following steps are included:
The method of task schedule is run among multi-core processor.
In step 201, test that multiple kernels are corresponding under various operating conditions to estimate power;Wherein, it works Condition includes multiple operating temperatures, multiple working frequencies.
In step 202, by multiple kernels it is corresponding estimate power, operating condition be associated with mark and saves to data Library.
In specific implementation, a two-dimensional array is generated for each kernel, estimates power and work with characterize the kernel Make the relationship between temperature and working frequency.
In step 203, the temperature for obtaining multiple kernels in multi-core processor in real time, obtains the minimum of waiting task Running frequency.
In step 204, according to the mark ergodic data library of multiple kernels, multiple kernels is obtained and run on minimum operation frequency Rate and the temperature of multiple kernels estimate power;Wherein, database prestores multiple kernels estimating under various operating conditions Power, operating condition include multiple working frequencies, multiple operating temperatures.
In step 205, if the power of estimating for getting at least two kernels is less than predetermined power threshold value, function is estimated in selection The smallest kernel of rate is as target kernel.
Wherein, predetermined power threshold value is desired predetermined power.
In step 206, waiting task is dispatched to target kernel and waiting task is run with minimum operating frequency.
In specific implementation, since the waiting task of system may have multiple, system need to continuously dispatch waiting task, therefore After executing the step 206, step 201 is continued to execute.
In specific implementation, multiple kernels belong to different kernel clusters.For example, including multiple kernels (mark in multi-core processor Know is respectively A53-1, A53-2, A53-3, A53-4, A57-1, A57-2, A57-3 and A57-4), it tests first above-mentioned multiple interior Core is corresponding under various operating conditions to estimate power;Wherein, operating condition includes multiple operating temperatures (0 DEG C, 5 DEG C, 10 DEG C, 15 DEG C, 20 DEG C, 25 DEG C, 30 DEG C, 35 DEG C, 40 DEG C, 45 DEG C, 50 DEG C and 55 DEG C), multiple working frequencies (1G, 1.1G, 1.2G, 1.3G, 1.4G, 1.5G, 1.6G, 1.7G, 1.8G, 1.9G and 2.0G);By multiple kernels it is corresponding estimate power, work item Part is associated with preservation with mark to database.Then obtain in real time the temperature of multiple kernels in multi-core processor be respectively 40 DEG C, 25 DEG C, 35 DEG C, 30 DEG C, 50 DEG C, 20 DEG C, 15 DEG C and 55 DEG C, the minimum operating frequency for obtaining waiting task is 1.2G, according to more The mark ergodic data library of a kernel obtains multiple kernels and runs on the temperature of minimum operating frequency and multiple kernels and estimates function Rate, above-mentioned multiple kernels estimate power be respectively 5mW, 7.1mW, 2.2mW, 3.4mW, 8..6mW, 4.1mW, 3.5mW and 3.7mW;Determine that target kernel, the power of estimating of target kernel are less than default function according to the corresponding power of estimating of multiple kernels Rate threshold value 3.5mW, the power of estimating due to getting at least two kernels (A53-3 and A53-4) are less than predetermined power threshold value, choosing It selects and estimates the smallest kernel of power (A53-3) as target kernel, waiting task is finally dispatched to target kernel A53-3 simultaneously Waiting task is run with minimum operating frequency 1.2G.
Method in order to realize above-mentioned task schedule, the embodiment of the invention also provides a kind of terminals, are referring to Fig. 3, Fig. 3 A kind of one schematic block diagram of terminal provided in an embodiment of the present invention.The each unit that terminal 30 in this example includes is for executing Each step in the corresponding embodiment of Fig. 1 does not repeat herein referring specifically to the corresponding embodiment of Fig. 1 and Fig. 1.Terminal 30 Including multi-core processor, including temperature acquiring unit 310, estimate power obtaining unit 320, target kernel determination unit 330 with And scheduling unit 340.
Temperature acquiring unit 310 obtains to be processed for obtaining the temperature of multiple kernels in multi-core processor in real time The minimum operating frequency of business.
Power obtaining unit 320 is estimated, for the temperature according to the mark of multiple kernels, minimum operating frequency and multiple kernels Degree, obtains that multiple kernels are corresponding to estimate power from the database prestored;Wherein, database prestores multiple kernels and exists Power is estimated under the conditions of different operating, operating condition includes multiple working frequencies, multiple operating temperatures.
Target kernel determination unit 330, for determining target kernel, mesh according to the corresponding power of estimating of multiple kernels Mark kernel estimates power less than predetermined power threshold value.
Scheduling unit 340, for waiting task to be dispatched to target kernel and is run with minimum operating frequency to be processed Task.
In another embodiment, as shown in figure 4, above-mentioned terminal 30 can also include test cell 350 and storage unit 360.The each unit that terminal 30 in this example includes is used to execute each step in the corresponding embodiment of Fig. 2, referring specifically to The corresponding embodiment of Fig. 2 and Fig. 2, does not repeat herein.
Test cell 350, for testing, multiple kernels are corresponding under various operating conditions to estimate power;Wherein, Operating condition includes multiple operating temperatures, multiple working frequencies.
Storage unit 360, for by multiple kernels it is corresponding estimate power, operating condition with mark be associated with save extremely Database.
In specific implementation, estimates power obtaining unit 330 and is specifically used for:
According to the mark ergodic data library of multiple kernels, obtains multiple kernels and run on minimum operating frequency and multiple kernels Temperature estimate power.
Wherein, target kernel determination unit 330 is specifically used for:
If get at least two kernels estimates power less than predetermined power threshold value, the smallest kernel of power is estimated in selection As target kernel.
In specific implementation, multiple kernels belong to different kernel clusters.
Referring to Fig. 5, be another embodiment of the present invention provides a kind of terminal schematic block diagram.In the present embodiment as shown in the figure Terminal 500 may include: one or more processors 501 and memory 502.Above-mentioned processor 501 and memory 502 pass through Bus 503 connects.For storing instruction, processor 501 is used to execute the instruction of the storage of memory 502 to memory 502.Wherein, Processor 501 is used for:
The temperature for obtaining multiple kernels in multi-core processor in real time, obtains the minimum operating frequency of waiting task;Root According to the mark of multiple kernels, the temperature of minimum operating frequency and multiple kernels, it is each that multiple kernels are obtained from the database prestored It is self-corresponding to estimate power;Wherein, database prestore multiple kernels under various operating conditions estimate power, operating condition Including multiple working frequencies, multiple operating temperatures;Target kernel, target are determined according to the corresponding power of estimating of multiple kernels Kernel estimates power less than predetermined power threshold value;Waiting task is dispatched to target kernel and is run with minimum operating frequency Waiting task.
It should be appreciated that in embodiments of the present invention, alleged processor 501 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
The memory 502 may include read-only memory and random access memory, and to processor 801 provide instruction and Data.The a part of of memory 502 can also include nonvolatile RAM.For example, memory 502 can also be deposited Store up the information of device type.
In the specific implementation, processor 501 described in the embodiment of the present invention, can be performed provided in an embodiment of the present invention Implementation described in the embodiment of the method for business scheduling, also can be performed the realization of terminal described in the embodiment of the present invention Mode, details are not described herein.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description The specific work process at end and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase Mutually between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication of device or unit Connection is also possible to electricity, mechanical or other form connections.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs. Unit in the terminal of that embodiment of the invention can be combined, divided and deleted according to actual needs.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (8)

1. a kind of method of task schedule, the method for the task schedule are run among multi-core processor, which is characterized in that packet It includes:
The temperature for obtaining multiple kernels in the multi-core processor in real time, obtains the minimum operating frequency of waiting task;
According to the mark of the multiple kernel, the temperature of the minimum operating frequency and the multiple kernel, from the data prestored Obtain that the multiple kernel is corresponding to estimate power in library;Wherein, the database prestores the multiple kernel not With the power of estimating under operating condition, the operating condition includes multiple working frequencies, multiple operating temperatures;
Determine that target kernel, the power of estimating of the target kernel are less than according to the corresponding power of estimating of the multiple kernel Predetermined power threshold value;
The waiting task is dispatched to the target kernel and the waiting task is run with the minimum operating frequency;
The multiple kernel belongs to different kernel clusters.
2. the method according to claim 1, wherein described obtain in real time in multiple in the multi-core processor The temperature of core, before the minimum operating frequency for obtaining waiting task further include:
Test that the multiple kernel is corresponding under various operating conditions to estimate power;Wherein, the operating condition includes Multiple operating temperatures, multiple working frequencies;
By the multiple kernel it is corresponding it is described estimate power, the operating condition be associated with the mark and saves to described Database.
3. according to the method described in claim 2, it is characterized in that, the mark according to the multiple kernel, the minimum fortune The temperature of line frequency and the multiple kernel, obtains that the multiple kernel is corresponding to estimate power from the database prestored Include:
The database is traversed according to the mark of the multiple kernel, the multiple kernel is obtained and runs on the minimum operation frequency Rate and the temperature of the multiple kernel estimate power.
4. the method according to claim 1, wherein described estimate function according to the multiple kernel is corresponding Rate determines target kernel specifically:
If get at least two kernels estimates power less than the predetermined power, select to estimate the smallest kernel of power as Target kernel.
5. a kind of terminal, the terminal includes multi-core processor characterized by comprising
Temperature acquiring unit obtains waiting task for obtaining the temperature of multiple kernels in the multi-core processor in real time Minimum operating frequency;
Power obtaining unit is estimated, for according to the mark of the multiple kernel, the minimum operating frequency and the multiple interior The temperature of core, obtains that the multiple kernel is corresponding to estimate power from the database prestored;Wherein, the database is pre- Have the multiple kernel under various operating conditions estimate power, the operating condition includes multiple working frequencies, multiple Operating temperature;
Target kernel determination unit, it is described for determining target kernel according to the corresponding power of estimating of the multiple kernel Target kernel estimates power less than predetermined power threshold value;
Scheduling unit, for the waiting task to be dispatched to the target kernel and runs institute with the minimum operating frequency State waiting task;
The multiple kernel belongs to different kernel clusters.
6. terminal according to claim 5, which is characterized in that further include:
Test cell, for testing, the multiple kernel is corresponding under various operating conditions to estimate power;Wherein, described Operating condition includes multiple operating temperatures, multiple working frequencies;
Storage unit, for described estimating power, the operating condition and the mark for the multiple kernel is corresponding Association is saved to the database.
7. terminal according to claim 5, which is characterized in that the power obtaining unit of estimating is specifically used for:
The database is traversed according to the mark of the multiple kernel, the multiple kernel is obtained and runs on the minimum operation frequency Rate and the temperature of the multiple kernel estimate power.
8. terminal according to claim 5, which is characterized in that the target kernel determination unit is specifically used for:
If get at least two kernels estimates power less than the predetermined power threshold value, the smallest kernel of power is estimated in selection As target kernel.
CN201610621731.7A 2016-08-01 2016-08-01 A kind of method and terminal of task schedule Expired - Fee Related CN106293914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610621731.7A CN106293914B (en) 2016-08-01 2016-08-01 A kind of method and terminal of task schedule

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610621731.7A CN106293914B (en) 2016-08-01 2016-08-01 A kind of method and terminal of task schedule

Publications (2)

Publication Number Publication Date
CN106293914A CN106293914A (en) 2017-01-04
CN106293914B true CN106293914B (en) 2019-08-09

Family

ID=57664065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610621731.7A Expired - Fee Related CN106293914B (en) 2016-08-01 2016-08-01 A kind of method and terminal of task schedule

Country Status (1)

Country Link
CN (1) CN106293914B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066326A (en) * 2017-03-27 2017-08-18 深圳市金立通信设备有限公司 The method and terminal of a kind of scheduler task
CN108958449B (en) * 2017-05-26 2023-07-07 中兴通讯股份有限公司 CPU power consumption adjusting method and device
CN108733491B (en) * 2018-05-15 2021-10-15 华东师范大学 Thermal sensing and low-energy-consumption task scheduling method for heterogeneous MPSoC system
CN109947620A (en) * 2019-03-11 2019-06-28 上海肇观电子科技有限公司 A kind of operation method of multi-core processor, device and computer readable storage medium
CN110794949A (en) * 2019-09-27 2020-02-14 苏州浪潮智能科技有限公司 Power consumption reduction method and system for automatically allocating computing resources based on component temperature
CN112764889A (en) * 2019-10-21 2021-05-07 Oppo广东移动通信有限公司 Process scheduling method, device, equipment and storage medium
CN110764605B (en) * 2019-10-30 2021-11-02 Oppo广东移动通信有限公司 Multi-core processor control method and device, electronic equipment and storage medium
CN111782476B (en) * 2020-06-30 2023-06-20 Oppo广东移动通信有限公司 Temperature control method and device, storage medium and electronic equipment
CN112068690B (en) * 2020-09-04 2022-09-20 龙芯中科技术股份有限公司 Processor frequency modulation method and device
CN112799838A (en) * 2021-01-27 2021-05-14 Oppo广东移动通信有限公司 Task processing method, multi-core processor and computer equipment
CN113032145B (en) * 2021-03-18 2023-12-26 北京计算机技术及应用研究所 Task scheduling method based on domestic multi-NUMA node CPU junction temperature balancing strategy

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063031A (en) * 2013-03-15 2014-09-24 英特尔公司 Dynamic Response Improvement Of Hybrid Power Boost Technology
CN105492993A (en) * 2013-08-08 2016-04-13 高通股份有限公司 Intelligent multicore control for optimal performance per watt

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8775830B2 (en) * 2009-12-16 2014-07-08 Qualcomm Incorporated System and method for dynamically controlling a plurality of cores in a multicore central processing unit based on temperature

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063031A (en) * 2013-03-15 2014-09-24 英特尔公司 Dynamic Response Improvement Of Hybrid Power Boost Technology
CN105492993A (en) * 2013-08-08 2016-04-13 高通股份有限公司 Intelligent multicore control for optimal performance per watt

Also Published As

Publication number Publication date
CN106293914A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106293914B (en) A kind of method and terminal of task schedule
US10303509B2 (en) Distributed task system based on internet of things and service processing method for distributed tasks based on the same
EP3736692B1 (en) Using computational cost and instantaneous load analysis for intelligent deployment of neural networks on multiple hardware executors
CN106980492B (en) For the device of calculating, system, method, machine readable storage medium and equipment
US20180203720A1 (en) Techniques to manage virtual classes for statistical tests
US11521115B2 (en) Method and system of detecting data imbalance in a dataset used in machine-learning
US20160004574A1 (en) Method and apparatus for accelerating system running
CN105389325A (en) Content search method and electronic device implementing same
CN106095263A (en) For showing method and the electronic equipment thereof of user interface
CN106662909A (en) Heuristic processsor power management in operating systems
CN106406494B (en) A kind of method and terminal of processor scheduling
CN107944000A (en) Flight freight rate update method, device, electronic equipment, storage medium
CN103189853A (en) Method and apparatus for providing efficient context classification
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CN109471626A (en) Page logic structure, page generation method, page data processing method and device
CN110445558A (en) Performance test methods, device and terminal device
CN111596971B (en) Application cleaning method and device, storage medium and electronic equipment
CN107368255B (en) Unlocking method, mobile terminal and computer readable storage medium
CN105847446A (en) Network data obtaining method, device and system
CN109213662A (en) A kind of user's touch-control behavioral data collection method and terminal
CN109358927A (en) The method, apparatus and terminal device that application program is shown
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
CN109937410A (en) Kernel scheduling method and terminal
CN110837419A (en) Inference engine system and method based on elastic batch processing and electronic equipment
CN110389296A (en) Integrated circuit product handling system method, apparatus and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190809

Termination date: 20200801