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.
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.