CN107273164A - A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes - Google Patents
A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes Download PDFInfo
- Publication number
- CN107273164A CN107273164A CN201710457631.XA CN201710457631A CN107273164A CN 107273164 A CN107273164 A CN 107273164A CN 201710457631 A CN201710457631 A CN 201710457631A CN 107273164 A CN107273164 A CN 107273164A
- Authority
- CN
- China
- Prior art keywords
- optimization strategy
- linux system
- linux
- scene
- strategy
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Abstract
The present invention provides a kind of method of Auto-matching scene optimization strategy when realizing the optimization of linux system performance, and this method needs to preset the system operation scene matched one by one and system optimization strategy in linux system before implementing.When linux system needs to carry out performance optimization, this method is carried out according to the following steps:Obtain the system operation scene of current linux system;The system optimization strategy that automatic identification has matched with the system operation scene;Automatic Optimal is carried out to the linux system according to the system optimization strategy matched with the system operation scene.This method also includes the self-defined system operation scene matched one by one and self-defined system optimization strategy, and self-defined system operation scene and self-defined system optimization strategy default in the configuration file of linux system respectively.The method of the present invention can complete matching according to the system optimization strategy corresponding to system operation scene automatic identification, and further complete Automatic Optimal.
Description
Technical field
The present invention relates to linux system Performance Optimization technique field, specifically one kind realizes that linux system performance is excellent
The method of Auto-matching scene optimization strategy during change.
Background technology
Linux system is a set of class Unix operating systems, is specially the multi-user based on POSIX and UNIX, multitask, branch
Hold multithreading and multi -CPU operating system.Linux system can run main unix tool software, application program and procotol,
It can support that 32 are and 64 hardware simultaneously, and inherit design philosophys of the Unix using network as core, be that a set of performance is stable
Multiple-user network operating system.
But, Linux system present on existing market is the system of a versatility, under specific application scenarios simultaneously
Systematic function can not be given full play to, user cannot get the optimum experience that system is used, therefore necessary operated to Linux is
System is targetedly optimized, so that systematic function is optimal, can be divided automatically for current development system performance optimization architecture
Analyse Run-time scenario and according to special scenes Auto-matching optimisation strategy, optimize automatically.Current existing optimization tool is such as
Tuned, is only capable of supporting the Automatic Optimal strategy matching of cpu, disk and network scenarios, and applicable scene domain is limited, beyond part
Then need artificially to judge scene, addition manually performs optimisation strategy, and optimization range is limited, and automaticity is relatively low.
Based on this, a kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes is designed, without
Manual intervention just can complete the automation process of optimisation strategy matching, but also support user-defined scene.
The content of the invention
The technical assignment of the present invention is when solving the deficiencies in the prior art to realize the optimization of linux system performance there is provided one kind
The method of Auto-matching scene optimization strategy, its key technology is scene Auto-matching its phase being presently according to operating system
Corresponding optimisation strategy, is automatically performed system optimization, is not required to manual intervention with regard to that can complete the automation process of optimisation strategy matching,
But also user-defined scene is supported, as long as user with the addition of corresponding scene and optimisation strategy, system just can be gone automatically
The corresponding optimisation strategy of scene is matched, it is automatic to perform optimization operation.
The technical scheme is that realize in the following manner:
A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes, this method needs before implementing
The system operation scene matched one by one and system optimization strategy are preset in linux system;
When linux system needs to carry out performance optimization, this method is carried out according to the following steps:
Obtain the system operation scene of current linux system;
The system optimization strategy that automatic identification has matched with the system operation scene;
Automatic Optimal is carried out to the linux system according to the system optimization strategy matched with the system operation scene.
Further, this method also includes
The self-defined system operation scene matched one by one and self-defined system optimization strategy, self-defined system operation scene and make by oneself
Adopted system optimization strategy defaults in the configuration file of linux system respectively.
Correspondence scene is realized by optimisation strategy matching algorithm between involved system operation scene and system optimization strategy
The function of Auto-matching optimisation strategy.
In above-mentioned narration, the process that the linux system carries out Automatic Optimal is included:
The User space and kernel state of the linux system are optimized.
Further, the process optimized to the User space of the linux system, including:
The interface provided using procfs file system or sysfs file system, to the current operating parameter of the linux system
Optimize;
The process optimized to the kernel state of the linux system, including:
Kernel dispatching information, Memory Allocation information and IO information to the linux system are optimized.
Based on the above method, the present invention also provides Auto-matching scene optimization strategy when one kind realizes the optimization of linux system performance
Framework, the framework based on the system operation scene and system optimization strategy configured in linux system, and system operation scene and
System optimization strategy is matched one by one;
The framework includes:
Data obtaining module, the system operation scene for obtaining current linux system;
Automatic identification module, for utilizing the system operation scene, what automatic identification matched with the system operation scene
System optimization strategy;
System Automatic Optimal module, the result for performing the automatic identification module, according to default system optimization strategy pair
The linux system carries out Automatic Optimal.
Further, the framework based on linux system configuration file in be also preset with the self-defined system that matches one by one
System Run-time scenario and self-defined system optimization strategy.
Involved automatic identification inside modules are encoded with realizing that system operation scene and system optimization strategy are carried out one by one
The optimisation strategy matching algorithm matched somebody with somebody.
In above-mentioned narration, the process that the linux system carries out Automatic Optimal is included:
The User space and kernel state of the linux system are optimized.
Further, the process optimized to the User space of the linux system, including:
The interface provided using procfs file system or sysfs file system, to the current operating parameter of the linux system
Optimize;
The process optimized to the kernel state of the linux system, including:
Kernel dispatching information, Memory Allocation information and IO information to the linux system are optimized.
The a kind of of the present invention realizes the method for Auto-matching scene optimization strategy and existing skill when linux system performance optimizes
Art compares produced beneficial effect:
The method of the present invention can complete matching according to the system optimization strategy corresponding to system operation scene automatic identification, go forward side by side
One step completes Automatic Optimal, improves automation and the operating efficiency of operating process, saves human cost, user even can oneself
The optimisation strategy of oneself is defined, instrument in the same old way can Auto-matching;
In addition, present invention also offers a kind of framework, the framework can realize same function.
Brief description of the drawings
Accompanying drawing 1 is the method flow diagram of embodiment one in the present invention;
Accompanying drawing 2 is the circuit theory schematic diagram of embodiment two in the present invention.
Embodiment
Below in conjunction with the accompanying drawing 1,2 in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out it is clear,
It is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Base
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of creative work is not made it is all its
His embodiment, belongs to the scope of protection of the invention.
Embodiment one:
As shown in Figure 1, a kind of side for realizing Auto-matching scene optimization strategy when linux system performance optimizes of the invention
Method, this method needs to preset the system operation scene matched one by one and system optimization strategy in linux system before implementing.
When linux system needs to carry out performance optimization, this method is carried out according to the following steps:
S10:Obtain the system operation scene of current linux system.It is understood that different Run-time scenarios exist it is different
System operation characteristic parameter, accordingly, also corresponds to different system operation information, the system operation scene of acquisition contains system
Operation characteristic parameter.
S20:The system optimization strategy that automatic identification has matched with the system operation scene.In the present embodiment, obtain
The purpose for taking system operation scene is the matched system optimization strategy of automatic identification.
S30:The linux system is carried out certainly according to the system optimization strategy matched with the system operation scene
Dynamic optimization.
It is understood that being be pre-created corresponding with said system Run-time scenario based on said system optimisation strategy
Each corresponding Optimization Steps are have recorded in strategy, the strategy, and each Optimization Steps can be carried out certainly by corresponding program code
Dynamicization is controlled.That is, the system optimization strategy in the present embodiment be substantially exactly it is a kind of include one or more groups of program codes
Code library, every group of program code one Optimization Steps of correspondence.
Further, in order to meet the demand of user, this method also includes
The self-defined system operation scene matched one by one and self-defined system optimization strategy, self-defined system operation scene and make by oneself
Adopted system optimization strategy defaults in the configuration file of linux system respectively.
That is, user can be reached to system with self-defined addition scene and strategy and the operation matched one by one
The purpose of performance Automatic Optimal.
Correspondence scene is realized by optimisation strategy matching algorithm between involved system operation scene and system optimization strategy
The function of Auto-matching optimisation strategy.
Embodiment of the invention discloses that a kind of realize Auto-matching scene optimization strategy when linux system performance optimizes
Method, is further described and optimizes to disclosed technical scheme now.Specifically:
In above-mentioned steps S10, the process that the linux system carries out Automatic Optimal is included:
The User space and kernel state of the linux system are optimized.
Further, the process optimized to the User space of the linux system, including:
The interface provided using procfs file system or sysfs file system, to the current operating parameter of the linux system
Optimize;
The process optimized to the kernel state of the linux system, including:
Kernel dispatching information, Memory Allocation information and IO information to the linux system are optimized.
The optimization of system, in this process as can be seen here, the embodiment of the present invention are completed using the method for the present invention
The method of the present invention can complete matching according to the system optimization strategy corresponding to system operation scene automatic identification, go forward side by side
One step completes Automatic Optimal, improves automation and the operating efficiency of operating process, without manually being operated, realizes reduction
The purpose of human cost needed for (SuSE) Linux OS performance optimization process.User even oneself can define the optimization of oneself
Strategy, instrument in the same old way can Auto-matching.
Embodiment two:
Based on the above method, the present invention also provides Auto-matching scene optimization strategy when one kind realizes the optimization of linux system performance
Framework, the framework based on the system operation scene and system optimization strategy configured in linux system, and system operation scene and
System optimization strategy is matched one by one;
The framework includes:
Data obtaining module 1, the system operation scene for obtaining current linux system;
Automatic identification module 2, for utilizing the system operation scene, what automatic identification matched with the system operation scene
System optimization strategy;
System Automatic Optimal module 3, the result for performing the automatic identification module, according to default system optimization strategy pair
The linux system carries out Automatic Optimal.
Further, the framework based on linux system configuration file in be also preset with the self-defined system that matches one by one
System Run-time scenario and self-defined system optimization strategy.
The involved internal composition of automatic identification module 2 realizes that system operation scene and system optimization strategy are carried out one by one
The optimisation strategy matching algorithm matched somebody with somebody.
In above-mentioned narration, the process that the linux system carries out Automatic Optimal is included:
The User space and kernel state of the linux system are optimized.
Further, the process optimized to the User space of the linux system, including:
The interface provided using procfs file system or sysfs file system, to the current operating parameter of the linux system
Optimize;
The process optimized to the kernel state of the linux system, including:
Kernel dispatching information, Memory Allocation information and IO information to the linux system are optimized.
The framework of the present invention can complete matching according to the system optimization strategy corresponding to system operation scene automatic identification,
And Automatic Optimal is further completed, automation and the operating efficiency of operating process are improved, without manually being operated, realizes and subtracts
The purpose of human cost needed for few (SuSE) Linux OS performance optimization process.User even oneself can define the excellent of oneself
Change strategy, instrument in the same old way can Auto-matching.
Above to it is provided by the present invention it is a kind of realize the optimization of linux system performance when Auto-matching scene optimization strategy
Method and framework are described in detail, and specific case used herein is explained the principle and embodiment of the present invention
State, the explanation of above example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for this area
Those skilled in the art, according to the thought of the present invention, will change, to sum up institute in specific embodiments and applications
State, this specification content should not be construed as limiting the invention.
Claims (10)
1. a kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes, it is characterised in that this method
Need to preset the system operation scene matched one by one and system optimization strategy in linux system before implementation;
When linux system needs to carry out performance optimization, this method is carried out according to the following steps:
Obtain the system operation scene of current linux system;
The system optimization strategy that automatic identification has matched with the system operation scene;
Automatic Optimal is carried out to the linux system according to the system optimization strategy matched with the system operation scene.
2. a kind of side for realizing Auto-matching scene optimization strategy when linux system performance optimizes according to claim 1
Method, it is characterised in that this method also includes
The self-defined system operation scene matched one by one and self-defined system optimization strategy, self-defined system operation scene and make by oneself
Adopted system optimization strategy defaults in the configuration file of linux system respectively.
3. a kind of Auto-matching scene optimization strategy when realizing the optimization of linux system performance according to claim 1 or 2
Method, it is characterised in that
Realize that correspondence scene Auto-matching is excellent by optimisation strategy matching algorithm between system operation scene and system optimization strategy
Change the function of strategy.
4. a kind of side for realizing Auto-matching scene optimization strategy when linux system performance optimizes according to claim 1
Method, it is characterised in that include to the process that the linux system carries out Automatic Optimal:
The User space and kernel state of the linux system are optimized.
5. a kind of side for realizing Auto-matching scene optimization strategy when linux system performance optimizes according to claim 4
Method, it is characterised in that the process optimized to the User space of the linux system, including:
The interface provided using procfs file system or sysfs file system, to the current operating parameter of the linux system
Optimize;
The process optimized to the kernel state of the linux system, including:
Kernel dispatching information, Memory Allocation information and IO information to the linux system are optimized.
6. a kind of framework for realizing Auto-matching scene optimization strategy when linux system performance optimizes, it is characterised in that the framework
Based on the system operation scene and system optimization strategy configured in linux system, and system operation scene and system optimization strategy
Match one by one;
The framework includes:
Data obtaining module, the system operation scene for obtaining current linux system;
Automatic identification module, for utilizing the system operation scene, what automatic identification matched with the system operation scene
System optimization strategy;
System Automatic Optimal module, the result for performing the automatic identification module, according to default system optimization strategy pair
The linux system carries out Automatic Optimal.
7. a kind of frame for realizing Auto-matching scene optimization strategy when linux system performance optimizes according to claim 6
Frame, it is characterised in that the framework based on linux system configuration file in be also preset with match one by one self-defined system fortune
Row scene and self-defined system optimization strategy.
Auto-matching scene optimization strategy when 8. a kind of according to claim 6 or 7 realizes the optimization of linux system performance
Framework, it is characterised in that the automatic identification inside modules are encoded with realizing that system operation scene and system optimization strategy are carried out
The optimisation strategy matching algorithm matched one by one.
9. a kind of frame for realizing Auto-matching scene optimization strategy when linux system performance optimizes according to claim 6
Frame, it is characterised in that include to the process that the linux system carries out Automatic Optimal:
The User space and kernel state of the linux system are optimized.
10. a kind of frame for realizing Auto-matching scene optimization strategy when linux system performance optimizes according to claim 9
Frame, it is characterised in that the process optimized to the User space of the linux system, including:
The interface provided using procfs file system or sysfs file system, to the current operating parameter of the linux system
Optimize;
The process optimized to the kernel state of the linux system, including:
Kernel dispatching information, Memory Allocation information and IO information to the linux system are optimized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710457631.XA CN107273164A (en) | 2017-06-16 | 2017-06-16 | A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710457631.XA CN107273164A (en) | 2017-06-16 | 2017-06-16 | A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107273164A true CN107273164A (en) | 2017-10-20 |
Family
ID=60066783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710457631.XA Pending CN107273164A (en) | 2017-06-16 | 2017-06-16 | A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107273164A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765237A (en) * | 2019-10-10 | 2020-02-07 | 腾讯科技(深圳)有限公司 | Document processing method, document processing device, storage medium and electronic equipment |
CN114840110B (en) * | 2022-03-17 | 2023-06-20 | 杭州未名信科科技有限公司 | Puncture navigation interaction assisting method and device based on mixed reality |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461711A (en) * | 2014-12-15 | 2015-03-25 | 北京奇虎科技有限公司 | Adaptive optimization method and adaptive optimization device of computing equipment |
CN105677477A (en) * | 2015-12-30 | 2016-06-15 | 北京金山安全软件有限公司 | Method and device for optimizing application program resources and electronic equipment |
CN106250181A (en) * | 2016-07-27 | 2016-12-21 | 浪潮(北京)电子信息产业有限公司 | The performance optimization method of a kind of (SuSE) Linux OS and framework |
-
2017
- 2017-06-16 CN CN201710457631.XA patent/CN107273164A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461711A (en) * | 2014-12-15 | 2015-03-25 | 北京奇虎科技有限公司 | Adaptive optimization method and adaptive optimization device of computing equipment |
CN105677477A (en) * | 2015-12-30 | 2016-06-15 | 北京金山安全软件有限公司 | Method and device for optimizing application program resources and electronic equipment |
CN106250181A (en) * | 2016-07-27 | 2016-12-21 | 浪潮(北京)电子信息产业有限公司 | The performance optimization method of a kind of (SuSE) Linux OS and framework |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765237A (en) * | 2019-10-10 | 2020-02-07 | 腾讯科技(深圳)有限公司 | Document processing method, document processing device, storage medium and electronic equipment |
CN110765237B (en) * | 2019-10-10 | 2023-09-26 | 腾讯科技(深圳)有限公司 | Document processing method and device, storage medium and electronic equipment |
CN114840110B (en) * | 2022-03-17 | 2023-06-20 | 杭州未名信科科技有限公司 | Puncture navigation interaction assisting method and device based on mixed reality |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462746B (en) | Container deployment method and framework based on openstack | |
JP2016505930A (en) | System, method, and apparatus for collaborative CAX editing | |
CN105630488A (en) | Docker container technology-based continuous integration realizing method | |
CN103064717B (en) | A kind of apparatus and method of parallel installation of software for cluster system | |
CN104935618B (en) | A kind of clustered deploy(ment) method | |
CN107463692B (en) | Super large text data is synchronized to the method and system of search engine | |
CN104866372A (en) | Server integration oriented high efficiency physical machine to virtual machine conversion method | |
CN111158680A (en) | Page construction method, device, equipment and storage medium | |
CN111026723A (en) | Big data cluster management control method and device, computer equipment and storage medium | |
CN107273164A (en) | A kind of method for realizing Auto-matching scene optimization strategy when linux system performance optimizes | |
US11910486B2 (en) | Commit sets in a Kubernetes environment | |
CN104050003A (en) | Method for starting Nutch collecting system with shell script | |
CN112800014A (en) | File system creation method and device | |
CN112612533A (en) | BMC setup option modification method based on CentOS in ARM server | |
CN107391303B (en) | Data processing method, device, system, server and computer storage medium | |
CN105653253A (en) | Method and device for centralized configuration | |
CN103455337A (en) | Method for using dynamic library under Android development environment | |
CN113727429A (en) | Cross-network-group clock synchronization method and device, storage medium and terminal | |
WO2021179584A1 (en) | Method and apparatus for migrating druid cluster, computer device and storage medium | |
CN108900347B (en) | Cluster initialization configuration method, device, system, equipment and readable storage medium | |
CN109446146B (en) | State transition sequence generation method of application layer communication protocol | |
CN113254158B (en) | Deployment method and device of deep learning system | |
CN114510323A (en) | Network optimization implementation method for operating virtual machine in container | |
CN103678545A (en) | Network resource clustering method and device | |
CN110704160B (en) | Dual-computer hot standby test method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171020 |
|
RJ01 | Rejection of invention patent application after publication |