CN107844187A - Power consumption management method, device and electronic equipment - Google Patents

Power consumption management method, device and electronic equipment Download PDF

Info

Publication number
CN107844187A
CN107844187A CN201610839192.4A CN201610839192A CN107844187A CN 107844187 A CN107844187 A CN 107844187A CN 201610839192 A CN201610839192 A CN 201610839192A CN 107844187 A CN107844187 A CN 107844187A
Authority
CN
China
Prior art keywords
cpu
gpu
current
thread
application program
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.)
Granted
Application number
CN201610839192.4A
Other languages
Chinese (zh)
Other versions
CN107844187B (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.)
Loongson Technology Corp Ltd
Original Assignee
Loongson Technology Corp 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 Loongson Technology Corp Ltd filed Critical Loongson Technology Corp Ltd
Priority to CN201610839192.4A priority Critical patent/CN107844187B/en
Publication of CN107844187A publication Critical patent/CN107844187A/en
Application granted granted Critical
Publication of CN107844187B publication Critical patent/CN107844187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/324Power saving characterised by the action undertaken by lowering clock frequency
    • 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/3243Power saving in microcontroller unit

Abstract

The invention provides a kind of power consumption management method, device and electronic equipment, is related to power consumption control techniques field, solves the problems, such as that system power dissipation is higher in the prior art or stability is not high when controlling power consumption.The power consumption management method includes:Obtain the state of each thread in the process that current system is run;The condition adjudgement CPU and GPU of each thread current loading condition in the process run according to the current system;Enter Mobile state adjustment to CPU and/or GPU frequency according to the CPU and GPU current loading condition.The embodiment of the present invention is applied in the electronic device be controlled system power dissipation.

Description

Power consumption management method, device and electronic equipment
Technical field
The present invention relates to power consumption control techniques field, more particularly to a kind of power consumption management method, device and electronic equipment.
Background technology
In embedded platform, there are strict requirements for power consumption control, especially in smart machine, each application Program is likely to because the design of program is different, and not to CPU (Central Processing Unit, central processing Device) and GPU (Graphics Processing Unit, graphics processor) frequency be adjusted, and cause very serious Power consumption.Even if there are some embedded platforms to carry out dynamic power management for CPU, can be dropped in certain phase Frequently, or even dormancy is standby, but does also serious inadequate., can only be by being carried out more to power consumption before new battery technology occurs Rational management, so that the lower power consumption that system is overall.
At present, generally by setting threshold value to carry out dynamic frequency to CPU or GPU, by different phase or different fields CPU or GPU frequency is adjusted under scape and voltage reduces the power consumption of system.
During the present invention is realized, inventor has found following technical problem in the prior art at least be present:
Existing dynamic mapping CPU or GPU frequency and voltage, the control to power consumption is not accurate enough, can be stable to system Property produce certain influence.
The content of the invention
Power consumption management method, device and electronic equipment provided by the invention, can be according to thread state to CPU's and GPU Frequency enters Mobile state adjustment, and so as to reduce the overall power of system, stability is higher.
In a first aspect, the present invention provides a kind of power consumption management method, including:
Obtain the state of each thread in the process that current system is run;
The condition adjudgement CPU and GPU of each thread current load feelings in the process run according to the current system Condition;
Enter Mobile state adjustment to CPU and/or GPU frequency according to the CPU and GPU current loading condition.
Second aspect, the present invention provide a kind of power consumption managing device, including:
Acquiring unit, the state of each thread in the process run for obtaining current system;
Judging unit, condition adjudgement CPU and GPU for each thread in the process run according to the current system Current loading condition;
First adjustment unit, for being entered according to the CPU and GPU current loading condition to CPU and/or GPU frequency Mobile state adjusts.
The third aspect, the present invention provide a kind of electronic equipment, and the electronic equipment includes above-mentioned power consumption managing device.
Power consumption management method, device and electronic equipment provided in an embodiment of the present invention, according to the current system institute got The state of each thread in the process of operation, judge the current loading conditions of CPU and GPU, and accordingly to CPU and/or GPU frequency Rate enters Mobile state adjustment.Compared with prior art, the present invention can judge CPU and GPU load exactly according to thread state Situation, so as to adjust CPU and/or GPU frequency, Stability and veracity is higher;Further, since the thread of application program is each It is compatible on platform, therefore, CPU and/or GPU frequency is adjusted according to thread state, between each platform Portability it is high.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only Some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the flow chart of power consumption management method embodiment one of the present invention;
Fig. 2 is the flow chart of power consumption management method embodiment two of the present invention;
Fig. 3 is the structural representation of power consumption managing device embodiment one of the present invention;
Fig. 4 is the structural representation of power consumption managing device embodiment two of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Only it is part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill The every other embodiment that personnel are obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The relation between the concept of application program, process and thread and three is described below.
Application program is the ordered set of one group of instruction.Process is the application program with certain standalone feature on some Once operation activity on data acquisition system, it is the individual that system carries out Resource Distribution and Schedule.Thread is process One entity, it is CPU scheduling and the base unit assigned, it is the base unit of the energy independent operating smaller than process;Thread Oneself do not possess system resource substantially, only possess a little essential resource in operation, as program counter, one group are posted Storage and stack, but it can share whole resources for being possessed of process with belonging to other threads of a process together.
Generally speaking, application program at least one process, process at least one thread.It is same to apply journey Sequence is run on several data acquisition systems simultaneously, and it will belong to several different processes, that is to say, that same application can With corresponding multiple processes.In traditional operating system, application program can not independent operating, as resource allocation and independent transport Capable elementary cell is all process.Generally, several threads can be included in a process, they can be gathered around using process Some resources, generally all it is the base unit using process as distribution resource in the operating system of thread is introduced into, and thread The base unit as independent operating and independently dispatched.
The present invention provides a kind of power consumption management method, and Fig. 1 is the flow chart of power consumption management method embodiment one of the present invention, such as Shown in Fig. 1, the method for the present embodiment includes:
S11, the state for obtaining each thread in the process that current system is run.
Specifically, state machine can be set in system kernel layer, to each thread in process corresponding to each application program It is monitored, obtains the state of each thread.
Wherein, the state of thread generally includes operation, dormancy, stopping etc..
The condition adjudgement CPU and GPU of each thread are current in S12, the process run according to the current system bears Load situation.
Wherein, when each thread state in which difference in the process that the current system is run, corresponding CPU and Loading condition current GPU would also vary from, the state of each thread in the process run by obtaining current system, can To judge the current loading conditions of CPU and GPU.Specifically, for some application program, the application is being run for the first time When program, that is, when initialize, the electronic equipment where the application program monitors institute under the application program automatically The state of each thread in the process of operation, and the stage according to residing for the state of each thread determines the application program, and obtain The loading condition of GPU, CPU corresponding to the different phase residing for the application program are taken, and then establishes rank residing for each application program Section and the mapping table of CPU and GPU loading condition;It is or right as the different phase institute residing for artificial statistics application program GPU, CPU for answering loading condition, and the load feelings in stage residing for each application program and CPU and GPU are established on an electronic device The mapping table of condition.In subsequent applications program operation process, pass through stage and CPU residing for each application program for pre-establishing With the mapping table of GPU loading condition, it is current to search CPU and GPU corresponding with the stage that each application program is presently in Loading condition.
If the application program currently run has multiple, with reference to the stage searched obtained each application program and be presently in Corresponding CPU and GPU current loading condition, determine the current total load situations of CPU and GPU.Such as:To can each it apply Loading condition current CPU corresponding to the stage that program is presently in is added, and obtains the current total load situations of CPU, will be each Loading condition current GPU corresponding to the stage that application program is presently in is added, and obtains the current total load situations of GPU.
S13, enter Mobile state adjustment to CPU and/or GPU frequency according to the CPU and GPU current loading condition.
Specifically, when loading condition current GPU is high, GPU frequency is improved, reduces CPU frequency;When CPU works as When preceding loading condition is high, CPU frequency is improved, reduces GPU frequency;When the current loading conditions of GPU and CPU are height When, while improve GPU and CPU frequency.
Wherein, when GPU interface interchanges are frequent, such as:During more than default calling frequency threshold, show that GPU is current and bear Load situation is height;Or when the amount of calculation in the GPU unit interval is larger, such as:More than default unit interval amount of calculation threshold value When, show the current loading conditions of GPU for height.
Similarly, when cpu i/f call it is frequent, such as:During more than default calling frequency threshold, show that CPU is current Loading condition is height;Or when the amount of calculation in the CPU unit interval is larger, such as:More than default unit interval amount of calculation threshold During value, show the current loading conditions of CPU for height.
It is alternatively possible to enter Mobile state adjustment to CPU and/or GPU frequency according only to loading condition current GPU.Example Such as:When loading condition current GPU is high, GPU frequency is improved, reduces CPU frequency;When the current loading conditions of GPU For it is low when, improve CPU frequency, reduce GPU frequency.
Power consumption management method provided in an embodiment of the present invention, it is each in the process run according to the current system got The state of thread, judge the current loading conditions of CPU and GPU, and Mobile state adjustment is entered to CPU and/or GPU frequency accordingly. Compared with prior art, the present invention can judge CPU and GPU loading condition exactly according to thread state, so as to adjust CPU And/or GPU frequency, Stability and veracity are higher;Further, since the thread of application program is compatible on each platform, Therefore, CPU and/or GPU frequency are adjusted according to thread state, it is high for the portability between each platform.
The present invention provides another power consumption management method, and Fig. 2 is the flow chart of power consumption management method embodiment two of the present invention, As shown in Fig. 2 the method for the present embodiment includes:
S21, the state for obtaining each thread in the process that current system is run.
Specifically, state machine can be set in system kernel layer, to each thread in process corresponding to each application program It is monitored, obtains the state of each thread.
Wherein, the state of thread generally includes operation, dormancy, stopping etc..
The state of each thread in S22, the process run according to the current system, each application program in judgement system The stage being presently in.
Wherein, application program includes the stages such as initialization, operation, for an application program, can be answered according to this The stage that the condition adjudgement of each thread application program in the process corresponding to program is presently in.
Such as:Process corresponding to one application program includes three threads, when thread 1 is in running status, the and of thread 2 Thread 3 in a dormant state when, the application program is currently at initial phase;When thread 1 and thread 2 be in running status, Thread 3 in a dormant state when, the application program is currently at the operation phase.
S23, according to the stage that each application program is presently in the system, judge the current load feelings of CPU and GPU Condition.
Specifically, for some application program, when the application program is run for the first time, that is, initialize When, the electronic equipment where the application program monitors the shape of each thread in the process run under the application program automatically State, and the stage according to residing for the state of each thread determines the application program, and obtain the not same order residing for the application program The loading condition of GPU, CPU corresponding to section, and then establish stage residing for each application program and CPU and GPU loading condition Mapping table;Or the loading condition as GPU, CPU corresponding to the different phase residing for artificial statistics application program, and Stage residing for each application program and the mapping table of CPU and GPU loading condition are established on an electronic device.In subsequent applications In program operation process, pass through stage residing for each application program for pre-establishing and the corresponding relation of CPU and GPU loading condition Table, search the current loading conditions of CPU and GPU corresponding with the stage that each application program is presently in.
If the application program currently run has multiple, with reference to the stage searched obtained each application program and be presently in Corresponding CPU and GPU current loading condition, determine the current total load situations of CPU and GPU.Such as:To can each it apply Loading condition current CPU corresponding to the stage that program is presently in is added, and obtains the current total load situations of CPU, will be each Loading condition current GPU corresponding to the stage that application program is presently in is added, and obtains the current total load situations of GPU.
Alternatively, for different application programs, the loading condition of CPU and GPU corresponding to its residing stage may Also it is different, that is to say, that for corresponding different application program, stage residing for its application program and CPU and GPU load The mapping table of situation may be differed also.
S24, enter Mobile state adjustment to CPU and/or GPU frequency according to the CPU and GPU current loading condition.
Specifically, when loading condition current GPU is high, GPU frequency is improved, reduces CPU frequency;When CPU works as When preceding loading condition is high, CPU frequency is improved, reduces GPU frequency;When the current loading conditions of GPU and CPU are height When, while improve GPU and CPU frequency.
Wherein, when GPU interface interchanges are frequent, such as:During more than default calling frequency threshold, show that GPU is current and bear Load situation is height;Or when the amount of calculation in the GPU unit interval is larger, such as:More than default unit interval amount of calculation threshold value When, show the current loading conditions of GPU for height.
Similarly, when cpu i/f call it is frequent, such as:During more than default calling frequency threshold, show that CPU is current Loading condition is height;Or when the amount of calculation in the CPU unit interval is larger, such as:More than default unit interval amount of calculation threshold During value, show the current loading conditions of CPU for height.
Further, when each thread enters resting state in the process that the current system is run, drop simultaneously Low CPU and GPU frequency.
Power consumption management method provided in an embodiment of the present invention, it is each in the process run according to the current system got The state of thread, the stage that each application program is presently in judgement system, and then judge the current loading conditions of CPU and GPU, And Mobile state adjustment is entered to CPU and/or GPU frequency accordingly.Compared with prior art, the present invention can be accurate according to thread state Really judge CPU and GPU loading condition, so as to adjust CPU and/or GPU frequency, Stability and veracity is higher;In addition, Because the thread of application program is compatible on each platform, therefore, CPU and/or GPU frequency are entered according to thread state Row adjustment, it is high for the portability between each platform.
The embodiment of the present invention provides a kind of power consumption managing device, and Fig. 3 is the knot of power consumption managing device embodiment one of the present invention Structure schematic diagram, as shown in figure 3, the device of the present embodiment includes:
Acquiring unit 11, the state of each thread in the process run for obtaining current system;
Wherein, the state of thread generally includes operation, dormancy, stopping etc..
Judging unit 12, for each thread in the process run according to the current system condition adjudgement CPU and Loading condition current GPU;
First adjustment unit 13, for the frequency according to the CPU and GPU current loading condition to CPU and/or GPU Enter Mobile state adjustment.
Power consumption managing device provided in an embodiment of the present invention, it is each in the process run according to the current system got The state of thread, judge the current loading conditions of CPU and GPU, and Mobile state adjustment is entered to CPU and/or GPU frequency accordingly. Compared with prior art, the present invention can judge CPU and GPU loading condition exactly according to thread state, so as to adjust CPU And/or GPU frequency, Stability and veracity are higher;Further, since the thread of application program is compatible on each platform, Therefore, CPU and/or GPU frequency are adjusted according to thread state, it is high for the portability between each platform.
Fig. 4 is the structural representation of power consumption managing device embodiment two of the present invention, as shown in figure 4, alternatively, the acquisition Unit 11, for being monitored in system kernel layer to each thread in process corresponding to each application program, obtain each line The state of journey.
Further, as shown in figure 4, the judging unit 12 includes:
First judgment sub-unit 121, for the state of each thread in the process run according to the current system, sentence The stage that each application program is presently in disconnected system;
Second judgment sub-unit 122, for according to the stage that each application program is presently in the system, judging CPU The current loading condition with GPU.
Wherein, application program includes the stages such as initialization, operation, for an application program, can be answered according to this The stage that the condition adjudgement of each thread application program in the process corresponding to program is presently in.
Such as:Process corresponding to one application program includes three threads, when thread 1 is in running status, the and of thread 2 Thread 3 in a dormant state when, the application program is currently at initial phase;When thread 1 and thread 2 be in running status, Thread 3 in a dormant state when, the application program is currently at the operation phase.
After the stage that each application program is presently in the determination system of first judgment sub-unit 121, second judges that son is single Loading condition current CPU and GPU corresponding to the stage that each application program of the determination of member 122 is presently in.
Specifically, for some application program, when the application program is run for the first time, that is, initialize When, the electronic equipment where the application program monitors the shape of each thread in the process run under the application program automatically State, and the stage according to residing for the state of each thread determines the application program, and obtain the not same order residing for the application program The loading condition of GPU, CPU corresponding to section, and then establish stage residing for each application program and CPU and GPU loading condition Mapping table;Or the loading condition as GPU, CPU corresponding to the different phase residing for artificial statistics application program, and Stage residing for each application program and the mapping table of CPU and GPU loading condition are established on an electronic device.In subsequent applications In program operation process, pass through stage residing for each application program for pre-establishing and the corresponding relation of CPU and GPU loading condition Table, search the current loading conditions of CPU and GPU corresponding with the stage that each application program is presently in.
If the application program currently run has multiple, with reference to the stage searched obtained each application program and be presently in Corresponding CPU and GPU current loading condition, determine the current total load situations of CPU and GPU.Such as:To can each it apply Loading condition current CPU corresponding to the stage that program is presently in is added, and obtains the current total load situations of CPU, will be each Loading condition current GPU corresponding to the stage that application program is presently in is added, and obtains the current total load situations of GPU.
Alternatively, for different application programs, the loading condition of CPU and GPU corresponding to its residing stage may Also it is different, that is to say, that for corresponding different application program, stage residing for its application program and CPU and GPU load The mapping table of situation may be differed also.
Further, as shown in figure 4, described device also includes:
Monitoring unit 14, for obtaining the shape of each thread in the process run of current system in the acquiring unit 11 Before state, during each application program is run first, each application program is monitored GPU's corresponding to different phase and CPU Loading condition;
Unit 15 is established, for establishing stage residing for each application program and the corresponding relation of CPU and GPU loading condition Table.
Alternatively, second judgment sub-unit 122, for by it is described establish that unit 15 establishes described respectively apply journey Stage residing for sequence and the mapping table of CPU and GPU loading condition, are searched corresponding with the stage that each application program is presently in CPU and the current loading conditions of GPU.
Alternatively, first adjustment unit 13, for when loading condition current GPU is high, improving GPU frequency Rate, reduce CPU frequency;When loading condition current CPU is high, CPU frequency is improved, reduces GPU frequency;Work as GPU When current loading condition is high with CPU, while improve GPU and CPU frequency.
Wherein, when GPU interface interchanges are frequent, such as:During more than default calling frequency threshold, show that GPU is current and bear Load situation is height;Or when the amount of calculation in the GPU unit interval is larger, such as:More than default unit interval amount of calculation threshold value When, show the current loading conditions of GPU for height.
Similarly, when cpu i/f call it is frequent, such as:During more than default calling frequency threshold, show that CPU is current Loading condition is height;Or when the amount of calculation in the CPU unit interval is larger, such as:More than default unit interval amount of calculation threshold During value, show the current loading conditions of CPU for height.
Further, as shown in figure 4, described device also includes:
Second adjustment unit 16, enter resting state for each thread in the process run when the current system When, while reduce CPU and GPU frequency.
Power consumption managing device provided in an embodiment of the present invention, it is each in the process run according to the current system got The state of thread, the stage that each application program is presently in judgement system, and then judge the current loading conditions of CPU and GPU, And Mobile state adjustment is entered to CPU and/or GPU frequency accordingly.Compared with prior art, the present invention can be accurate according to thread state Really judge CPU and GPU loading condition, so as to adjust CPU and/or GPU frequency, Stability and veracity is higher;In addition, Because the thread of application program is compatible on each platform, therefore, CPU and/or GPU frequency are entered according to thread state Row adjustment, it is high for the portability between each platform.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes above-mentioned power consumption managing device.
The electronic equipment can be desktop computer, notebook computer, mobile phone, PAD etc., but be not limited only to this.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, the change or replacement that can readily occur in, all should It is included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (15)

  1. A kind of 1. power consumption management method, it is characterised in that including:
    Obtain the state of each thread in the process that current system is run;
    The condition adjudgement CPU and GPU of each thread current loading condition in the process run according to the current system;
    Enter Mobile state adjustment to CPU and/or GPU frequency according to the CPU and GPU current loading condition.
  2. 2. according to the method for claim 1, it is characterised in that each line in the process for obtaining current system and being run The state of journey includes:Each thread in process corresponding to each application program is monitored in system kernel layer, obtained each The state of thread.
  3. 3. according to the method for claim 2, it is characterised in that each in the process run according to the current system The loading condition that the condition adjudgement CPU and GPU of individual thread are current includes:
    The state of each thread in the process run according to the current system, each application program is presently in judgement system Stage;
    According to the stage that each application program is presently in the system, the current loading conditions of CPU and GPU are judged.
  4. 4. according to the method for claim 3, it is characterised in that each in the process that the acquisition current system is run Before the state of thread, methods described also includes:
    During each application program is run first, load of each application program in GPU corresponding to different phase and CPU is monitored Situation;
    Establish stage residing for each application program and the mapping table of CPU and GPU loading condition.
  5. 5. according to the method for claim 4, it is characterised in that described to be presently according to each application program in the system Stage, judge that the current loading conditions of CPU and GPU include:By the stage residing for each application program with CPU's and GPU The mapping table of loading condition, search the current load feelings of CPU and GPU corresponding with the stage that each application program is presently in Condition.
  6. 6. according to the method for claim 5, it is characterised in that the loading condition pair current according to the CPU and GPU CPU and/or GPU frequency, which enters Mobile state adjustment, to be included:
    When loading condition current GPU is high, GPU frequency is improved, reduces CPU frequency;
    When loading condition current CPU is high, CPU frequency is improved, reduces GPU frequency;
    When the current loading conditions of GPU and CPU are high, while improve GPU and CPU frequency.
  7. 7. according to the method for claim 1, it is characterised in that methods described also includes:
    When each thread enters resting state in the process that the current system is run, while reduce CPU and GPU frequency Rate.
  8. A kind of 8. power consumption managing device, it is characterised in that including:
    Acquiring unit, the state of each thread in the process run for obtaining current system;
    Judging unit, the condition adjudgement CPU and GPU for each thread in the process run according to the current system are current Loading condition;
    First adjustment unit, for entering action to CPU and/or GPU frequency according to the CPU and GPU current loading condition State adjusts.
  9. 9. device according to claim 8, it is characterised in that the acquiring unit, for system kernel layer to respectively should Each thread in the process corresponding to program is monitored, and obtains the state of each thread.
  10. 10. device according to claim 9, it is characterised in that the judging unit includes:
    First judgment sub-unit, for the state of each thread in the process run according to the current system, judge system In stage for being presently in of each application program;
    Second judgment sub-unit, for according to the stage that each application program is presently in the system, judging that CPU and GPU works as Preceding loading condition.
  11. 11. device according to claim 10, it is characterised in that described device also includes:
    Monitoring unit, for being obtained in the acquiring unit in the process run of current system before the state of each thread, During each application program is run first, load feelings of each application program in GPU corresponding to different phase and CPU are monitored Condition;
    Unit is established, for establishing stage residing for each application program and the mapping table of CPU and GPU loading condition.
  12. 12. device according to claim 11, it is characterised in that second judgment sub-unit, for being built by described Stage and the mapping table of CPU and GPU loading condition, are searched with respectively should residing for each application program that vertical unit is established Loading condition current CPU and GPU corresponding to the stage being presently in program.
  13. 13. device according to claim 12, it is characterised in that first adjustment unit, for being born when GPU is current When load situation is high, GPU frequency is improved, reduces CPU frequency;When loading condition current CPU is high, improve CPU's Frequency, reduce GPU frequency;When the current loading conditions of GPU and CPU are high, while improve GPU and CPU frequency.
  14. 14. device according to claim 8, it is characterised in that described device also includes:
    Second adjustment unit, when entering resting state for each thread in the process run when the current system, together When reduce CPU and GPU frequency.
  15. 15. a kind of electronic equipment, it is characterised in that the electronic equipment is included as any one of claim 8 to 14 Power consumption managing device.
CN201610839192.4A 2016-09-21 2016-09-21 Power consumption management method and device and electronic equipment Active CN107844187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610839192.4A CN107844187B (en) 2016-09-21 2016-09-21 Power consumption management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610839192.4A CN107844187B (en) 2016-09-21 2016-09-21 Power consumption management method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107844187A true CN107844187A (en) 2018-03-27
CN107844187B CN107844187B (en) 2020-06-12

Family

ID=61657575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610839192.4A Active CN107844187B (en) 2016-09-21 2016-09-21 Power consumption management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107844187B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308784A (en) * 2019-04-30 2019-10-08 东莞恒创智能科技有限公司 CPU, GPU based on Nvidia TX2 combine frequency modulation energy-saving optimization method
CN111077979A (en) * 2019-12-09 2020-04-28 Oppo广东移动通信有限公司 Power consumption control method, storage medium, and electronic device
CN111414069A (en) * 2020-02-14 2020-07-14 苏州浪潮智能科技有限公司 Power consumption control method and system of GPU server and related components
CN111429333A (en) * 2020-03-25 2020-07-17 京东方科技集团股份有限公司 GPU dynamic frequency modulation method, device and system
CN111475009A (en) * 2020-04-16 2020-07-31 苏州浪潮智能科技有限公司 Power consumption reduction circuit of GPU in server and server
CN111552360A (en) * 2019-02-25 2020-08-18 研祥智能科技股份有限公司 Industrial personal computer cooling method and device, computer equipment and storage medium
CN111897410A (en) * 2020-07-15 2020-11-06 展讯通信(上海)有限公司 System component power consumption optimization method and device, electronic equipment and storage medium
CN112363842A (en) * 2020-11-27 2021-02-12 Oppo(重庆)智能科技有限公司 Frequency adjusting method and device for graphic processor, electronic equipment and storage medium
CN112667478A (en) * 2020-12-30 2021-04-16 联想(北京)有限公司 Control method and control device
CN116048772A (en) * 2022-08-26 2023-05-02 荣耀终端有限公司 Method and device for adjusting frequency of central processing unit and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690955A (en) * 2004-04-29 2005-11-02 钜格系统科技股份有限公司 Power supply management method for hand-held information processing apparatus
CN101477398A (en) * 2008-12-25 2009-07-08 深圳华为通信技术有限公司 Terminal power consumption control method and apparatus
CN103324270A (en) * 2013-06-25 2013-09-25 东莞宇龙通信科技有限公司 Mobile terminal and method for adjusting CPU (Central Processing Unit) frequency thereof
CN105045367A (en) * 2015-01-16 2015-11-11 中国矿业大学 Android system equipment power consumption optimization method based on game load prediction
CN105637556A (en) * 2013-10-14 2016-06-01 马维尔国际贸易有限公司 Systems and methods for graphics process units power management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690955A (en) * 2004-04-29 2005-11-02 钜格系统科技股份有限公司 Power supply management method for hand-held information processing apparatus
CN101477398A (en) * 2008-12-25 2009-07-08 深圳华为通信技术有限公司 Terminal power consumption control method and apparatus
CN103324270A (en) * 2013-06-25 2013-09-25 东莞宇龙通信科技有限公司 Mobile terminal and method for adjusting CPU (Central Processing Unit) frequency thereof
CN105637556A (en) * 2013-10-14 2016-06-01 马维尔国际贸易有限公司 Systems and methods for graphics process units power management
CN105045367A (en) * 2015-01-16 2015-11-11 中国矿业大学 Android system equipment power consumption optimization method based on game load prediction

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552360A (en) * 2019-02-25 2020-08-18 研祥智能科技股份有限公司 Industrial personal computer cooling method and device, computer equipment and storage medium
CN111552360B (en) * 2019-02-25 2022-04-19 研祥智能科技股份有限公司 Industrial personal computer cooling method and device, computer equipment and storage medium
CN110308784A (en) * 2019-04-30 2019-10-08 东莞恒创智能科技有限公司 CPU, GPU based on Nvidia TX2 combine frequency modulation energy-saving optimization method
CN111077979B (en) * 2019-12-09 2021-04-02 Oppo广东移动通信有限公司 Power consumption control method, storage medium, and electronic device
CN111077979A (en) * 2019-12-09 2020-04-28 Oppo广东移动通信有限公司 Power consumption control method, storage medium, and electronic device
CN111414069A (en) * 2020-02-14 2020-07-14 苏州浪潮智能科技有限公司 Power consumption control method and system of GPU server and related components
CN111429333A (en) * 2020-03-25 2020-07-17 京东方科技集团股份有限公司 GPU dynamic frequency modulation method, device and system
CN111475009A (en) * 2020-04-16 2020-07-31 苏州浪潮智能科技有限公司 Power consumption reduction circuit of GPU in server and server
CN111475009B (en) * 2020-04-16 2022-03-22 苏州浪潮智能科技有限公司 Power consumption reduction circuit of GPU in server and server
US11656674B2 (en) 2020-04-16 2023-05-23 Inspur Suzhou Intelligent Technology Co., Ltd. Power consumption reduction circuit for GPUs in server, and server
CN111897410A (en) * 2020-07-15 2020-11-06 展讯通信(上海)有限公司 System component power consumption optimization method and device, electronic equipment and storage medium
CN112363842A (en) * 2020-11-27 2021-02-12 Oppo(重庆)智能科技有限公司 Frequency adjusting method and device for graphic processor, electronic equipment and storage medium
CN112363842B (en) * 2020-11-27 2023-01-06 Oppo(重庆)智能科技有限公司 Frequency adjusting method and device for graphic processor, electronic equipment and storage medium
CN112667478A (en) * 2020-12-30 2021-04-16 联想(北京)有限公司 Control method and control device
CN116048772A (en) * 2022-08-26 2023-05-02 荣耀终端有限公司 Method and device for adjusting frequency of central processing unit and terminal equipment
CN116048772B (en) * 2022-08-26 2023-10-31 荣耀终端有限公司 Method and device for adjusting frequency of central processing unit and terminal equipment

Also Published As

Publication number Publication date
CN107844187B (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN107844187A (en) Power consumption management method, device and electronic equipment
WO2021008543A1 (en) Resource scheduling method and electronic device
US10664318B2 (en) Method and apparatus for allocating computing resources of processor
CN103856512A (en) Cloud computing management server, working host, idle host and resource scheduling method
CN105045367A (en) Android system equipment power consumption optimization method based on game load prediction
CN104239153A (en) Method and device for balancing multi-core CPU load
US11782769B2 (en) Virtual machine scheduling method and system
CN106899649B (en) Task request processing method and device and user equipment
US10064141B2 (en) Core frequency/count decision-based thermal mitigation optimization for a multi-core integrated circuit
CN111708642B (en) Processor performance optimization method and device in VR system and VR equipment
CN111090505B (en) Task scheduling method and system in multiprocessor system
CN103701889A (en) Data center energy saving method on basis of cloud computing
US20170212581A1 (en) Systems and methods for providing power efficiency via memory latency control
CN104572279B (en) A kind of virtual machine dynamic dispatching method of supporting node binding
CN106662908A (en) Technologies for collaborative hardware and software scenario-based power management
WO2017124947A1 (en) Method, device and terminal for managing cpu cores
CN106201693A (en) Dispatching method in a kind of virtualized environment and system
US20190041962A1 (en) Per-core operating voltage and/or operating frequency determination based on effective core utilization
CN107203256A (en) Energy-conservation distribution method and device under a kind of network function virtualization scene
CN111338803B (en) Thread processing method and device
CN102546999B (en) Method, control device and system for reducing device power consumption based on business model
CN103955397A (en) Virtual machine scheduling multi-strategy selection method based on micro-architecture perception
CN107391254B (en) Intelligent terminal, resource allocation method thereof and computer-readable storage medium
CN101221528B (en) Method for testing scheduling performance of embedded operation system
CN113439252B (en) Terminal control method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Patentee after: Loongson Zhongke Technology Co.,Ltd.

Address before: 100095 Building 2, Longxin Industrial Park, Zhongguancun environmental protection technology demonstration park, Haidian District, Beijing

Patentee before: LOONGSON TECHNOLOGY Corp.,Ltd.