CN102129475B - A kind of conflict avoiding method and system of resolution system resource-constrained - Google Patents

A kind of conflict avoiding method and system of resolution system resource-constrained Download PDF

Info

Publication number
CN102129475B
CN102129475B CN201110101146.1A CN201110101146A CN102129475B CN 102129475 B CN102129475 B CN 102129475B CN 201110101146 A CN201110101146 A CN 201110101146A CN 102129475 B CN102129475 B CN 102129475B
Authority
CN
China
Prior art keywords
application process
resource
inquiry application
resource metrics
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.)
Expired - Fee Related
Application number
CN201110101146.1A
Other languages
Chinese (zh)
Other versions
CN102129475A (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.)
Beijing Zhongchuang Telecom Test Co Ltd
Original Assignee
Beijing Zhongchuang Telecom Test 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 Beijing Zhongchuang Telecom Test Co Ltd filed Critical Beijing Zhongchuang Telecom Test Co Ltd
Priority to CN201110101146.1A priority Critical patent/CN102129475B/en
Publication of CN102129475A publication Critical patent/CN102129475A/en
Application granted granted Critical
Publication of CN102129475B publication Critical patent/CN102129475B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses a kind of conflict avoiding method of resolution system resource-constrained, comprising: the query statement receiving user; The inquiry application process of described system is started according to described query statement; Monitor the resource metrics of system in described inquiry application process operational process; Described monitored resource metrics and described systemic presupposition resource metrics threshold value are compared, and when described monitored resource metrics exceedes described systemic presupposition resource metrics threshold value, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system.The conflict avoiding method of the resolution system resource-constrained that the embodiment of the present application provides, start with from the entirety of system resource index, the multinomial resource metrics of real-time monitoring system, when the logic synthesis value of system resource index exceedes default resource metrics threshold value, mechanism is dodged in execution, solve the conflict of system resource, ensure that the normal process of data.

Description

A kind of conflict avoiding method and system of resolution system resource-constrained
Technical field
The present invention relates to monitoring signaling field, particularly relate to a kind of conflict avoiding method and system of resolution system resource-constrained.
Background technology
In signaling monitoring system, data source is continuous print, therefore also will keep continuous to the process of data in system; But in system, data volume is but unbalanced, and often operationally segment data amount is bigger than normal; On the other hand, the retrieval of user to data is discrete, is all that operationally section carries out data query substantially.
So, when limited system resources, between data processing and data query, very large contradiction will be there is; A large amount of concurrent inquiry contention system resource, what cause data processing to become is slow, and result will cause data delay, blocking, even lose.In the operation that system is concrete, obviously, data processing is more important than data query, therefore preferentially should ensure process.
In prior art, in order to solve conflicting between data processing with data query, general is all control certain system resource for master, such as, CPU, RAM utilization factor, I/O bandwidth, the network bandwidth etc. in control system, temporarily also not for the solution of entire system application, and control to be separated with application, control ageing not high.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of conflict avoiding method and system of resolution system resource-constrained, from the overall applicability of system, when effectively achieving limited system resources, and dodging between data processing and inquiry.
Technical scheme is as follows:
A conflict avoiding method for resolution system resource-constrained, comprising:
Receive the query statement of user;
The inquiry application process of described system is started according to described query statement;
Monitor the resource metrics of system in described inquiry application process operational process;
Described monitored resource metrics and described systemic presupposition resource metrics threshold value are compared, and when described monitored resource metrics exceedes described systemic presupposition resource metrics threshold value, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system.
Above-mentioned method, preferably, when the inquiry application process starting described system according to described query statement is at least one, described avoidance strategy comprises:
Reduce the data query treatment capacity in the unit interval at least one inquiry application process, until described monitored resource metrics is reduced to described systemic presupposition resource metrics threshold value.
Above-mentioned method, preferably, in the process of the data query treatment capacity at least one inquiry application process unit interval of described reduction, according to the priority of at least one inquiry application process described of user preset, successively the data query treatment capacity in the unit interval at least one inquiry application process described is reduced.
Above-mentioned method, preferably, also comprise: when the data query treatment capacity in the unit interval at least one inquiry application process described is in reduction process and described monitored resource metrics is not reduced to described systemic presupposition resource metrics threshold value, dormancy is carried out to the inquiry application process that data query treatment capacity in the described unit interval is reducing, until described monitored resource metrics is reduced to described systemic presupposition resource metrics threshold value.
Above-mentioned method, preferably, described system resource index comprises: any one or more logic synthesis index in cpu busy percentage, RAM utilization factor, magnetic disc i/o occupancy and network bandwidth utilization factor.
Above-mentioned method, preferably, in the process of monitor the system resource index in described application process operational process, adopts independent monitoring facilities to monitor described system resource index.
A conflict avoiding system for resolution system resource-constrained, comprising:
Receiving element, for receiving the query statement of user;
Start unit, the query statement for receiving according to described receiving element starts the inquiry application process of described system;
Monitoring means, for monitoring the resource metrics of system in described inquiry application process operational process that described start unit starts;
Comparing unit, for comparing the resource metrics of being monitored by described monitoring means and described systemic presupposition resource metrics threshold value;
Dodge unit, when showing that the resource metrics of described monitored unit monitoring exceedes described systemic presupposition resource metrics threshold value for comparing at described comparing unit, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system.
Above-mentioned system, preferably, also comprises: priority presets unit;
Described priority presets unit for when the inquiry application process starting described system according to described query statement is at least one, for the priority of at least one inquiry application process described is preset.
Above-mentioned system, preferably, also comprises: dormancy unit;
Described dormancy unit is used for when the inquiry application process starting described system according to described query statement is at least one, carries out dormancy at least one the inquiry application process performing avoidance strategy.
The technical scheme provided from above the embodiment of the present application, the conflict avoiding method and system of the resolution system resource-constrained that the embodiment of the present application provides, after receiving the query statement of user, according to the inquiry application process of described query statement start up system, real-time monitors the resource metrics of system in inquiry application process operational process, when the resource metrics that the system that monitors is current exceedes the default resource metrics threshold value of system, perform avoidance strategy to the inquiry application process of described system, the data handling utility process being system is dodged.The conflict avoiding method and system of the resolution system resource-constrained that the embodiment of the present application provides, start with from the entirety of system resource index, the multinomial resource metrics of real-time monitoring system, when the logic synthesis value of described multinomial resource metrics exceedes default resource metrics threshold value, namely avoidance strategy is performed, add the ageing of Systematical control and globality, solve the conflict of system resource, ensure that the normal process of data.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The process flow diagram of the conflict avoiding method of the resolution system resource-constrained that Fig. 1 provides for the embodiment of the present application;
One detail flowchart of the conflict avoiding method of the resolution system resource-constrained that Fig. 2 provides for the embodiment of the present application;
The structural representation of the conflict avoiding system of the resolution system resource-constrained that Fig. 3 provides for the embodiment of the present application;
One detailed construction schematic diagram of the conflict avoiding system of the resolution system resource-constrained that Fig. 4 provides for the embodiment of the present application;
The another detailed construction schematic diagram of the conflict avoiding system of the resolution system resource-constrained that Fig. 5 provides for the embodiment of the present application.
Embodiment
The application's scheme is understood better in order to make those skilled in the art person.Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
The process flow diagram of the conflict avoiding method of the resolution system resource-constrained that the embodiment of the present application provides as shown in Figure 1, comprising:
Step S101: the query statement receiving user;
Step S102: the inquiry application process starting described system according to described query statement;
Step S103: the resource metrics of monitoring system in described inquiry application process operational process;
After inquiry application process starts, continuous monitoring system resource metrics in operational process, comprising: cpu busy percentage, RAM utilization factor, magnetic disc i/o occupancy, network bandwidth utilization factor etc.; System resource index in the embodiment of the present application can be the single value of each index above-mentioned, also can be the logic synthesis value of above-mentioned any several index;
Usually, system program running is busy, and do not have idling-resource to perform the process of gathering system resource, in the preventing collision method that the embodiment of the present application provides, system can adopt independent monitoring facilities to monitor described system resource index; And monitoring result is saved to assigned address, when system application process needs comparison system resource metrics, directly read and perform;
Step S104: described monitored resource metrics and described systemic presupposition resource metrics threshold value are compared, and when described monitored resource metrics exceedes described systemic presupposition resource metrics threshold value, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system;
When monitored resource metrics exceed there is bottleneck in systemic presupposition resource metrics threshold value and system resource operational process time, namely adopt dodge mechanism, for the data handling utility process of described system is dodged;
Described systemic presupposition resource metrics threshold value can be preset according to actual moving process, as the CPU free time be less than 30%, internal memory residue is less than 20%, IO waits for or busy more than 50% time, can start and dodge.
On the basis of above method, the embodiment of the present application provides an a kind of detail flowchart of conflict avoiding method of resolution system resource-constrained, as shown in Figure 2, comprising:
Step S201: the query statement receiving user;
Step S202: at least one the inquiry application process starting described system according to described query statement;
Step S203: the resource metrics of system in monitoring at least one inquiry application process operational process described;
Step S204: judge whether described monitored resource metrics exceedes systemic presupposition resource metrics threshold value; If exceeded, perform step S205, otherwise, return step S203;
Step S205: perform avoidance strategy: reduce the data query treatment capacity in the unit interval at least one inquiry application process; In step S205 implementation, perform step S204 in real time; When described step S204 judges described monitored resource metrics lower than systemic presupposition resource metrics threshold value, perform step S206;
Step S206: terminate avoidance strategy, makes the inquiry application process in system continue normal operation.
In above step, in step S202, start in the process of at least one inquiry application process of described system according to described query statement, user can apply the priority of carrying out at least one inquiry described and preset, presetting of described priority can according to the priority of the start-up time of at least one inquiry application process described, or perform the size of the data volume of data query according at least one inquiry application process described, or preset according to the desirability etc. of user to data query amount at least one inquiry application process described.
In step S205, as in step S202 for according to as described at least one inquiry application process start-up time priority setting priority, the priority of the inquiry application process first started is large, then perform avoidance strategy in step S205, when reducing the data query treatment capacity at least one inquiry application process in the unit interval, first the data query treatment capacity in the unit interval in the low inquiry application process of priority is reduced, as reduced in process, monitored resource metrics is not yet lower than systemic presupposition resource metrics threshold value, then according to priority ascending order, data query treatment capacity in unit interval at least one inquiry application process described in reducing successively.
In the preventing collision method that the embodiment of the present application provides, as in step S202 according to as described at least one inquiry application process perform the size of data volume of data query, or preset according to the desirability etc. of user to data query amount at least one inquiry application process described, then step S205 implementation is consistent with the process preset priority according at least one priority of inquiring about the start-up time of application process described in step S202.
Simultaneously, in step S205 implementation, if the data query treatment capacity at least one inquiry application process described in the unit interval is in reduction state, and when now monitored resource metrics is not reduced to described systemic presupposition resource metrics threshold value yet, directly can carry out dormancy to the inquiry application process that data query treatment capacity in the described unit interval reduces, data query treatment capacity in its unit interval is made to be reduced to zero, and, make it be in waiting status; The inquiry application process that in the described unit interval, data query amount is reduced to zero is in the process of dormancy, data query treatment capacity in the unit interval of other inquiry application process is reduced, until monitored resource metrics is reduced to described systemic presupposition resource metrics threshold value; When described monitored resource metrics is reduced to described systemic presupposition resource metrics threshold value, terminate the described dormancy being in the inquiry application process of dormant state, make it recover inquiry.
In the preventing collision method that the embodiment of the present application provides, being not limited only to the data query treatment capacity of inquiring about in the unit interval of application process to the dormancy of inquiry application process is the situation of zero, can be specified by configuration, such as, often process the dormancy 1 millisecond of 100 records, namely perform and dodge process, make process of dodging also to be intermittent dormancy; When application process finds that system resource is enough sufficient, recover normal queries process, cancellation is dodged, or reduces the frequency of dodging or duration, to accelerate inquiry.
The preventing collision method that the embodiment of the present application provides, in actual application, is not all dodge for all application processes, whether carries out which kind of dodges and adopts dodge mechanism and is determined by system configuration; The process taking to dodge mechanism can be dodged usually simultaneously, and when parallel process is a lot, after dodging, system resource may significantly change at every turn, so, just settle out gradually after the frequency of dodging and duration may need repeatedly to adjust.
More than be the embodiment of the method that the embodiment of the present application provides, for above-mentioned embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
For above embodiment of the method, the embodiment of the present application additionally provides a kind of conflict avoiding system of resolution system resource-constrained, comprising:
Receiving element 301, for receiving the query statement of user;
Start unit 302, the query statement for receiving according to described receiving element 301 starts the inquiry application process of described system;
Monitoring means 303, for monitoring the resource metrics of system in described inquiry application process operational process that described start unit 302 starts;
Comparing unit 304, for comparing the resource metrics of being monitored by described monitoring means 303 and described systemic presupposition resource metrics threshold value;
Dodge unit 305, when showing that the resource metrics that described monitored unit 303 is monitored exceedes described systemic presupposition resource metrics threshold value for comparing at described comparing unit 304, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system.
In the avoidance system that the embodiment of the present application provides, also comprise priority and preset unit 306, for when the inquiry application process starting described system according to described query statement is at least one, for the priority of at least one inquiry application process described is preset.
In the avoidance system that the embodiment of the present application provides simultaneously, be also provided with dormancy unit 307, when the inquiry application process starting described system according to described query statement is at least one, dormancy carried out at least one the inquiry application process performing avoidance strategy.
For system embodiment, because it is substantially corresponding to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.The above is only the embodiment of the application; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the protection domain of the application.

Claims (9)

1. a conflict avoiding method for resolution system resource-constrained, is characterized in that, comprising:
Receive the query statement of user;
The inquiry application process of described system is started according to described query statement;
Monitor the resource metrics of system in described inquiry application process operational process;
Described monitored resource metrics and described systemic presupposition resource metrics threshold value are compared, and when described monitored resource metrics exceedes described systemic presupposition resource metrics threshold value, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system.
2. method according to claim 1, is characterized in that, when the inquiry application process starting described system according to described query statement is at least one, described avoidance strategy comprises:
Reduce the data query treatment capacity in the unit interval at least one inquiry application process, until described monitored resource metrics is reduced to described systemic presupposition resource metrics threshold value.
3. method according to claim 2, it is characterized in that, in the process of the data query treatment capacity at least one inquiry application process unit interval of described reduction, according to the priority of at least one inquiry application process described of user preset, successively the data query treatment capacity in the unit interval at least one inquiry application process described is reduced.
4. method according to claim 2, it is characterized in that, also comprise: when the data query treatment capacity in the unit interval at least one inquiry application process described is in reduction process and described monitored resource metrics is not reduced to described systemic presupposition resource metrics threshold value, dormancy is carried out to the inquiry application process that data query treatment capacity in the described unit interval is reducing, until described monitored resource metrics is reduced to described systemic presupposition resource metrics threshold value.
5. method according to claim 1, is characterized in that, described system resource index comprises: any one or more logic synthesis index in cpu busy percentage, RAM utilization factor, magnetic disc i/o occupancy and network bandwidth utilization factor.
6. method according to claim 1, is characterized in that, in the process of monitor the system resource index in described inquiry application process operational process, adopts independent monitoring facilities to monitor described system resource index.
7. a conflict avoiding system for resolution system resource-constrained, is characterized in that, comprising:
Receiving element, for receiving the query statement of user;
Start unit, the query statement for receiving according to described receiving element starts the inquiry application process of described system;
Monitoring means, for monitoring the resource metrics of system in described inquiry application process operational process that described start unit starts;
Comparing unit, for comparing the resource metrics of being monitored by described monitoring means and described systemic presupposition resource metrics threshold value;
Dodge unit, when showing that the resource metrics of described monitored unit monitoring exceedes described systemic presupposition resource metrics threshold value for comparing at described comparing unit, avoidance strategy is performed, for the data handling utility process of described system is dodged to the inquiry application process of described system.
8. system according to claim 7, is characterized in that, also comprises: priority presets unit;
Described priority presets unit for when the inquiry application process starting described system according to described query statement is at least one, for the priority of at least one inquiry application process described is preset.
9. system according to claim 7, is characterized in that, also comprises: dormancy unit;
Described dormancy unit is used for when the inquiry application process starting described system according to described query statement is at least one, carries out dormancy at least one the inquiry application process performing avoidance strategy.
CN201110101146.1A 2011-04-21 2011-04-21 A kind of conflict avoiding method and system of resolution system resource-constrained Expired - Fee Related CN102129475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110101146.1A CN102129475B (en) 2011-04-21 2011-04-21 A kind of conflict avoiding method and system of resolution system resource-constrained

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110101146.1A CN102129475B (en) 2011-04-21 2011-04-21 A kind of conflict avoiding method and system of resolution system resource-constrained

Publications (2)

Publication Number Publication Date
CN102129475A CN102129475A (en) 2011-07-20
CN102129475B true CN102129475B (en) 2016-04-27

Family

ID=44267557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110101146.1A Expired - Fee Related CN102129475B (en) 2011-04-21 2011-04-21 A kind of conflict avoiding method and system of resolution system resource-constrained

Country Status (1)

Country Link
CN (1) CN102129475B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882804A (en) * 2016-08-17 2021-06-01 华为技术有限公司 Method and device for starting application
CN106547628B (en) * 2016-11-29 2020-05-01 北京元心科技有限公司 Multi-system resource release method and device
CN107175659B (en) * 2017-05-02 2019-12-17 上海木木机器人技术有限公司 Robot obstacle avoidance method and device
CN107608744B (en) * 2017-09-05 2020-09-25 珠海格力电器股份有限公司 Application process management method and device and mobile terminal
CN108388797B (en) * 2018-01-23 2021-09-03 北京奇艺世纪科技有限公司 Intrusion detection method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1806228A (en) * 2003-06-10 2006-07-19 索尼爱立信移动通信日本株式会社 Resource management method and device, resource management program, and storage medium
CN101945353A (en) * 2009-07-07 2011-01-12 中国移动通信集团山东有限公司 Method and system for remote adjustment of system resources

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1806228A (en) * 2003-06-10 2006-07-19 索尼爱立信移动通信日本株式会社 Resource management method and device, resource management program, and storage medium
CN101945353A (en) * 2009-07-07 2011-01-12 中国移动通信集团山东有限公司 Method and system for remote adjustment of system resources

Also Published As

Publication number Publication date
CN102129475A (en) 2011-07-20

Similar Documents

Publication Publication Date Title
CN102129475B (en) A kind of conflict avoiding method and system of resolution system resource-constrained
CN106557369B (en) Multithreading management method and system
CN107291547B (en) Task scheduling processing method, device and system
JP6125539B2 (en) Dynamic power management in real-time systems
WO2019075980A1 (en) Thread adjustment method and terminal thereof
US20170048333A1 (en) Application Management Method and Terminal
US9106662B2 (en) Method and apparatus for controlling load allocation in cluster system
JP5209788B2 (en) Method and system for scheduling periodic processes
WO2017167021A1 (en) Abnormality monitoring method and device
CN103412786A (en) High performance server architecture system and data processing method thereof
CN107818012B (en) Data processing method and device and electronic equipment
CN111258746A (en) Resource allocation method and service equipment
CN109324983A (en) A kind of method, storage medium, equipment and the system of automatic cleaning cache file
CN201387606Y (en) Interrupt processing device and physical connection state rollover event processing device
CN109889406B (en) Method, apparatus, device and storage medium for managing network connection
CN114461668A (en) MYSQL database query method and device based on thread pool
CN112214291A (en) Task scheduling method and device
CN112987904B (en) Heartbeat control method and device
CN105242955A (en) Virtual machine disk input and output scheduling method and system
KR101890046B1 (en) Concurrent network application scheduling for reduced power consumption
CN102523107A (en) Method and device for equalizing operating pressure of server side and client side of network management system
CN105094945A (en) Method, equipment and system for virtualization platform thread control
CN106569886B (en) Policy scheduling method and policy scheduling system
US11275621B2 (en) Device and method for selecting tasks and/or processor cores to execute processing jobs that run a machine
CN109582460B (en) Redis memory data elimination method and 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
C14 Grant of patent or utility model
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: 20160427

Termination date: 20170421