CN101777009B - Load control method of application program - Google Patents

Load control method of application program Download PDF

Info

Publication number
CN101777009B
CN101777009B CN 200910253320 CN200910253320A CN101777009B CN 101777009 B CN101777009 B CN 101777009B CN 200910253320 CN200910253320 CN 200910253320 CN 200910253320 A CN200910253320 A CN 200910253320A CN 101777009 B CN101777009 B CN 101777009B
Authority
CN
China
Prior art keywords
application program
load
grade
value
processing unit
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.)
Active
Application number
CN 200910253320
Other languages
Chinese (zh)
Other versions
CN101777009A (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.)
IValley Holding Co., Ltd.
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN 200910253320 priority Critical patent/CN101777009B/en
Publication of CN101777009A publication Critical patent/CN101777009A/en
Application granted granted Critical
Publication of CN101777009B publication Critical patent/CN101777009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a load control method of an application program, which controls the load of a plurality of application programs operated by a calculator. The load control method comprises the following steps: loading a monitoring program so as to monitor the load value of the application programs to a processing unit; comparing the current load value of the application program with a corresponding preset threshold value after each preset time, and reducing the processing grade of the processing unit on the application program if the load of the application program lasts higher than the preset threshold value in the first period; and raising the processing grade to the initial grade if the load of a degraded application program lasts lower than the preset threshold value in the second period.

Description

The load control method of application program
Technical field
The present invention is particularly to a kind of load control method of application program about a kind of load control method.
Background technology
Because most computing machine only comprises a central processing unit; Multiple-pass is just simply promptly switched each stroke under the situation of core (Core); Each stroke can both be carried out; Under the situation of the multinuclear heart or multiprocessor, all strokes are managed throughout on device or the core through many coordination techniques and are changed.Multiple-pass is carried out simultaneously more, and the time ratio that each stroke can be assigned to is just more little.
Or mouse jumping lattice interrupted such as audio can appear in a lot of operating systems when running into this problem situation (is called collapse (Thrashing); A kind of operating system can only not stopped the state carrying out the supervisory routine of oneself and exhaust system resource, and the program of other user or hardware all can't be carried out).Run-length management has been put into practice the notion of timesharing usually, and most operating system can be utilized and specify different prerogative grades (priority), is the shared timesharing ratio of each stroke alteration.The stroke that privilege is high more, execution priority is high more, and the ratio that accounts in the unit interval is also high more.The interactive operation system also provides feedback mechanism to a certain degree, lets stroke direct and that the user is interactive have higher privilege value.
But the running of the stroke of prior art mainly all is after letting the stroke that moving accomplish, just to be continued by next stroke.Though such practice has been guaranteed stroke and can be done, the wait that other stroke can only continue.So, short-period stroke must expend more time and just can be done.
Summary of the invention
In view of above problem, fundamental purpose of the present invention is to provide a kind of load control method of application program, and many application programs that counter moved are carried out load control.
For reaching above-mentioned purpose, the load control method of the disclosed application program of the present invention may further comprise the steps: load watchdog routine, in order to monitor the load value of those application programs to processing unit; Through behind the Preset Time, load value and pre-set threshold value that application program is current compare every; If the load value of application program continues to be higher than pre-set threshold value between the first phase, then reduce the processing grade of processing unit application programs; Continue to be lower than pre-set threshold value if be lowered application program affiliated load value in the second phase of handling grade, then promote the processing grade of processing unit application programs; Repeat to reducing the step that the application program of handling grade is monitored and heightened, till this application program is recalled to original processing grade.
The present invention provides a kind of method that can carry out run-length management according to time and load, makes that each application program is able to moved, and guarantees that each application program can be done.
About characteristic of the present invention and real the work, cooperate diagram to make most preferred embodiment now and specify as follows.
Description of drawings
Fig. 1 is a configuration diagram of the present invention;
Fig. 2 is the stroke state synoptic diagram;
Fig. 3 is an operation workflow synoptic diagram of the present invention.
Wherein, Reference numeral:
110 counters
120 processing units
130 internal memories
140 storage elements
210 application programs
220 watchdog routines
Embodiment
The operating system that counter of the present invention moved is not limited to Windows or (SuSE) Linux OS of Microsoft etc.Please refer to shown in Figure 1ly, it is a configuration diagram of the present invention.Comprise processing unit 120, internal memory 130 and storage element 140 at counter 110 of the present invention.Many application programs 210 of record and a watchdog routine 220 in storage element 140.Watchdog routine 220 is in order to monitor those application programs 210 charge capacity to processing unit 120 when moving.Each application program 210 can be regarded as independently stroke (process) when in operating system, moving.Stroke is when carrying out, and state (state) can change, and please refer to shown in Figure 2ly, and it is the stroke state synoptic diagram.In the running of stroke, include following state:
Produce (new): produce new trip;
Carry out (running): the stroke of carrying out;
Wait for (wating): stroke is waited for specific events trigger, for example waits for that the user imports completion;
Ready (ready): each stroke is arranged an order according to class and grade, handle in order to wait for processing unit 120; And
Finish (terminated): complete stroke.
Operating system be for allocating the operation of stroke, and (Process Control Block PCB), please refer to shown in the following table 1 so each stroke all can corresponding stroke state control table in operating system.
Figure G2009102533207D00031
Table 1. Stroke Control table
Because each stroke resource needed is all different, for instance, the 3D mapping software needs the processing power of a large amount of internal memory 130 and high capacity.And music software then can be assigned lower processing power when playing.But known techniques only can once be accomplished a stroke.So current stroke in operation need expend for a long time, then can have influence on the stroke of follow-up short time completion.Therefore for avoiding this situation to take place, so the present invention proposes a kind of method of load control, and please refer to shown in Figure 3ly, it is to be operation workflow synoptic diagram of the present invention.
Step S310: the program control tabulation of load rows, the time that its each application program of record is operated when the different disposal grade;
Step S320: the initial value of in the Stroke Control table, setting the processing grade of application program;
Step S330: load watchdog routine, in order to monitor the load value of those application programs to processing unit;
Step S340: through behind the Preset Time, load value and pre-set threshold value that application program is current compare every;
Step S350: in load value is between the first phase, continue to be higher than pre-set threshold value, then reduce the processing grade of processing unit application programs;
Step S360: continue to be lower than pre-set threshold value if be lowered application program affiliated load value in the second phase of handling grade, then promote the processing grade of processing unit application programs; And
Step S370: show an information, the processing grade of the application program after being modified in order to prompting.
At first, before running application, can load the corresponding Stroke Control table of this application program.This application program 210 of record is in the required consumed time of different disposal grade in the Stroke Control table.Wherein, handle grade system and running application 210 load value for processing unit 120.For instance, when operation 3D mapping software, the load of processing unit 120 possibly be 30%~70% of the integral operation ability of processing unit 120.And the music program possibly only take 5% arithmetic capability of processing unit 120 when playing.What therefore, passing this application program 210 of meeting record was finished the work under the nonidentity operation load in the Stroke Control table expends time in.
Then, default value that also simultaneously can application programs assignment process grade when loading watchdog routine 220.If application program 210 is to load for the first time, then processing unit 120 can be given new application program 210 default values in decision according to the number of the application program in formation 210.For instance, when application program 210 was more, processing unit 120 can assign 10% load to give the default value of this application program 210 as load; Otherwise when application program 210 was less, processing unit 120 can assign 50% load to give the default value of this application program 210 as load.
After the application program 210 that brings into operation, processing unit 120 is every during through a Preset Time, the load value that watchdog routine 220 can each application program 210 of acquisition.In load value is between the first phase, continue to be higher than pre-set threshold value, then reduce the processing grade of processing unit application programs.Continue to be lower than pre-set threshold value if be lowered application program 210 affiliated load value in the second phase of handling grade, then promote the processing grade of processing unit application programs.Wherein, can be identical time span with the second phase between the first phase, also can be different.
The mode of monitoring load value in the present invention is that the load value of application program 210 and pre-set threshold value are compared, and whether surpasses setting value as foundation with the comparing result that is write down when each Preset Time.The number of times as a result that is contrasted between this is with the first phase is defined as unusual number of times, and the number of times as a result that is contrasted during the second is defined as the recovery number of times.If load value exceeds pre-set threshold value, unusual number of times then adds up.When unusual number of times exceeds setting value, just reduce the processing grade of processing unit 120 application programs 210.
If current load value is lower than pre-set threshold value in the second phase, then with unusual number of times zero clearing.Be lower than pre-set threshold value if current application program 210 is in by degrading state and in the second phase, the recovery number of times then adds up.Exceed setting value if recover number of times, then promote it and handle grade, the state before downgrading.
The processing grade classification of supposing processing unit 120 is 1~10 grade; The 1st grade for load 10%, the 2nd grade are load 30%, the 4th grade for load 40%, the 5th grade are load 100% for load 80%, the 9th grade for load 90%, the 10th grade for load 70%, the 8th grade for load 60%, the 7th grade for load 50%, the 6th grade for load 20%, 3rd level, and pre-set threshold value is " 30% ".If the initial value of process A is set at the 2nd grade.Watchdog routine 220 is in through Preset Time (being assumed to be 10 minutes), and the every process very first time (being assumed to be 1 minute) the process A of obtaining in Preset Time all maintains 40%.Therefore, can to obtain unusual number of times be 10 times to watchdog routine 220.If setting value is 5, then unusual number of times is greater than setting value.So watchdog routine 220 need be turned down the load of processing unit 120 for process A.If process A has been turned down the processing grade, and every in Preset Time be 10% through (the supposing 2 minutes) load of second time.Watchdog routine 220 number of times 5 that can be restored, therefore recover number of times greater than/equal, watchdog routine 220 can improve the processing grade of processing units 120 for process A.
The present invention provides a kind of method that can carry out run-length management according to time and load, makes each application program 210 be able to moved, and guarantees that each application program 210 can be done.

Claims (3)

1. the load control method of an application program carries out load control to many application programs that a counter is moved, and it is characterized in that, this load control method may further comprise the steps:
Load a watchdog routine, in order to monitor the load value of those application programs to a processing unit;
Every through a Preset Time after, this load value and a pre-set threshold value that this application program is current compare;
In this load value is between a first phase, continue to be higher than this pre-set threshold value, then reduce this processing unit one of this application program is handled grade; And
Continue to be lower than this pre-set threshold value if be lowered this application program this affiliated load value in a second phase of this processing grade, then promote this processing unit this processing grade this application program,
Wherein, this handles the load of grade corresponding to this processing unit, and the load of this processing unit of the high more correspondence of this processing grade is big more;
Be between this first phase within this Preset Time, the SI when exceeding this pre-set threshold value corresponding to this load value of this application program; For being lowered this application program of handling grade, this second phase is within this Preset Time, the SI when being lower than this pre-set threshold value corresponding to this load value of this application program.
2. the load control method of application program as claimed in claim 1 is characterized in that, before the step that loads this watchdog routine, also comprises:
Load the one stroke control table, the time that its each this application program of record is operated when this processing grade of difference; And
In the trip control table, set the initial value of this processing grade of this application program.
3. the load control method of application program as claimed in claim 1 is characterized in that, after the step of this application program of adjustment, also comprises: show an information.
CN 200910253320 2009-11-30 2009-11-30 Load control method of application program Active CN101777009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910253320 CN101777009B (en) 2009-11-30 2009-11-30 Load control method of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910253320 CN101777009B (en) 2009-11-30 2009-11-30 Load control method of application program

Publications (2)

Publication Number Publication Date
CN101777009A CN101777009A (en) 2010-07-14
CN101777009B true CN101777009B (en) 2012-12-19

Family

ID=42513479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910253320 Active CN101777009B (en) 2009-11-30 2009-11-30 Load control method of application program

Country Status (1)

Country Link
CN (1) CN101777009B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306095B (en) * 2011-07-21 2017-04-05 宇龙计算机通信科技(深圳)有限公司 Application management method and terminal
CN103324536A (en) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and application program protection method
CN104102324B (en) * 2013-04-08 2017-01-18 艾倍格有限公司 Method for managing memory of mobile device, server and computer readable medium
KR102454196B1 (en) * 2014-05-27 2022-10-14 삼성전자 주식회사 Method for controlling display and electronic device supporting the same
CN105701003A (en) * 2014-11-26 2016-06-22 鸿富锦精密工业(武汉)有限公司 Automatic monitoring system and method of running program
CN104636236B (en) * 2014-12-30 2017-12-01 深圳天珑无线科技有限公司 The detection method and mobile terminal of the high temperature abnormality of terminal
CN112346831A (en) * 2019-08-09 2021-02-09 华为技术有限公司 Method and device for managing abnormal application

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026425A (en) * 1996-07-30 2000-02-15 Nippon Telegraph And Telephone Corporation Non-uniform system load balance method and apparatus for updating threshold of tasks according to estimated load fluctuation
CN1875348A (en) * 2003-10-29 2006-12-06 国际商业机器公司 Information system, load control method, load control program, and recording medium
CN101387971A (en) * 2008-09-26 2009-03-18 中兴通讯股份有限公司 Task regulation method and apparatus for embedded software
CN101539871A (en) * 2008-03-18 2009-09-23 大唐移动通信设备有限公司 Device for balancedly processing load, data processing system and method and main control panel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6026425A (en) * 1996-07-30 2000-02-15 Nippon Telegraph And Telephone Corporation Non-uniform system load balance method and apparatus for updating threshold of tasks according to estimated load fluctuation
CN1875348A (en) * 2003-10-29 2006-12-06 国际商业机器公司 Information system, load control method, load control program, and recording medium
CN101539871A (en) * 2008-03-18 2009-09-23 大唐移动通信设备有限公司 Device for balancedly processing load, data processing system and method and main control panel
CN101387971A (en) * 2008-09-26 2009-03-18 中兴通讯股份有限公司 Task regulation method and apparatus for embedded software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平11-143839A 1999.05.28

Also Published As

Publication number Publication date
CN101777009A (en) 2010-07-14

Similar Documents

Publication Publication Date Title
CN101777009B (en) Load control method of application program
US8954971B2 (en) Data collecting method, data collecting apparatus and network management device
CN102043675B (en) Thread pool management method based on task quantity of task processing request
CN108255582B (en) Method, system, equipment and storage medium for garbage recovery of java virtual machine
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
JP2013542494A5 (en)
CN103617098B (en) Intelligent backup method and intelligent backup system based on data variation
CN103098014A (en) Storage system
DE102016118210A1 (en) Granular quality of service for computer resources
US20130198758A1 (en) Task distribution method and apparatus for multi-core system
CN111625080B (en) Server energy saving method and device, electronic equipment and storage medium
CN103942034A (en) Task scheduling method and electronic device implementing method
CN103970851A (en) Method for directly issuing large enterprise group head office financial statement according to mass of voucher data
CN103218263A (en) Dynamic determining method and device for MapReduce parameter
US20120254822A1 (en) Processing optimization load adjustment
WO2021253851A1 (en) Cluster distributed resource scheduling method, apparatus and device, and storage medium
CN105824687B (en) A kind of method and device of Java Virtual Machine performance automated tuning
JP2016071841A (en) Job management device, job management system, job management method, and program
CN107729218A (en) A kind of system and method for monitoring processing computing resource equipment
CN107748711B (en) Method for automatically optimizing Storm parallelism, terminal equipment and storage medium
EP3200083A1 (en) Resource scheduling method and related apparatus
CN104699513A (en) File processing method and device
CN104598278A (en) Data processing method and electronic equipment
EP3550421A1 (en) Storage controller and io request processing method
CN114490091A (en) Method and device for monitoring rule engine performance in industrial data acquisition management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: I VALLEY HOLDINGS CO., LTD.

Free format text: FORMER OWNER: YINGYEDA CO., LTD., TAIWAN

Effective date: 20150720

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20150720

Address after: Cayman Islands, George Town

Patentee after: IValley Holding Co., Ltd.

Address before: Taipei City, Taiwan, China

Patentee before: Inventec Corporation