CN105630602A - Method for dynamically adjusting computer system resources - Google Patents
Method for dynamically adjusting computer system resources Download PDFInfo
- Publication number
- CN105630602A CN105630602A CN201510949030.1A CN201510949030A CN105630602A CN 105630602 A CN105630602 A CN 105630602A CN 201510949030 A CN201510949030 A CN 201510949030A CN 105630602 A CN105630602 A CN 105630602A
- Authority
- CN
- China
- Prior art keywords
- resource
- processor
- computer system
- requirement
- demand
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
The present invention discloses a method for dynamically adjusting computer system resources. The method comprises: in a starting process, scanning resource demand of an IO device in a system; determining whether current system resource allocation meets the resource demand of the IO device; and if the current system resource allocation does not meet the resource demand of the IO device, dynamically adjusting a resource allocation ratio. The method disclosed by the present invention solves a frequent crash problem, which is caused by insufficient resources and a relatively large number of IO devices, of high-end products.
Description
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of method that resource for computer system dynamically adjusts.
Background technology
To multiprocessor computer system, conventional resource distribution mode is that system resource is distributed to by a certain percentage each processor at the beginning of starting. Along with the development of processor, the I/O slot quantity that server is supported gets more and more, and loads different I/O device on these slots, and its resources requirement is different. So, the mode of the resource allocation proportion determined that at the beginning of starting can not meet the different I/O device kinds that system is likely to load, after occurring frequently in certain I/O device of loading, the deadlock problem caused owing to certain processor resource requirement can not meet device requirement amount.
Summary of the invention
The technical problem to be solved in the present invention is: for overcoming this problem, and the present invention proposes a kind of method, and in start-up course, the I/O device resource requirement of each processor of dynamic scan, dynamically distributes resource by demand.
The technical solution adopted in the present invention is:
A kind of method that resource for computer system dynamically adjusts, described method is by, in start-up course, being scanned I/O device resources requirement in system, and judges whether the distribution of current system resource meets I/O device resources requirement, if being unsatisfactory for, then the method for dynamic adjustresources allocation proportion.
Described method operating procedure is as follows:
First, at the beginning of system start-up, from storage medium, read the preset ratio of the resource of each processor, and in this ratio, system resource is allocated;
Then, the phase upon actuation, when I/O device is initialized, scan the resources requirement of each I/O device, and the I/O device resources requirement under each processor is overlapped, draw each processor resource demand;
Afterwards, it is judged that whether current allocation proportion meets demand, if meeting, then normally starts; If being unsatisfactory for, then calculate new resource ratio in each processor demand, and replace the preset ratio in storage medium by new demand percentage, and send reset command;
After restarting, new allocation proportion meets resource requirement, and system normally starts.
Described method specific operation process is as follows:
The total resources of whole system is X, and the resource number of processor support is y, then the minimum share of processor is X/y;
Preset ratio is a:b:c:d ..., wherein a+b+c+d ...=y,
CPU0/1/2/3 ... stock number respectively a*X/y, b*X/y, c*X/y, d*X/y ...;
Scanning calculates resources requirement respectively A, B, C, the D of each processor ...;
Judge whether to satisfy condition A < a*X/y, B <b*X/y, C < c*X/y, D < d*X/y ...;
If satisfying condition, then normally starting, not doing resource adjustment;
If the condition of being unsatisfactory for, such as B > b*X/y, then calculate new demand percentage e:f:g:h ..., wherein e+f+g+h ...=y; This ratio is replaced the preset ratio in storage medium, and computer system is carried out reboot operation;
In restarting process, system resource is when processor initializes, according to new demand percentage e:f:g:h ... system resource is allocated; So, when IO initializes, will show that Current resource allocation proportion meets I/O device resource requirement, then normally start. So, the dynamic adjustment process of computer system is namely completed.
The invention have the benefit that
The inventive method solves because I/O device is more in high-end product, and the deadlock problem caused because of inadequate resource often occurred.
Accompanying drawing explanation
Fig. 1 is process and the I/O slot scattergram of a computer system.
Detailed description of the invention
Below according to Figure of description, in conjunction with detailed description of the invention, the present invention is further described:
Embodiment 1:
A kind of method that resource for computer system dynamically adjusts, it is characterized in that: described method is by start-up course, I/O device resources requirement in system is scanned, and judge whether the distribution of current system resource meets I/O device resources requirement, if being unsatisfactory for, then the method for dynamic adjustresources allocation proportion.
Embodiment 2:
On the basis of embodiment 1, described in the present embodiment, method operating procedure is as follows:
First, at the beginning of system start-up, from storage medium, read the preset ratio of the resource of each processor, and in this ratio, system resource is allocated;
Then, the phase upon actuation, when I/O device is initialized, scan the resources requirement of each I/O device, and the I/O device resources requirement under each processor is overlapped, draw each processor resource demand;
Afterwards, it is judged that whether current allocation proportion meets demand, if meeting, then normally starts; If being unsatisfactory for, then calculate new resource ratio in each processor demand, and replace the preset ratio in storage medium by new demand percentage, and send reset command;
After restarting, new allocation proportion meets resource requirement, and system normally starts.
So, the dynamic adjustment of system resource is namely achieved.
Embodiment 3:
As it is shown in figure 1, on the basis of embodiment 2, described in the present embodiment, method specific operation process is as follows:
The total resources of whole system is X, and the resource number of processor support is y, then the minimum share of processor is X/y;
Preset ratio is a:b:c:d, wherein a+b+c+d=y,
The stock number of CPU0/1/2/3 respectively a*X/y, b*X/y, c*X/y, d*X/y;
Scanning calculates resources requirement respectively A, B, C, the D of each processor;
Judge whether to satisfy condition A < a*X/y, B <b*X/y, C < c*X/y, D < d*X/y;
If satisfying condition, then normally starting, not doing resource adjustment;
If the condition of being unsatisfactory for, such as B > b*X/y, then calculate new demand percentage e:f:g:h, wherein e+f+g+h=y; This ratio is replaced the preset ratio in storage medium, and computer system is carried out reboot operation;
In restarting process, system resource, when processor initializes, is allocated by system resource according to new demand percentage e:f:g:h; So, when IO initializes, will show that Current resource allocation proportion meets I/O device resource requirement, then normally start. So, the dynamic adjustment process of computer system is namely completed.
Embodiment of above is merely to illustrate the present invention; and it is not limitation of the present invention; those of ordinary skill about technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes fall within scope of the invention, and the scope of patent protection of the present invention should be defined by the claims.
Claims (3)
1. the method that a resource for computer system dynamically adjusts, it is characterized in that: described method is by start-up course, I/O device resources requirement in system is scanned, and judge whether the distribution of current system resource meets I/O device resources requirement, if being unsatisfactory for, then the method for dynamic adjustresources allocation proportion.
2. the method that a kind of resource for computer system according to claim 1 dynamically adjusts, it is characterised in that described method operating procedure is as follows:
First, at the beginning of system start-up, from storage medium, read the preset ratio of the resource of each processor, and in this ratio, system resource is allocated;
Then, the phase upon actuation, when I/O device is initialized, scan the resources requirement of each I/O device, and the I/O device resources requirement under each processor is overlapped, draw each processor resource demand;
Afterwards, it is judged that whether current allocation proportion meets demand, if meeting, then normally starts; If being unsatisfactory for, then calculate new resource ratio in each processor demand, and replace the preset ratio in storage medium by new demand percentage, and send reset command;
After restarting, new allocation proportion meets resource requirement, and system normally starts.
3. the method that a kind of resource for computer system according to claim 2 dynamically adjusts, it is characterised in that described method specific operation process is as follows:
The total resources of whole system is X, and the resource number of processor support is y, then the minimum share of processor is X/y;
Preset ratio is a:b:c:d ..., wherein a+b+c+d ...=y,
CPU0/1/2/3 ... stock number respectively a*X/y, b*X/y, c*X/y, d*X/y ...;
Scanning calculates resources requirement respectively A, B, C, the D of each processor ...;
Judge whether to satisfy condition A < a*X/y, B <b*X/y, C < c*X/y, D < d*X/y ...;
If satisfying condition, then normally starting, not doing resource adjustment;
If the condition of being unsatisfactory for, then calculate new demand percentage e:f:g:h ..., wherein e+f+g+h ...=y; This ratio is replaced the preset ratio in storage medium, and computer system is carried out reboot operation;
In restarting process, system resource is when processor initializes, according to new demand percentage e:f:g:h ... system resource is allocated; So, when IO initializes, will show that Current resource allocation proportion meets I/O device resource requirement, then normally start.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510949030.1A CN105630602B (en) | 2015-12-18 | 2015-12-18 | A kind of method of resource for computer system dynamic adjustment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510949030.1A CN105630602B (en) | 2015-12-18 | 2015-12-18 | A kind of method of resource for computer system dynamic adjustment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105630602A true CN105630602A (en) | 2016-06-01 |
CN105630602B CN105630602B (en) | 2019-01-15 |
Family
ID=56045579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510949030.1A Active CN105630602B (en) | 2015-12-18 | 2015-12-18 | A kind of method of resource for computer system dynamic adjustment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105630602B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991012A (en) * | 2017-04-11 | 2017-07-28 | 广东浪潮大数据研究有限公司 | A kind of computer resource compression is reserved and dynamic dispatching method |
WO2019144788A1 (en) * | 2018-01-24 | 2019-08-01 | 中兴通讯股份有限公司 | Resource control method and device, equipment and computer readable storage medium |
CN113254223A (en) * | 2021-07-14 | 2021-08-13 | 苏州浪潮智能科技有限公司 | Resource allocation method and system after system restart and related components |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1979423A (en) * | 2005-11-30 | 2007-06-13 | 迈普(四川)通信技术有限公司 | Multi-processor load distribution-regulation method |
US20120174114A1 (en) * | 2011-01-05 | 2012-07-05 | Hitachi, Ltd. | Method of calculating processor utilization rate in smt processor |
-
2015
- 2015-12-18 CN CN201510949030.1A patent/CN105630602B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1979423A (en) * | 2005-11-30 | 2007-06-13 | 迈普(四川)通信技术有限公司 | Multi-processor load distribution-regulation method |
US20120174114A1 (en) * | 2011-01-05 | 2012-07-05 | Hitachi, Ltd. | Method of calculating processor utilization rate in smt processor |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106991012A (en) * | 2017-04-11 | 2017-07-28 | 广东浪潮大数据研究有限公司 | A kind of computer resource compression is reserved and dynamic dispatching method |
WO2019144788A1 (en) * | 2018-01-24 | 2019-08-01 | 中兴通讯股份有限公司 | Resource control method and device, equipment and computer readable storage medium |
CN113254223A (en) * | 2021-07-14 | 2021-08-13 | 苏州浪潮智能科技有限公司 | Resource allocation method and system after system restart and related components |
WO2023284171A1 (en) * | 2021-07-14 | 2023-01-19 | 苏州浪潮智能科技有限公司 | Resource allocation method and system after system restart, and related component |
Also Published As
Publication number | Publication date |
---|---|
CN105630602B (en) | 2019-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462656B (en) | Container-based resource scheduling method and device for service convergence deployment | |
CN110474966B (en) | Method for processing cloud platform resource fragments and related equipment | |
CN105824706A (en) | Method and device for configuring accelerator | |
CN104572301B (en) | A kind of resource allocation methods and system | |
CN105760230B (en) | A kind of method and device of adjust automatically cloud host operation | |
CN105630602A (en) | Method for dynamically adjusting computer system resources | |
CN102791032A (en) | Network bandwidth distribution method and terminal | |
CN101968750A (en) | Computer system and working method thereof | |
CN103491151A (en) | Method and device for dispatching cloud computing resources and cloud computing platform | |
CN106095832B (en) | Distributed parallel data processing method and device | |
US20160164828A1 (en) | Adjusting virtual machine resources | |
US20130125116A1 (en) | Method and Device for Adjusting Virtual Resource and Computer Readable Storage Medium | |
CN108881379B (en) | Method and device for data synchronization between server clusters | |
CN104077234A (en) | Method and device for subarea dynamic adjustment of embedded system | |
CN110069265B (en) | Service cluster upgrading method and device and storage medium | |
CN111104219A (en) | Binding method, device, equipment and storage medium of virtual core and physical core | |
CN104793982A (en) | Method and device for establishing virtual machine | |
CN110633130A (en) | Virtual memory management method and device based on memory hot plug technology | |
CN110493317B (en) | Method for processing cloud platform resource fragments and related equipment | |
WO2016202153A1 (en) | Gpu resource allocation method and system | |
JP2020036105A (en) | Network service management device, network service management method, and network service management program | |
CN105094858A (en) | List control loading method and apparatus | |
CN104156270A (en) | Method and system for single machine running multiple operating systems at the same time | |
CN102880596A (en) | Method and system for converting document format | |
CN110806930B (en) | Micro-service scheduling method, device, equipment and storage device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |