CN107436812B - A kind of method and device of linux system performance optimization - Google Patents

A kind of method and device of linux system performance optimization Download PDF

Info

Publication number
CN107436812B
CN107436812B CN201710631502.8A CN201710631502A CN107436812B CN 107436812 B CN107436812 B CN 107436812B CN 201710631502 A CN201710631502 A CN 201710631502A CN 107436812 B CN107436812 B CN 107436812B
Authority
CN
China
Prior art keywords
linux system
optimization
file
performance
rank
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
CN201710631502.8A
Other languages
Chinese (zh)
Other versions
CN107436812A (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 Senseshield Technology Co Ltd
Original Assignee
Beijing Senseshield Technology 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 Senseshield Technology Co Ltd filed Critical Beijing Senseshield Technology Co Ltd
Priority to CN201710631502.8A priority Critical patent/CN107436812B/en
Publication of CN107436812A publication Critical patent/CN107436812A/en
Application granted granted Critical
Publication of CN107436812B publication Critical patent/CN107436812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Abstract

The invention discloses a kind of method and devices of linux system performance optimization, are related to field of computer technology, and main purpose is and system resource to be fully used to reduce system business fault time.The described method includes: determining the linux system target rank to be optimized for being according to the monitoring parameters in the linux system after receiving the optimization request of linux system;It is concentrated from default file and obtains optimization file corresponding with the target rank, wherein the default file concentrates the corresponding optimization file of multiple target ranks comprising the linux system;Performance optimization is carried out to the linux system according to the target rank corresponding optimization file.Present invention is mainly used for the optimizations of the performance of linux system.

Description

A kind of method and device of linux system performance optimization
Technical field
The present invention relates to field of computer technology, especially a kind of method and device of linux system performance optimization.
Background technique
Linux system is a set of class Unix operating system, multi-user, multitask, branch specially based on POSIX and UNIX The operating system of multithreading and multi -CPU is held, it is high-performance, reliable and stable and quite flexible operating system, in recent years, very much Software company releases the application software under various Linux server systems and Linux one after another.
Currently, Linux can make rival claims as an equal with various traditional commercial operating systems, alsied occupy in server market Sizable share, common Linux server system can be divided into many types class, such as Web server, mail server, ftp Server, file server and database server etc..But the Linux as the general-purpose operating system, since it is real-time How the technology barrier of application field plays server performance in the case where hardware condition has been fixed to the greatest extent, is One emphasis of the field concern of Linux system server performance optimization at present.
The optimal way of existing linux system unites to all application systems usually before application system is online One optimization, once application system is in the process of running when something goes wrong, just certain projects of discovery system are not optimized, and are led There is short time or prolonged traffic failure in cause system, then can carry out on all projects that can influence system performance Optimization, including the various aspects such as hardware, software, it is not intended that whether the parameter needs to optimize, so that system resource is not filled Divide and utilize, the efficiency for causing linux system performance to optimize is lower.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind The method and device for stating a kind of linux system performance optimization of problem, can reduce system business fault time, and make system Resource is fully used.
The one side of the embodiment of the present invention, the present invention provides a kind of methods of linux system performance optimization, comprising:
After the optimization request for receiving linux system, according to the monitoring parameters determination in the linux system The linux system target rank to be optimized for being;
It is concentrated from default file and obtains optimization file corresponding with the target rank, wherein the default file is concentrated The corresponding optimization file of multiple target ranks comprising the linux system;
Performance optimization is carried out to the linux system according to the target rank corresponding optimization file.
Further, the monitoring parameters are predicted value of the setup parameter within the object time;
The monitoring parameters according in the linux system determine the linux system target rank to be optimized for being, Include:
Prediction when the setup parameter reaches the predicted value with the value of the associated performance parameter of the setup parameter Range;
According to the described and associated performance parameter of setup parameter value range, it is excellent to determine that the linux system waits for The target rank turned to.
Further, to be that multiple performance parameters of linux system when currently running are corresponding take the monitoring parameters It is worth range;
It is described to determine the linux system target rank to be optimized for being according to monitoring parameters in the linux system, packet It includes:
Multiple performances ginseng when determining that the linux system is currently run according to the corresponding value range of the performance parameter Number is corresponding to refer to rank;
It determines each with reference to performance parameter number corresponding under rank;
It is determined as the linux system target to be optimized for being with reference to rank for corresponding performance parameter is the largest number of Rank.
Further, it is concentrated described from default file before obtaining optimization file corresponding with the target rank, institute State method further include:
Corresponding optimization file is respectively configured for the different target rank of the linux system, wherein the optimization file In include the various performance parameters of the linux system under corresponding optimization rank value range;
The other optimization file of each optimization level of the linux system is stored in default file to concentrate.
Further, the method also includes:
Linux system after performance optimization is tested, optimal inspection result is obtained.
Another aspect according to an embodiment of the present invention, the embodiment of the invention provides a kind of optimizations of linux system performance Device, comprising:
Determination unit after the optimization request for receiving linux system, is joined according to the monitoring in the linux system Number determines the linux system target rank to be optimized for being;
Acquiring unit obtains optimization file corresponding with the target rank for concentrating from default file, wherein described Default file concentrates the corresponding optimization file of multiple target ranks comprising the linux system;
Optimize unit, it is excellent for carrying out performance to the linux system according to the corresponding optimization file of the target rank Change.
Further, the monitoring parameters are predicted value of the setup parameter within the object time:
The determination unit, specifically for predict when the setup parameter reaches the predicted value with the setup parameter The value range of associated performance parameter;
The determination unit is specifically also used to according to the value model with the associated performance parameter of the setup parameter It encloses, determines the linux system target rank to be optimized for being.
Further, to be that multiple performance parameters of linux system when currently running are corresponding take the monitoring parameters It is worth range;
The determination unit, specifically for determining the linux system according to the corresponding value range of the performance parameter Multiple performance parameters when current operation are corresponding with reference to rank;
The determination unit is specifically also used to determine each with reference to performance parameter number corresponding under rank;
The determination unit is specifically also used to for corresponding the largest number of reference ranks of performance parameter being determined as described The linux system target rank to be optimized for being.
Further, described device further include:
Corresponding optimization file is respectively configured for the different target rank for the linux system in configuration unit, In, it include the value range of the various performance parameters of the linux system under corresponding optimization rank in the optimization file;
Storage unit is concentrated for the other optimization file of each optimization level of the linux system to be stored in default file.
Further, described device further include:
Test cell is tested for the linux system after optimizing to performance, obtains optimal inspection result.
By above-mentioned technical proposal, a kind of method and device of linux system performance optimization provided by the invention, according to Monitoring parameters in linux system determine the linux system target rank to be optimized for being, without after system operation is broken down To had an impact system operation project optimize, take full advantage of system resource, by from default file concentrate obtain with The corresponding optimization file of the target rank, and then according to target rank corresponding optimization file linux system is carried out corresponding Optimization, with the linux system performance optimal way optimized in the prior art to the optimization project of had an impact system operation It compares, the embodiment of the present invention is that different target rank is pre- by being divided into multiple target ranks to be optimized to by linux system First configuration optimization file carries out the performance of respective objects rank after receiving the optimization request of linux system to linux system Optimization, has different optimisation strategies for the linux system of different demands, has reached the maximum balance that system resource uses, and And the linux system low for optimisation strategy be without carrying out multinomial optimization, to reduce system failure time, facilitate user into Row system operatio.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of method flow schematic diagram of linux system performance optimization provided in an embodiment of the present invention;
Fig. 2 shows the method flow schematic diagrams of another linux system performance optimization provided in an embodiment of the present invention;
Fig. 3 shows a kind of apparatus structure schematic diagram of linux system performance optimization provided in an embodiment of the present invention;
Fig. 4 shows the apparatus structure schematic diagram of another linux system performance optimization provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of methods of linux system performance optimization, as shown in Figure 1, this method is mainly used In the optimal way to different linux systems using different target rank, and then the efficiency of linux system performance optimization is improved, Specific steps include:
101, after the optimization request for receiving linux system, according to the monitoring parameters determination in the linux system The linux system target rank to be optimized for being.
Wherein, optimization request is that the request of linux system performance optimization, such as request optimization are sent with user orientation server The memory etc. in processor or request optimization linux system in linux system, to have server hardware resource is specified In the case where limit, server performance is improved to greatest extent.Here user can be carried in optimization request after system evaluation The performance parameter optimized to linux system is needed, and the mutually information such as scene applied by the linux system in requisition for optimization, The embodiment of the present invention realizes different optimisation strategies according to different linux systems without limiting in order to subsequent.
Linux system is a multi-user based on POSIX and UNIX, multitask, the operation for supporting multithreading and multi -CPU No matter system functionally or in performance has lot of advantages, is a kind of open operating system.Since system hardware is asked Complexity and the variabilities such as topic, software issue and network environment, so that linux system will appear various events in the process of operation Barrier, in order to ensure linux system is run in a secure environment, needs to optimize linux system.
Usual situation, Linux server system can symbolize various performance parameter informations in operation, these property Energy parameter information is most important for system operation, if linux system breaks down in the process of running, can quickly determine Position and corresponding failure performance parameter is optimized, tend to reduce fault time, for the embodiment of the present invention, for not Same linux system takes different objective optimization grades, improves the flexibility of troubleshooting, is conducive to improve linux system Optimization efficiency.
For the embodiment of the present invention, the monitoring parameters in linux system are numerical value based on optimization system, for example, setting Determine predicted value of the parameter within the object time, the corresponding value model of multiple performance parameters when linux system is currently run Enclose etc., the embodiment of the present invention is to monitoring parameters without limiting.
Determine that the target rank to be optimized for being may be employed without limitation of with specific reference to the monitoring parameters in linux system Following implementations illustrate that current linux system takes performance parameter if the application scenarios of linux system are game Be worth area requirement it is higher, can determine the linux system target rank to be optimized for being be it is advanced, if the application of linux system Scene is computer desktop, then it is lower to illustrate that current linux system requires the value range of performance parameter, can determine Linux The system target rank to be optimized for being is multiple performance parameters pair that are rudimentary, can also being run certainly according to current linux system The value range answered determines the linux system target rank to be optimized for being, the embodiment of the present invention to objectives rank really Determine without limiting.
102, it is concentrated from default file and obtains optimization file corresponding with the target rank, wherein the default file Concentrate the corresponding optimization file of multiple target ranks comprising the linux system.
Wherein, default file concentrates the corresponding optimization file of multiple target ranks comprising different linux systems, for not With linux system, the target rank needs corresponding optimization file to be optimized for being, optimizes and is configured with respective objects rank in file The optimization information such as the value range that the performance parameter and performance parameter for needing to optimize linux system need to adjust, and will be different Optimization file set required for target rank is stored in default file concentration, is searched with convenience file, such as meets in server To disk write activity peak, cause request processing very big, corresponding optimisation strategy is adjustment kernel parameter, will a little movable height Peak, which is scattered in, frequently repeatedly to be write, and the data being written every time are fewer, the write operation on peak can be divided into repeatedly in this way, is reduced Execution efficiency, specific optimize may include the percentage for controlling the write buffer area of file system in file, indicate in write buffer Area uses Installed System Memory how many when, starts to write out data to disk, can also include the pdflush of control file system Process percentage indicates the percentage of Installed System Memory, by memory content and file system synchronize, optimize file certainly In can also include other linux systems kernel parameter value range etc., the embodiment of the present invention without limit.
103, performance optimization is carried out to the linux system according to the corresponding optimization file of the target rank.
Under normal conditions, linux system performance optimization is to unite before application system is online to all application systems One optimization, such as a certain performance parameter needs to optimize in checking linux system kernel, sexual to institute in all application system kernels Energy parameter optimizes, and then reduces the occurrence probability of the system failure during follow-up operation.
Here optimal way is to predefine the different linux systems target rank to be optimized for being, can such as be passed through The mode predicted to performance parameter determines the different linux systems target rank to be optimized for being, for example, different application The prediction etc. of prediction or setup parameter under scene can determine different according to the value range of real-time performance parameter The linux system target rank to be optimized for being, the embodiment of the present invention is without limiting.
For the embodiment of the present invention, performance optimization tool is carried out to linux system according to the corresponding optimization file of target rank Body may include but be not limited to, and obtain the parameter area optimized required for corresponding linux system in optimization file, further will Corresponding parameter area is adjusted to the parameter area in optimization file needed to optimize in linux system, to realize to according to institute It states optimization file and performance optimization is carried out to the linux system.
For the embodiment of the present invention, concrete application scene may include but be not limited to following implementations: system administration Optimization file under different application scene is placed on default file in advance and concentrated by member, is specifically included applied to the excellent of scene of game Change file, the application file applied to Desktop-scene and the application file applied to office scene, is needed under different application scene The performance parameter range to be optimized is different, higher to performance parameter area requirement for scene of game, for Desktop-scene It is lower to performance parameter area requirement, active user used Linux general to performance parameter area requirement for office scene Systematic difference scene is office scene, to linux system performance parameter area requirement in medium level, first reception user couple The optimization request of linux system, administrator are office scene in the application scenarios for recognizing the linux system, determine the Linux The optimisation strategy of system is office scene, then concentrates from default file and obtains corresponding optimization file under corresponding office scene, Further linux system is optimized according to the optimizing performance parameters range recorded in optimization file.
It can be seen that a kind of linux system performance provided in an embodiment of the present invention optimized in conjunction with above-mentioned implementation Method determines the linux system target rank to be optimized for being according to the monitoring parameters in linux system, without running in system The project of had an impact system operation is optimized after failure, takes full advantage of system resource, by from default file It concentrates and obtains optimization file corresponding with the target rank, and then according to the corresponding optimization file of target rank to Linux system System is accordingly optimized, with the linux system optimized in the prior art to the optimization project of had an impact system operation Energy optimal way is compared, and the embodiment of the present invention is difference by being divided into multiple target ranks to be optimized to by linux system Target rank is pre-configured with optimization file, carries out respective objects to linux system after receiving the optimization request of linux system The performance of rank optimizes, and has different optimisation strategies for the linux system of different demands, has reached system resource and used most Big balance, and the linux system low for optimisation strategy is not necessarily to carry out multinomial optimization, thus reduce system failure time, User is facilitated to carry out system operatio.
Below for the method that a kind of linux system performance optimization proposed by the present invention is explained in more detail, especially The linux system target rank to be optimized for being is determined according to the monitoring parameters in linux system and is obtained from default file concentration The step of taking optimization file corresponding with target rank, the embodiment of the invention also provides the optimizations of another linux system performance Method, as shown in Fig. 2, the specific steps of this method include:
201, after the optimization request for receiving linux system, according to the monitoring parameters determination in the linux system The linux system target rank to be optimized for being.
Wherein, optimization request is that the request of linux system performance optimization is sent with user orientation server, such as improves the fortune of CPU Calculation ability, the capacity for improving memory or upgrading kernel etc. can carry out the parameter in system according to user's actual need Optimization, naturally it is also possible to according to user in advance to the system status parameters generated after system mode assessment to the corresponding parameter of system It optimizes.
For the embodiment of the present invention, when monitoring parameters are predicted value of the setup parameter within the object time, according to Monitoring parameters in the linux system determine that the linux system target rank to be optimized for being can specifically include but not Limit to following implementations: first prediction when setup parameter reaches the predicted value in the linux system with setup parameter The value range of associated performance parameter determines Linux then according to the value range with the associated performance parameter of setup parameter The system target rank to be optimized for being.
For example, the flow value range that setup parameter is linux system reached 5000 in 10 hours, when flow performance is joined Number predicts the value range of performance parameter associated with flow when reaching 5000, value range including network load parameter, The value range of 10 performance parameters such as the value range of inflow and outflow data packet and the value range of memory usage, into one Step linux system target rank to be optimized is determined according to the value range of performance parameter associated with flow, when with stream The value range for measuring associated performance parameter has majority, if 7-10 in the value range of setting, then illustrates Linux system System flow needs the performance parameter that optimizes more, determine linux system target rank to be optimized be it is advanced, when related to flow The value range of the performance parameter of connection has partial amt, as 4-7 in the value range of setting, it is determined that linux system Target rank to be optimized is middle rank, when the value range of performance parameter associated with flow has minority, as do not existed less than 4 In the value range of setting, it is determined that linux system target rank to be optimized is rudimentary, it should be noted that above-mentioned performance The quantity of parameter is chosen for preferred amount, here to the quantity of performance parameter in each target rank without limiting,
For the embodiment of the present invention, multiple performance parameters when monitoring parameters currently run for linux system are corresponding When value range, determine that the linux system target rank to be optimized for being specifically can be with according to monitoring parameters in the linux system Including but do not limit to following implementations: determine that linux system is currently run according to the corresponding value range of performance parameter first When multiple performance parameters it is corresponding refer to rank, and determine it is each with reference to performance parameter number corresponding under rank, Then it is determined as the linux system target rank to be optimized for being with reference to rank for corresponding performance parameter is the largest number of.
For example, the utilization rate of CPU in linux system performance parameter is for a long time more than 80%, in fact it could happen that processor Bottleneck, it is determined that the utilization rate of CPU be more than 80% it is corresponding with reference to rank be it is advanced, 60%-70% is corresponding to be with reference to rank Middle rank, lower than 60% it is corresponding with reference to rank be it is rudimentary, memory headroom occupy it is bigger, statistics be likely to occur caching anxiety ask Topic, it is determined that memory headroom occupy over 70% it is corresponding with reference to rank be it is advanced, 50%-70% is corresponding with reference to rank to be Grade, lower than 50% it is corresponding with reference to rank be it is rudimentary, can be voluntarily for the reference rank of different performance parameter in linux system Setting, further by the performance parameter of real-time monitoring linux system, and it is corresponding with reference to rank to count different performance parameter, If administrator confirms that referring to rank in linux system is that advanced performance parameter is most, illustrates Linux according to statistical result The probability that may be broken down in system operation is relatively high, determines that the linux system target rank to be optimized for being is high Grade needs to execute comprehensive optimizing performance parameters to linux system according to the hardware feature and advanced performance parameter of system, So that linux system reaches the maximum balance of own hardware and software, if administrator confirms Linux system according to statistical result It is most with reference to the performance parameter that rank is middle rank in system, then illustrate to break down in linux system operational process, exist The parameter area of part item number performance in the normal range, determines that the linux system target rank to be optimized for being is middle rank, needs The optimizing performance parameters of middle rank so that linux system reaches the maximum balance of own hardware and software, if administrator according to Statistical result confirms that it is that rudimentary performance parameter is most that rank is referred in linux system, then illustrates in linux system operational process The probability that may be broken down is lower, determine the linux system target rank to be optimized for being be it is rudimentary, need to rudimentary property Energy parameter optimizes, so that linux system reaches the maximum balance of own hardware and software.
It should be noted that above-mentioned goal gradient to be optimized is the performance parameter quantity that advanced usual expression needs to optimize More, the embodiment of the present invention is not especially limited the quantity of performance parameter, is preferably provided with quantity and accounts for linux system all properties 80% or more of number of parameters, comprehensive optimizing performance parameters may include but are not limited to reduce linux system nonessential Application booting self-starting, close GUI, server is in third runlevel in operation, change the optimizations operation such as kernel parameter, So that kernel parameter meets current hardware resource, memory parameters and document system optimization to meeting Linux to greatest extent The operating status of system.
202, corresponding optimization file is respectively configured for the different target rank of the linux system.
Since the performance parameter that the linux system of different target grade needs to optimize is different, it is therefore desirable to for difference The linux system of goal gradient configures corresponding optimization file, and the mutually performance in requisition for optimization will be placed in optimization file Parameter.
203, the other optimization file of each optimization level of the linux system default file is stored in concentrate.
Optimization file corresponding to different target grade is managed for convenience, further that different target grade is corresponding Optimization file be stored in default file concentration, be uniformly managed by system manager, if receiving the excellent of linux system Change request, further the goal gradient to be optimized for being is concentrated from default file and obtains corresponding optimization file according to linux system.
204, it is concentrated from default file and obtains optimization file corresponding with the target rank.
Since default file concentration includes the corresponding optimization file of different target grade, further Linux system is being determined After the target rank to be optimized for being of uniting, the corresponding optimization file of the corresponding optimisation strategy of acquisition is concentrated from default file.
For the embodiment of the present invention, the optimization file that can in advance concentrate default file carries out classifying and dividing, for not Same level and different types of optimization file are sorted out, and tab indexes are generated, in the optimisation strategy for determining linux system Afterwards, corresponding optimization file is searched according to the tab indexes after classification, and then convenience file is searched.
205, performance optimization is carried out to the linux system according to the corresponding optimization file of the target rank.
For the embodiment of the present invention, when the target rank for being when linux system is to be optimized is advanced, it usually needs right The performance parameter that linux system optimizes is more, further traverses all properties parameter in linux system, finds needs The enhanced performance parameter of optimization passes through performance parameter in optimization file after finding the multinomial performance parameter for needing to optimize Value range is adjusted the multinomial performance parameter for needing to optimize in linux system, to realize the performance to linux system Optimization.
For the embodiment of the present invention, when the target rank for being when linux system is to be optimized is middle rank, it usually needs right Part performance parameter optimizes in linux system, further traverses all properties parameter in linux system, finds needs The intermediate performance parameter of optimization passes through performance parameter in optimization file after finding the intermediate performance parameter for needing to optimize Value range is adjusted the intermediate performance parameter for needing to optimize in linux system, to realize the performance to linux system Optimization.
For the embodiment of the present invention, when the target rank for being when linux system is to be optimized is rudimentary, it usually needs right The performance parameter optimized in linux system is less, further traverses all properties parameter in linux system, and finding needs The rudimentary performance parameter to be optimized passes through performance parameter in optimization file after finding the rudimentary performance parameter for needing to optimize Value range the rudimentary performance parameter for needing to optimize in linux system is adjusted, to realize to the property of linux system It can optimization.
It should be noted that the value range of performance parameter involved in above-mentioned optimization file is that can guarantee Performance parameter range under linux system normal operation, certainly if there is higher being adapted to property of demand tuning performance parameter Value range.
206, the linux system after performance optimization is tested, obtains optimal inspection result.
It, can be by the performance parameter after test optimization, so that it is excellent to verify system for the linux system after performance optimization Change situation, if system operation is still broken down after optimization, illustrates that effect of optimization is undesirable, need to be optimized, such as Fruit system running state is good, has reached effect of optimization.
The method of another kind linux system performance optimization provided in an embodiment of the present invention, according to the monitoring in linux system Parameter determines the linux system target rank to be optimized for being, without system operation break down after to had an impact system fortune Capable project optimizes, and takes full advantage of system resource, by concentrating acquisition corresponding with the target rank from default file Optimization file, and then linux system is accordingly optimized according to target rank corresponding optimization file, and in the prior art The linux system performance optimal way optimized to the optimization project of had an impact system operation is compared, the embodiment of the present invention By being divided into multiple target ranks to be optimized to by linux system, and it is pre-configured with optimization file for different target rank, when It receives the performance for carrying out respective objects rank to linux system after the optimization request of linux system to optimize, for different demands Linux system have different optimisation strategies, reached the maximum balance that system resource uses, and low for optimisation strategy Linux system is without carrying out multinomial optimization, to reduce system failure time, user is facilitated to carry out system operatio.
In addition, the embodiment of the present invention uses different optimal ways before online implementing, for different linux systems, For needing degree of optimization is higher to use advanced optimization, for needing degree of optimization is lower to use rudimentary optimization, Neng Gouhe Reason is using optimization resource, so that the software and hardware for reaching linux system reaches reasonable configuration.
Further, the specific implementation as method shown in Fig. 1, the embodiment of the present invention provide a kind of linux system performance The device of optimization, the Installation practice is corresponding with preceding method embodiment, and to be easy to read, the present apparatus is not to preceding method reality The detail content applied in example is repeated one by one, it should be understood that the device in the present embodiment can correspond to realization preceding method Full content in embodiment, as shown in figure 3, described device includes:
Determination unit 31, after the optimization request that can be used for receiving linux system, according in the linux system Monitoring parameters determine the linux system target rank to be optimized for being;
Acquiring unit 32 can be used for concentrating acquisition optimization file corresponding with the target rank from default file, In, the default file concentrates the corresponding optimization file of multiple target ranks comprising the linux system;
Optimize unit 33, can be used for carrying out the linux system according to the corresponding optimization file of the target rank Performance optimization.
A kind of device of linux system performance optimization provided in an embodiment of the present invention, joins according to the monitoring in linux system Number determine the linux system target ranks to be optimized for being, without system operation break down after to had an impact system operation Project optimize, take full advantage of system resource, by from default file concentrate obtain it is corresponding with the target rank Optimize file, and then linux system is accordingly optimized according to target rank corresponding optimization file, and it is right in the prior art The linux system performance optimal way that the optimization project of had an impact system operation optimizes is compared, and the embodiment of the present invention is logical It crosses and is divided into multiple target ranks to be optimized to by linux system, and be pre-configured with optimization file for different target rank, when connecing It receives the performance for carrying out respective objects rank to linux system after the optimization request of linux system to optimize, for different demands Linux system has different optimisation strategies, has reached the maximum balance that system resource uses, and low for optimisation strategy Linux system is without carrying out multinomial optimization, to reduce system failure time, user is facilitated to carry out system operatio.
Further, as shown in figure 4, described device further include:
Configuration unit 34 can be used for being respectively configured corresponding optimization text for the different target rank of the linux system Part, wherein include the value model of the various performance parameters of the linux system under corresponding optimization rank in the optimization file It encloses;
Storage unit 35 can be used for the other optimization file of each optimization level of the linux system being stored in default file It concentrates;
Test cell 36, the linux system after can be used for optimizing performance are tested, and optimal inspection result is obtained.
Further, the monitoring parameters are predicted value of the setup parameter within the object time:
The determination unit 31 specifically can be used for predicting setting when the setup parameter reaches the predicted value with described Determine the value range of the performance parameter of parameter association;
The determination unit 31 specifically can be also used for the taking with the associated performance parameter of the setup parameter according to described It is worth range, determines the linux system target rank to be optimized for being.
Further, to be that multiple performance parameters of linux system when currently running are corresponding take the monitoring parameters It is worth range,
The determination unit 31 specifically can be used for according to the corresponding value range determination of the performance parameter Multiple performance parameters when linux system is currently run are corresponding with reference to rank;
The determination unit 31 specifically can be also used for determining each with reference to performance parameter number corresponding under rank;
The determination unit 31 specifically can be also used for corresponding performance parameter is the largest number of determining with reference to rank For the linux system target rank to be optimized for being;
The device of another kind linux system performance optimization provided in an embodiment of the present invention, according to the monitoring in linux system Parameter determines the linux system target rank to be optimized for being, without system operation break down after to had an impact system fortune Capable project optimizes, and takes full advantage of system resource, by concentrating acquisition corresponding with the target rank from default file Optimization file, and then linux system is accordingly optimized according to target rank corresponding optimization file, and in the prior art The linux system performance optimal way optimized to the optimization project of had an impact system operation is compared, the embodiment of the present invention By being divided into multiple target ranks to be optimized to by linux system, and it is pre-configured with optimization file for different target rank, when It receives the performance for carrying out respective objects rank to linux system after the optimization request of linux system to optimize, for different demands Linux system have different optimisation strategies, reached the maximum balance that system resource uses, and low for optimisation strategy Linux system is without carrying out multinomial optimization, to reduce system failure time, user is facilitated to carry out system operatio.
In addition, the embodiment of the present invention uses different optimal ways before online implementing, for different linux systems, For needing degree of optimization is higher to use advanced optimization, for needing degree of optimization is lower to use rudimentary optimization, Neng Gouhe Reason is using optimization resource, so that the software and hardware for reaching linux system reaches reasonable configuration.
The device of the linux system performance optimization includes processor and memory, above-mentioned determination unit 31, acquiring unit 32 and optimization unit 33 it is equal as program unit storage in memory, executed by processor stored in memory above-mentioned Program unit realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, manpower is saved by adjusting kernel parameter, to reduce system business fault time, and system resource is obtained It makes full use of.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program code of beginningization there are as below methods step: after the optimization request for receiving linux system, according in the linux system Monitoring parameters determine the linux system target rank to be optimized for being;It concentrates and obtains and the target level from default file Not corresponding optimization file, wherein the default file concentrates multiple target ranks comprising the linux system corresponding excellent Change file;Performance optimization is carried out to the linux system according to the target rank corresponding optimization file.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (8)

1. a kind of method of linux system performance optimization characterized by comprising
After the optimization request for receiving linux system, the Linux system is determined according to the monitoring parameters in the linux system It unites the target rank to be optimized for being;
It is concentrated from default file and obtains optimization file corresponding with the target rank, wherein the default file, which is concentrated, includes The corresponding optimization file of multiple target ranks of the linux system;
Performance optimization is carried out to the linux system according to the target rank corresponding optimization file;
The monitoring parameters are the corresponding value range of multiple performance parameters when the linux system is currently run;
It is described to determine the linux system target rank to be optimized for being according to monitoring parameters in the linux system, comprising:
Multiple performance parameters point when determining that the linux system is currently run according to the corresponding value range of the performance parameter It is not corresponding to refer to rank;
It determines each with reference to performance parameter number corresponding under rank;
It is determined as the linux system target level to be optimized for being with reference to rank for corresponding performance parameter is the largest number of Not.
2. the method according to claim 1, wherein the monitoring parameters are setup parameter in object time range Interior predicted value;
The monitoring parameters according in the linux system determine the linux system target rank to be optimized for being, packet It includes:
Prediction when the setup parameter reaches the predicted value with the value range of the associated performance parameter of the setup parameter;
According to the described and associated performance parameter of setup parameter value range, determining that the linux system is to be optimized is Target rank.
3. -2 described in any item methods according to claim 1, which is characterized in that obtained and the mesh being concentrated from default file Before marking the corresponding optimization file of rank, the method also includes:
Corresponding optimization file is respectively configured for the different target rank of the linux system, wherein wrap in the optimization file Include the value range of the various performance parameters of the linux system under corresponding optimization rank;
The other optimization file of each optimization level of the linux system is stored in default file to concentrate.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Linux system after performance optimization is tested, optimal inspection result is obtained.
5. a kind of device of linux system performance optimization characterized by comprising
Determination unit, it is true according to the monitoring parameters in the linux system after the optimization request for receiving linux system The fixed linux system target rank to be optimized for being;
Acquiring unit obtains optimization file corresponding with the target rank for concentrating from default file, wherein described default It include the corresponding optimization file of multiple target ranks of the linux system in file set;
Optimize unit, for carrying out performance optimization to the linux system according to the corresponding optimization file of the target rank;
The monitoring parameters are the corresponding value range of multiple performance parameters when the linux system is currently run;
The determination unit, specifically for determining that the linux system is current according to the corresponding value range of the performance parameter Multiple performance parameters when operation are corresponding with reference to rank;
The determination unit is specifically also used to determine each with reference to performance parameter number corresponding under rank;
The determination unit is specifically also used to for corresponding the largest number of reference ranks of performance parameter being determined as described The linux system target rank to be optimized for being.
6. device according to claim 5, which is characterized in that the monitoring parameters are setup parameter in object time range Interior predicted value:
The determination unit, specifically for predicting to be associated with when the setup parameter reaches the predicted value with the setup parameter Performance parameter value range;
The determination unit is specifically also used to according to the value range with the associated performance parameter of the setup parameter, really The fixed linux system target rank to be optimized for being.
7. the device according to any one of claim 5-6, which is characterized in that described device further include:
Corresponding optimization file is respectively configured for the different target rank for the linux system, wherein institute in configuration unit Stating includes the corresponding value range for optimizing the various performance parameters of the linux system under rank in optimization file;
Storage unit is concentrated for the other optimization file of each optimization level of the linux system to be stored in default file.
8. device according to claim 7, which is characterized in that described device further include:
Test cell is tested for the linux system after optimizing to performance, obtains optimal inspection result.
CN201710631502.8A 2017-07-28 2017-07-28 A kind of method and device of linux system performance optimization Active CN107436812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710631502.8A CN107436812B (en) 2017-07-28 2017-07-28 A kind of method and device of linux system performance optimization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710631502.8A CN107436812B (en) 2017-07-28 2017-07-28 A kind of method and device of linux system performance optimization

Publications (2)

Publication Number Publication Date
CN107436812A CN107436812A (en) 2017-12-05
CN107436812B true CN107436812B (en) 2019-08-20

Family

ID=60460175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710631502.8A Active CN107436812B (en) 2017-07-28 2017-07-28 A kind of method and device of linux system performance optimization

Country Status (1)

Country Link
CN (1) CN107436812B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022402A (en) * 2019-02-28 2019-07-16 努比亚技术有限公司 A kind of file system operation method, terminal and computer readable storage medium
CN111694713B (en) * 2020-06-15 2023-04-11 Oppo(重庆)智能科技有限公司 Application operation optimization method and device and computer readable storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1331564A1 (en) * 2002-01-24 2003-07-30 Siemens Aktiengesellschaft Fuzzy logic based intelligent load control for distributed environment
US7464303B2 (en) * 2005-06-09 2008-12-09 International Business Machines Corporation Autonomically adjusting configuration parameters for a server when a different server fails
CN104346221B (en) * 2013-08-02 2018-05-08 北京百度网讯科技有限公司 Server hardware device grade classification, schedule management method and device, server
CN103699413B (en) * 2013-12-24 2017-05-03 北京世界星辉科技有限责任公司 Method and system for optimizing game operating environment, client and server
CN104503840B (en) * 2014-12-15 2016-09-28 北京奇虎科技有限公司 The method and device that terminal resource is optimized
CN104461742B (en) * 2014-12-15 2016-10-12 北京奇虎科技有限公司 Calculate equipment optimization method and device
CN104834529A (en) * 2015-05-25 2015-08-12 腾讯科技(深圳)有限公司 Method and device for optimizing performance of application
CN106250181A (en) * 2016-07-27 2016-12-21 浪潮(北京)电子信息产业有限公司 The performance optimization method of a kind of (SuSE) Linux OS and framework
CN106649070A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Rapid optimization method and system for operating performance of Linux system
CN106648472B (en) * 2016-12-30 2020-04-03 郑州云海信息技术有限公司 Linux operating system-based disk performance optimization method and system

Also Published As

Publication number Publication date
CN107436812A (en) 2017-12-05

Similar Documents

Publication Publication Date Title
US10331469B2 (en) Systems and methods of host-aware resource management involving cluster-based resource pools
CN102111337B (en) Method and system for task scheduling
US9189273B2 (en) Performance-aware job scheduling under power constraints
US20150295970A1 (en) Method and device for augmenting and releasing capacity of computing resources in real-time stream computing system
US20180198855A1 (en) Method and apparatus for scheduling calculation tasks among clusters
US20180136971A1 (en) Techniques for virtual machine migration
US11132293B2 (en) Intelligent garbage collector for containers
CN107968810A (en) A kind of resource regulating method of server cluster, device and system
CN110018781B (en) Disk flow control method and device and electronic equipment
CN109739627B (en) Task scheduling method, electronic device and medium
CN106202092A (en) The method and system that data process
CN111090502A (en) Streaming data task scheduling method and device
CN107436812B (en) A kind of method and device of linux system performance optimization
CN103905517A (en) Data storage method and equipment
CN113742036B (en) Index processing method and device and electronic equipment
CN104281587B (en) A kind of method and device for establishing connection
CN102546652B (en) System and method for server load balancing
CN114978913B (en) Cross-domain deployment method and system for service function chains based on cut chains
CN114546714B (en) Data backup method, system, device and storage medium
CN115658287A (en) Method, apparatus, medium, and program product for scheduling execution units
CN112039713B (en) Data transmission method and system for cloud computing and meeting user requirements
TW201735596A (en) Task scheduling method and device
CN114625570A (en) Database backup scheduling method and device
CN114020218A (en) Mixed repeating data deleting and scheduling method and system
CN105824809B (en) A kind of implementation method and device of ETL scheduling

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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and device of Linux system performance optimization

Effective date of registration: 20200821

Granted publication date: 20190820

Pledgee: Haidian Beijing science and technology enterprise financing Company limited by guarantee

Pledgor: BEIJING SENSESHIELD TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001009

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220428

Granted publication date: 20190820

Pledgee: Haidian Beijing science and technology enterprise financing Company limited by guarantee

Pledgor: BEIJING SENSESHIELD TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001009

PC01 Cancellation of the registration of the contract for pledge of patent right
CP01 Change in the name or title of a patent holder

Address after: 100193 5th floor 510, No. 5 Building, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Patentee after: Beijing Shendun Technology Co.,Ltd.

Address before: 100193 5th floor 510, No. 5 Building, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Patentee before: BEIJING SENSESHIELD TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder