CN102736953B - System resource allocation method and equipment - Google Patents

System resource allocation method and equipment Download PDF

Info

Publication number
CN102736953B
CN102736953B CN201110087773.4A CN201110087773A CN102736953B CN 102736953 B CN102736953 B CN 102736953B CN 201110087773 A CN201110087773 A CN 201110087773A CN 102736953 B CN102736953 B CN 102736953B
Authority
CN
China
Prior art keywords
priority
system resource
mark
idleness
close
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
CN201110087773.4A
Other languages
Chinese (zh)
Other versions
CN102736953A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110087773.4A priority Critical patent/CN102736953B/en
Publication of CN102736953A publication Critical patent/CN102736953A/en
Application granted granted Critical
Publication of CN102736953B publication Critical patent/CN102736953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a system resource allocation method and equipment. The method comprises the following steps of: judging whether the vacancy rate of system resources is smaller than a preset threshold or not, if so, searching non-key processes which occupy many system resources, and scoring the processes; and adjusting the priority of the processes according to the scores of the processes and the vacancy rate of the system resources. The method and the equipment can solve the problem of overload of the system resources.

Description

A kind of system resource allocation method and equipment
Technical field
The present invention relates to resource for computer system administrative skill field, particularly relate to a kind of system resource allocation method and equipment.
Background technology
Although computer operating system popular is at present very powerful in system resource configuration, system process management, but in some cases, due to the unreasonable allocation to the system resource such as CPU, internal memory, the situations such as deadlock, blue screen, process be stuck still can be there is continually.
Such as, Windows system is comparatively simple to the resource configuration mechanism of process, when some non-key, non-foreground process because when design defect, logic error or hardware problem consumed multi-system resource, system resource overload can be made, affect the normal use of other demand for system resources, thus cause system slack-off, become card, even crash, blue screen.
Summary of the invention
The invention provides a kind of system resource allocation method, can the problem of resolution system resource overload.
Present invention also offers a kind of system resource configuration device, can the problem of resolution system resource overload.
Technical scheme of the present invention is achieved in that
A kind of system resource allocation method, comprising:
Judge whether the idleness of system resource is less than the thresholding preset, if be less than, then searching the non-critical processes of excessive occupied system resources, is described process marking to the degree of dependence of process, process to whether current this process that operating of the importance of user, the degree of reliability of process or user according to the crucial rank of process, system cloud gray model;
When process mark close to or when equaling maximal value, if the idleness of system resource is greater than 0%, then keep the priority of this process; Otherwise, reduce the priority of this process;
When the mark of process is close to medium value, reduce the priority of this process;
When process mark close to or when equaling minimum value, prompting stop this process.
In said method, non-critical processes is the process except the process that system cloud gray model must call.
A kind of system resource configuration device, comprising:
Searching module, for judging whether the idleness of system resource is less than the thresholding preset, if be less than, then searching the non-critical processes of excessive occupied system resources, and indicating intelligent module is the process marking found;
Intelligent object, for the crucial rank according to process, system cloud gray model to the degree of dependence of process, process to the importance of user, the degree of reliability of process or user whether current operating this process for described in search the process marking that module searches arrives;
Adjusting module, for when process mark close to or when equaling maximal value, if the idleness of system resource is greater than 0%, then keep the priority of this process; Otherwise, reduce the priority of this process; When the mark of process is close to medium value, reduce the priority of this process; When process mark close to or when equaling minimum value, prompting stop this process.
In the said equipment, search the non-critical processes of module searches for the process except the process that system cloud gray model must call.
Visible, the system resource allocation method that the present invention proposes and equipment, when monitoring system resource and being nervous, find out the non-critical processes of excessive occupied system resources, this non-critical processes is given a mark and adjusts priority, thus the system resource shared by release portion process, the problem of resolution system resource overload.
Accompanying drawing explanation
Fig. 1 is the system resource allocation method process flow diagram that the present invention proposes;
Fig. 2 is the realization flow figure of embodiment of the present invention allocating system resource;
Fig. 3 is the system resource configuration device structural representation that the present invention proposes.
Embodiment
The present invention proposes a kind of system resource allocation method, if Fig. 1 is the method flow diagram that the present invention proposes, comprising:
Step 101: judge whether the idleness of system resource is less than the thresholding preset, if be less than, then performs step 102;
Step 102: the non-critical processes searching excessive occupied system resources, for described process is given a mark;
Step 103: the priority adjusting described process according to the mark of described process and the idleness of system resource.
Below lift specific embodiment to introduce in detail.
As the realization flow figure that Fig. 2 is embodiment of the present invention allocating system resource, this embodiment comprises the following steps:
Step 201: supervisory system resource take situation, judge whether the idleness of system resource is less than the thresholding preset, if be less than, then perform step 202; If be not less than, illustrative system resource is also very abundant, does not need to make any adjustments.
This thresholding can be set to 50%, when the idleness of system resource (as CPU, memory headroom etc.) is not less than 50%, does not need to adjust, needs to arrange different threshold values for different application scene.A kind of citing is only as threshold value using 50%, this threshold value can be arranged as the case may be, such as, carry out technical Analysis according to the check figure of multi-core CPU and the Technical Architecture of CPU, the system resource occupancy as certain core in multi-core CPU be 100% situation be also abnormal.
Step 202: the process of searching excessive occupied system resources.
Step 203: judge whether this process is system core process, if non-critical processes, then gives intelligent object analysis by this process.
Wherein, critical processes refers to the process that system cloud gray model must call, and the mode such as digital signature mainly through the MD5 value of program, program point and title, program judges; For security classes softwares such as antivirus softwares, then the eigenwert (comprising characteristic signature, filename path etc.) mainly through manually installing rear collection judges.Such as, for Windows system, mainly see whether this process possesses Microsoft signature, and the process that can find from original Windows system process list is critical processes.Critical processes is generally reliable and stable, can not take too many system resource.
Step 204: intelligent object analyzes this process, and be the marking of this process.
Particularly, intelligent object can analyze the production company of this process, software classification is (as virus killing, IM chats), software function is (as background scanning process, foreground process), then the crucial rank of this process comprehensive is (as video card, sound cards etc. drive process), system to its degree of dependence (as virus killing, firewall processes), this process to the importance of user (as word, QQ etc. remain with the process of user profile), the degree of reliability of this process is (as with or without version information, with or without digital signature, software release time and the compatibility to new system), whether user current operates (being obtained by API such as GtforeGoundWndow)) etc. condition, for this process provides a corresponding mark, mark can adopt 100 points of systems, 1 be divided into minimum, 100 be divided into the highest.
Afterwards, just can according to the priority of the mark of process and current this process of resource consumption situation dynamic conditioning of system.Such as, for system core process, do not adjust its priority; For fail-safe software, software that drive software isodisperse is very high, consider after system Current resource consumes, do not carry out processing (unless system CPU, EMS memory occupation all reach the situation of 100%) as far as possible; For user's foreground process such as word, QQ, can only suitably reduce its priority; The process too low for mark, occupying system resources is too serious, directly prompting suggestion user stops this process.
The present invention's system resource of can reappraising when monitoring system resources sit idle rate and be less than the thresholding preset at every turn takies situation, for each process is given a mark again; Or only to the process marking of newly opening.Or namely the present invention can give a mark to all processes again every one period of regular time, or namely the process often increasing fixed number gives a mark again to all processes, adopts this preferred mode, the burden that system is caused of frequently giving a mark can be alleviated.
In addition, in some scenarios, user is absorbed in certain or some specific processes (such as game process or video playback process).Now, the process that user pays close attention to can be set to high priority; Meanwhile, under the prerequisite of not influential system stability, the process that other non-user are paid close attention to is set to low priority, and the system resource making it take is more low better.When this scene changes, need to recover the initial priority of each process.
Each process has corresponding priority, and priority determines when it runs and receive how many CPU time.The priority of process totally 32 grades, can adopt numerical value 0 to 31 to represent, numerical value is that 0 expression priority is minimum, numerical value is that 31 expression priority are the highest, and this priority also can be called that base priority is not (base priority level).System is according to the operation of different priority scheduling processes.0-15 level is normal priority, and the priority of process can dynamic change, and high priority process preferentially runs, and when only having high priority process not run, just schedules low priority process is run; The process that priority is identical is run in turn according to timeslice.16-31 level is real-time priority, the maximum difference of real-time priority and normal priority is that the operation of equal priority process is not in accordance with round-robin, but the process first run just first control CPU, if this process does not initiatively abandon the control to CPU, process that is at the same level or low priority just cannot be run.
Following steps 205-212 introduces the concrete mode of one according to the mark of process and the Expenditure Levels adjustment process priority of system resource, and the present invention can also adopt other mode to adjust, and concrete mode is determined according to actual conditions.
Step 205: judge that whether the mark of process is higher than 90, if so, then do not adjust the priority of this process; Otherwise, perform step 206;
Step 206: judge that whether the mark of this process is higher than 80, if so, then performs step 207; Otherwise, perform step 208;
Step 207: judge whether system resources sit idle rate is greater than 10%, if so, does not then adjust the priority of this process; Otherwise, reduce the priority of this process, and ensure that the priority of this process is not less than 10, terminate the adjustment to current process;
Step 208: judge that whether the mark of this process is higher than 70, if so, then performs step 209; Otherwise, perform step 210;
Step 209: judge whether system resources sit idle rate is greater than 30%, if so, does not then adjust the priority of this process; Otherwise, reduce the priority of this process, and ensure that the priority of this process is not less than 10, terminate the adjustment to current process;
Step 210: judge that whether the mark of this process is higher than 30, if so, then reduces the priority of this process, and ensure that the priority of this process is not less than 5, terminate the adjustment to current process; Otherwise, perform step 211;
Step 211: judge that whether the mark of this process is higher than 10, if so, is then reduced to 0 by the priority of this process, terminates the adjustment to current process; Otherwise, perform step 212;
Step 212: judge whether system resources sit idle rate is less than 10%, if so, then points out user to stop this process.
Correspondingly, the present invention also proposes a kind of system resource configuration device, and if Fig. 3 is the structural representation of this equipment, this equipment comprises:
Searching module 301, for judging whether the idleness of system resource is less than the thresholding preset, if be less than, if be less than, then searching the non-critical processes of excessive occupied system resources, and indicating intelligent module is the process marking found;
Intelligent object 302, for for described in search the process marking that module 301 finds;
Adjusting module 303, the idleness for the mark got for process according to described intelligent object 302 and system resource adjusts the priority of this process.
In said system, searching the non-critical processes that module 301 searches is the process except the process that system cloud gray model must call.
Above-mentioned intelligent object 302 can be given a mark to whether current this process that operating of the importance of user, the degree of reliability of process or user to the degree of dependence of process, process specifically for the crucial rank according to process, system cloud gray model.
Above-mentioned adjusting module 303 according to the mode of the priority of the idleness adjustment process of the mark of process and system resource can be:
When process mark close to or when equaling maximal value, if the idleness of system resource is greater than 0%, then keep the priority of this process; Otherwise, reduce the priority of this process;
When the mark of process is close to medium value, reduce the priority of this process;
When process mark close to or when equaling minimum value, prompting stop this process.
As fully visible, the system resource allocation method that the present invention proposes and equipment, when monitoring system resource and being nervous, the non-critical processes of excessive occupied system resources can be found out, these processes are given a mark and adjusts priority, thus the system resource shared by release portion process, the problem of resolution system resource overload.The present invention can be suitable for but be not limited to each version of Windows system.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (4)

1. a system resource allocation method, is characterized in that, described method comprises:
Judge whether the idleness of system resource is less than the thresholding preset, if be less than, then searching the non-critical processes of excessive occupied system resources, is described process marking to the degree of dependence of process, process to whether current this process that operating of the importance of user, the degree of reliability of process or user according to the crucial rank of process, system cloud gray model;
When process mark close to or when equaling maximal value, if the idleness of system resource is greater than 0%, then keep the priority of this process; Otherwise, reduce the priority of this process;
When the mark of process is close to medium value, reduce the priority of this process;
When process mark close to or when equaling minimum value, prompting stop this process.
2. method according to claim 1, is characterized in that, described non-critical processes is the process except the process that system cloud gray model must call.
3. a system resource configuration device, is characterized in that, described equipment comprises:
Searching module, for judging whether the idleness of system resource is less than the thresholding preset, if be less than, then searching the non-critical processes of excessive occupied system resources, and indicating intelligent module is the process marking found;
Intelligent object, for the crucial rank according to process, system cloud gray model to the degree of dependence of process, process to the importance of user, the degree of reliability of process or user whether current operating this process for described in search the process marking that module searches arrives;
Adjusting module, for when process mark close to or when equaling maximal value, if the idleness of system resource is greater than 0%, then keep the priority of this process; Otherwise, reduce the priority of this process; When the mark of process is close to medium value, reduce the priority of this process; When process mark close to or when equaling minimum value, prompting stop this process.
4. equipment according to claim 3, is characterized in that, described in search the non-critical processes of module searches for the process except the process that system cloud gray model must call.
CN201110087773.4A 2011-04-08 2011-04-08 System resource allocation method and equipment Active CN102736953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110087773.4A CN102736953B (en) 2011-04-08 2011-04-08 System resource allocation method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110087773.4A CN102736953B (en) 2011-04-08 2011-04-08 System resource allocation method and equipment

Publications (2)

Publication Number Publication Date
CN102736953A CN102736953A (en) 2012-10-17
CN102736953B true CN102736953B (en) 2015-06-17

Family

ID=46992500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110087773.4A Active CN102736953B (en) 2011-04-08 2011-04-08 System resource allocation method and equipment

Country Status (1)

Country Link
CN (1) CN102736953B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024538A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Memory management method and system
CN103905783B (en) * 2012-12-25 2017-09-01 杭州海康威视数字技术股份有限公司 The method and apparatus of decoding display is carried out to video flowing
CN103914322A (en) * 2013-01-05 2014-07-09 腾讯科技(深圳)有限公司 Terminal acceleration method and terminal
CN103092689A (en) * 2013-01-10 2013-05-08 深圳市金立通信设备有限公司 Method and terminal of process management
CN103294542B (en) * 2013-06-07 2017-06-16 深圳Tcl新技术有限公司 The method and its device of Process Protection
CN103500121A (en) * 2013-09-29 2014-01-08 深圳Tcl新技术有限公司 Process managing method and device
CN104375898B (en) * 2014-11-20 2017-12-01 无锡悟莘科技有限公司 A kind of mobile terminal CPU usage optimization method
CN104461742B (en) * 2014-12-15 2016-10-12 北京奇虎科技有限公司 Calculate equipment optimization method and device
CN105764166A (en) * 2014-12-17 2016-07-13 联芯科技有限公司 Multi-channel terminal, system MIPS control method and module thereof
CN105938441B (en) * 2016-04-15 2019-04-30 惠州Tcl移动通信有限公司 A kind of application program for mobile terminal setting processing method and system
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN109992360B (en) * 2017-12-29 2022-01-11 Oppo广东移动通信有限公司 Process processing method and device, electronic equipment and computer readable storage medium
CN109992368B (en) * 2017-12-29 2023-10-20 Oppo广东移动通信有限公司 Application processing method and device, electronic equipment and computer readable storage medium
CN108062250A (en) * 2018-01-05 2018-05-22 北京亿赛通科技发展有限责任公司 A kind of processing method and system of terminal system self-adapting operation
CN112350880B (en) * 2019-08-07 2022-04-29 深信服科技股份有限公司 Overload detection method, system, computer readable storage medium and electronic device
CN114625525A (en) * 2020-12-14 2022-06-14 华为技术有限公司 Resource control method and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154167A (en) * 2006-09-28 2008-04-02 联想(北京)有限公司 Virtual machine system and its CPU scheduling method
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5256744B2 (en) * 2008-01-16 2013-08-07 日本電気株式会社 Resource allocation system, resource allocation method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154167A (en) * 2006-09-28 2008-04-02 联想(北京)有限公司 Virtual machine system and its CPU scheduling method
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system

Also Published As

Publication number Publication date
CN102736953A (en) 2012-10-17

Similar Documents

Publication Publication Date Title
CN102736953B (en) System resource allocation method and equipment
EP2698711B1 (en) Method for dispatching central processing unit of hotspot domain virtual machine and virtual machine system
US8239869B2 (en) Method, system and apparatus for scheduling computer micro-jobs to execute at non-disruptive times and modifying a minimum wait time between the utilization windows for monitoring the resources
US7340654B2 (en) Autonomic monitoring in a grid environment
US20120016994A1 (en) Distributed system
CN103455377B (en) System and method for management business thread pool
CN103684916A (en) Method and system for intelligent monitoring and analyzing under cloud computing
CN102567072A (en) Resource allocation method, resource allocation device and resource allocation system
US20190310935A1 (en) Intelligent garbage collector for containers
CN110609738A (en) Adaptive data synchronization
CN110515715A (en) Task processing method and device based on thread pool
CN105323184A (en) Method and device for saving RAM resource and realizing traffic statistics
CN115543577A (en) Kubernetes resource scheduling optimization method based on covariates, storage medium and equipment
CN103200257A (en) Node in high availability cluster system and resource switching method of node in high availability cluster system
CN111209112A (en) Exception handling method and device
CN109918181B (en) Worst response time-based task schedulability analysis method for hybrid critical system
CN117873693A (en) Resource scheduling method, electronic equipment and storage medium
CN112698947B (en) GPU resource flexible scheduling method based on heterogeneous application platform
CN107425999B (en) Low-overhead dynamic deployment method for security detection nodes
CN105094945A (en) Method, equipment and system for virtualization platform thread control
US11397613B2 (en) Process prioritization for information handling systems
CN107291370B (en) Cloud storage system scheduling method and device
CN112286847A (en) Method, device and controller for improving response speed of system external interrupt
CN112363812A (en) Database connection queue management method based on task classification and storage medium
US20130061072A1 (en) Power saving node controller

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190808

Address after: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.