The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
A kind of method and device of linux system performance optimization of problem is stated, system business fault time can be reduced, and cause system
Resource is fully used.
The one side of the embodiment of the present invention, the invention provides a kind of method of linux system performance optimization, including:
After the optimization request for receiving linux system, described in the monitoring parameters determination in the linux system
The linux system target rank to be optimized for being;
Concentrate acquisition is corresponding with the target rank to optimize file from default file, wherein, the default file is concentrated
Optimize file corresponding to multiple target ranks comprising the linux system;
Optimize file according to corresponding to the target rank and performance optimization is carried out to the linux system.
Further, the monitoring parameters are predicted value of the setup parameter in the range of the object time;
The monitoring parameters in the linux system determine the linux system target rank to be optimized for being,
Including:
Predict the value of the performance parameter associated when the setup parameter reaches the predicted value with the setup parameter
Scope;
According to the span of the performance parameter associated with the setup parameter, it is excellent to determine that the linux system is treated
The target rank turned to.
Further, the monitoring parameters are to be taken corresponding to more performance parameters when the linux system is currently run
It is worth scope;
It is described to determine the linux system target rank to be optimized for being according to monitoring parameters in the linux system, bag
Include:
Multiple performances ginseng when determining that the linux system is currently run according to span corresponding to the performance parameter
Rank is referred to corresponding to number difference;
It is determined that each refer to performance parameter number corresponding under rank;
It is defined as the linux system target to be optimized for being with reference to rank by corresponding performance parameter is the largest number of
Rank.
Further, before the optimization file corresponding with the target rank from default file concentration acquisition, institute
Stating method also includes:
Corresponding optimization file is respectively configured for the different target rank of the linux system, wherein, the optimization file
Include the span 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 into default file to concentrate.
Further, methods described also includes:
Linux system after optimizing to performance is tested, and obtains optimal inspection result.
According to the another aspect of the embodiment of the present invention, the embodiments of the invention provide a kind of optimization of linux system performance
Device, including:
Determining unit, after the optimization request for receiving linux system, the monitoring ginseng in the linux system
Number determines the linux system target rank to be optimized for being;
Acquiring unit, for concentrating acquisition is corresponding with the target rank to optimize file from default file, wherein, it is described
Default file concentrates optimization file corresponding to multiple target ranks comprising the linux system;
Optimize unit, it is excellent to linux system progress performance for optimizing file according to corresponding to the target rank
Change.
Further, the monitoring parameters are predicted value of the setup parameter in the range of the object time:
The determining unit, specifically for predict when the setup parameter reaches the predicted value with the setup parameter
The span of the performance parameter of association;
The determining unit, specifically it is additionally operable to the value model of performance parameter associated according to the setup parameter
Enclose, determine the linux system target rank to be optimized for being.
Further, the monitoring parameters are to be taken corresponding to more performance parameters when the linux system is currently run
It is worth scope;
The determining unit, the linux system is determined specifically for the span according to corresponding to the performance parameter
Rank is referred to corresponding to more performance parameters difference during current operation;
The determining unit, specifically it is additionally operable to determine each to refer to performance parameter number corresponding under rank;
The determining unit, specifically it is additionally operable to corresponding performance parameter is the largest number of with reference to described in being defined as rank
The linux system target rank to be optimized for being.
Further, described device also includes:
Dispensing unit, for corresponding optimization file to be respectively configured for the different target rank of the linux system, its
In, the optimization file includes the span of the various performance parameters of the linux system under corresponding optimization rank;
Memory cell, concentrated for the other optimization file of each optimization level of the linux system to be stored in into default file.
Further, described device also includes:
Test cell, tested for the linux system after optimizing to performance, obtain 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 breaks down
The project of had an impact system operation is optimized, takes full advantage of system resource, by from default file concentrate obtain with
Optimization file corresponding to the target rank, and then optimize file according to corresponding to target rank and linux system is carried out accordingly
Optimization, the linux system performance optimal way optimized with the optimization project in the prior art to had an impact system operation
Compare, the embodiment of the present invention is and pre- for different target rank by linux system is divided into multiple target ranks to be optimized
First configuration optimization file, the performance of respective objects rank is carried out to linux system after the optimization request of linux system is received
Optimization, has different optimisation strategies for the linux system of different demands, has reached the maximum balance that system resource uses, and
And multinomial optimization need not be carried out for the low linux system of optimisation strategy, so as to reduce system failure time, facilitate user to enter
Row system operatio.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
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
Completely it is communicated to those skilled in the art.
The embodiments of the invention provide a kind of method 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:
101st, after the optimization request for receiving linux system, described in 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
Internal memory in processor or request optimization linux system in linux system etc., to have server hardware resource is specified
In the case of limit, server performance is improved to greatest extent.Here user can be carried in optimization request after system evaluation
The performance parameter to linux system optimization, and the information such as scene mutually applied in requisition for the linux system of optimization are needed,
The embodiment of the present invention is without limiting, in order to subsequently realize different optimisation strategies according to different linux systems.
Linux system is a multi-user based on POSIX and UNIX, multitask, the operation for supporting multithreading and multi -CPU
System, no matter functionally or in performance there is lot of advantages, be a kind of open operating system.Because system hardware is asked
Complexity and the polytropies such as topic, software issue and network environment so that various events occur in the process of operation in linux system
Barrier, in order to ensure linux system is run in a secure environment, it is necessary to be optimized to linux system.
Normal conditions, 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 advantageous to improve linux system
Optimization efficiency.
For the embodiment of the present invention, monitoring parameters in linux system for optimization system institute foundation numerical value, for example, setting
Determine predicted value of the parameter in the range of the object time, value model corresponding to more 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, if the application scenarios of linux system are game, illustrate that current linux system takes to performance parameter
It is higher to be worth area requirement, it may be determined that the linux system target rank to be optimized for being is advanced, if the application of linux system
Scene is computer desktop, then illustrates that current linux system requires relatively low to the span of performance parameter, it may be determined that Linux
The system target rank to be optimized for being is more performance parameters pair that are rudimentary, can also being run certainly according to current linux system
The span 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.
102nd, concentrate acquisition is corresponding with the target rank to optimize file from default file, wherein, the default file
Concentrate optimization file corresponding to multiple target ranks comprising the linux system.
Wherein, default file concentrates optimization file corresponding to multiple target ranks comprising different linux systems, for not
With linux system, the target rank to be optimized for being needs corresponding optimization file, optimizes in file and is configured with respective objects rank
Need to optimize the performance parameter of linux system and performance parameter needs the optimization information such as span for adjusting, and by difference
Optimization file set required for target rank is stored in default file concentration, is searched with convenience file, such as is met in server
To disk write activity peak, cause request processing very big, corresponding optimisation strategy is adjustment kernel parameter, by a little movable height
Peak, which is scattered in, frequently repeatedly to be write, and the data write every time are fewer, the write operation on peak can be so divided into repeatedly, is reduced
Execution efficiency, the specific percentage for optimizing the write buffer area that can include control file system in file, is represented 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, the percentage of Installed System Memory is represented, the content in internal memory and file system are synchronized, optimize file certainly
In can also include spans of kernel parameter etc. of other linux systems, the embodiment of the present invention is without limiting.
103rd, optimize file according to corresponding to the target rank and performance optimization is carried out to the linux system.
Under normal circumstances, linux system performance optimization is before application system is reached the standard grade, and all application systems are united
One optimization, such as a certain performance parameter needs to optimize in linux system kernel is checked, 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 system target ranks to be optimized for being, can such as be passed through
The mode being predicted to performance parameter determines the different linux systems target rank to be optimized for being, for example, different application
Prediction of prediction or setup parameter under scene etc., it can be determined according to the span of real-time performance parameter different
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, optimize file according to corresponding to target rank and performance optimization tool is carried out to linux system
Body can include but is not limited to, and obtain the parameter area of optimization required for corresponding linux system in optimization file, further will
Corresponding parameter area is adjusted to optimize the parameter area for needing to optimize in file in linux system, so as to realize to according to institute
State optimization file and performance optimization is carried out to the linux system.
For the embodiment of the present invention, concrete application scene can include but is 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, needed under different application scene
The performance parameter scope to be optimized is different, higher to performance parameter area requirement for scene of game, for Desktop-scene
Relatively low to performance parameter area requirement, general to performance parameter area requirement for office scene, active user uses Linux
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, keeper are office scene in the application scenarios for recognizing the linux system, determine the Linux
The optimisation strategy of system is office scene, is then concentrated from default file and obtains corresponding optimization file under corresponding office scene,
Further the optimizing performance parameters scope according to described in optimization file optimizes to linux system.
It can be seen that what a kind of linux system performance provided in an embodiment of the present invention optimized with reference to above-mentioned implementation
Method, the monitoring parameters in linux system determine the linux system target rank to be optimized for being, without in system operation
The project of had an impact system operation is optimized after failure, takes full advantage of system resource, by from default file
Concentrate and obtain optimization file corresponding with the target rank, and then optimize file to Linux systems according to corresponding to target rank
System is accordingly optimized, the linux system optimized with the optimization project in the prior art to had an impact system operation
Can optimal way compare, the embodiment of the present invention is difference by linux system is divided into multiple target ranks to be optimized
Target rank is pre-configured with optimization file, and respective objects are carried out to linux system after the optimization request of linux system is received
The performance optimization of rank, has different optimisation strategies for the linux system of different demands, has reached system resource and used most
Big balance, and multinomial optimization need not be carried out for the low linux system of optimisation strategy, so as to reduce system failure time,
User is facilitated to carry out system operatio.
Below in order to which a kind of method of linux system performance optimization proposed by the present invention is explained in more detail, particularly
Monitoring parameters in linux system determine the linux system target rank to be optimized for being and concentrated from default file to obtain
The step of taking optimization file corresponding with target rank, the embodiment of the present invention additionally provide another linux system performance optimization
Method, as shown in Fig. 2 the specific steps of this method include:
201st, after the optimization request for receiving linux system, described in the monitoring parameters determination in the linux system
The linux system target rank to be optimized for being.
Wherein, optimization request is that the fortune of request, such as raising CPU that linux system performance optimizes is sent with user orientation server
Calculation ability, the capacity for improving internal memory or upgrading kernel etc., the parameter in system can be carried out according to user's actual need
Optimization, naturally it is also possible to which the system status parameters generated after being assessed in advance system mode according to user are to the corresponding parameter of system
Optimize.
For the embodiment of the present invention, when monitoring parameters are predicted value of the setup parameter in the range of 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 be included but not
Limit to following implementations:Predict first when setup parameter reaches the predicted value in the linux system with setup parameter
The span of the performance parameter of association, then according to the span of the performance parameter associated with setup parameter, determine Linux
The system target rank to be optimized for being.
For example, setup parameter reached 5000 for the flow span of linux system in 10 hours, when flow performance is joined
When number reaches 5000, the span of the prediction performance parameter associated with flow, including the span of network load parameter,
The span of the performance parameter of the span of inflow and outflow packet and the span of memory usage etc. 10, enters one
Step according to the span of the performance parameter associated with flow determines linux system target rank to be optimized, when with stream
The span of the associated performance parameter of amount has majority, as 7-10 in the span of setting, then illustrates Linux systems
The performance parameter that system flow needs optimize is more, linux system target rank to be optimized is determined to be advanced, when related to flow
The span of the performance parameter of connection has partial amt, as 4-7 in the span of setting, it is determined that linux system
Target rank to be optimized is middle rank, when the span of the performance parameter associated with flow has minority, as do not existed less than 4
In the span of setting, it is determined that linux system target rank to be optimized is to be rudimentary, it is necessary to explanation, 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, corresponding to monitoring parameters are more performance parameters when linux system is currently run
During span, 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:Span determines that linux system is currently run first according to corresponding to performance parameter
When more performance parameters respectively corresponding to refer to rank, and determine each performance parameter number with reference to corresponding under rank,
Then it is defined as the linux system target rank to be optimized for being with reference to rank by 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 CPU utilization rate is advanced with reference to rank corresponding to more than 80%, is with reference to rank corresponding to 60%-70%
Middle rank, reference rank is rudimentary corresponding to less than 60%, and memory headroom occupancy is bigger, and statistics is likely to occur caching anxiety and asked
Topic, it is determined that it is advanced that memory headroom, which occupies over reference rank corresponding to 70%, in being with reference to rank corresponding to 50%-70%
Level, reference rank is rudimentary corresponding to less than 50%, can be voluntarily for the reference rank of different performance parameter in linux system
Setting, further by monitoring the performance parameter of linux system in real time, and count and refer to rank corresponding to different performance parameter,
If keeper confirms that it is that advanced performance parameter is most that rank is referred in linux system, illustrates Linux according to statistical result
The probability that may be broken down in system operation is higher, determines that the linux system target rank to be optimized for being is high
Level, it is necessary to perform comprehensive optimizing performance parameters to linux system according to the ardware feature of system and advanced performance parameter,
Make it that linux system reaches own hardware and the maximum of software balances, if keeper confirms Linux systems according to statistical result
It is most for the performance parameter of middle rank with reference to rank in system, then illustrate to break down in linux system running, exist
The parameter area of part item number performance in normal range (NR), determine linux system it is to be optimized be target rank be middle rank, it is necessary to
The optimizing performance parameters of middle rank, to cause linux system reaches the maximum of own hardware and software to balance, if keeper 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 running
The probability that may be broken down is relatively low, determines that the linux system target rank to be optimized for being is rudimentary, it is necessary to rudimentary property
Energy parameter optimizes, make it that linux system reaches own hardware and the maximum of software balances.
It should be noted that above-mentioned goal gradient to be optimized generally represents to need the performance parameter quantity optimized to be advanced
More, the embodiment of the present invention is not especially limited to the quantity of performance parameter, is preferably provided with quantity and is accounted for linux system all properties
More than the 80% of number of parameters, comprehensive optimizing performance parameters can include but is not limited to nonessential to linux system reduction
Application start self-starting, close GUI, server be in the 3rd runlevel in operation, changes the optimizations such as kernel parameter and operates,
So that kernel parameter meets current hardware resource, memory parameters and document system optimization to meeting Linux to greatest extent
The running status of system.
202nd, corresponding optimization file is respectively configured in the different target rank for the linux system.
Because the performance parameter that the linux system needs of different target grade optimize is different, it is therefore desirable to for difference
Optimization file corresponding to the linux system configuration of goal gradient, and will be placed in file is optimized mutually in requisition for the performance of optimization
Parameter.
203rd, the other optimization file of each optimization level of the linux system is stored in into default file to concentrate.
It is managed for convenience to optimizing file corresponding to different target grade, it is 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.
204th, concentrate acquisition is corresponding with the target rank to optimize file from default file.
Concentrate to include due to default file and optimize file corresponding to different target grade, further it is determined that Linux systems
After the target rank to be optimized for being of uniting, concentrated from default file and optimize file corresponding to the corresponding optimisation strategy of acquisition.
For the embodiment of the present invention, the optimization file that in advance can be concentrated 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, it is determined that the optimisation strategy of linux system
Afterwards, file is optimized according to corresponding to being searched the tab indexes after classification, and then convenience file is searched.
205th, optimize file according to corresponding to the target rank and performance optimization is carried out to the linux system.
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 travels through all properties parameter in linux system, finds needs
The enhanced performance parameter of optimization, after the multinomial performance parameter for needing to optimize is found, by optimizing performance parameter in file
Span is adjusted to the multinomial performance parameter for needing to optimize in linux system, so as 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 travels through all properties parameter in linux system, finds needs
The intermediate performance parameter of optimization, after the intermediate performance parameter for needing to optimize is found, by optimizing performance parameter in file
Span is adjusted to the intermediate performance parameter for needing to optimize in linux system, so as 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 travels through all properties parameter in linux system, and finding needs
The rudimentary performance parameter to be optimized, after the rudimentary performance parameter for needing to optimize is found, by optimizing performance parameter in file
Span the rudimentary performance parameter for needing to optimize in linux system is adjusted, so as to realize the property to linux system
Can optimization.
It should be noted that the span of performance parameter involved in above-mentioned optimization file is to ensure
Performance parameter scope under linux system normal operation, certainly if higher demand being adapted to property tuning performance parameter
Span.
206th, the linux system after optimizing to performance is tested, and obtains optimal inspection result.
Linux system after optimizing for performance, can be by the performance parameter after test optimization, so as to verify that system is excellent
Change situation, if system operation still breaks down after optimization, illustrate that effect of optimization is undesirable, it is necessary to further optimize, such as
Fruit system running state is good, has reached effect of optimization.
The method of another linux system performance optimization provided in an embodiment of the present invention, the monitoring in linux system
Parameter determines the linux system target rank to be optimized for being, without after system operation breaks down 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 optimize file according to corresponding to target rank and linux system accordingly optimized, and in the prior art
The linux system performance optimal way that optimization project to had an impact system operation optimizes is compared, the embodiment of the present invention
By to linux system is divided into multiple target ranks to be optimized, and optimization file is pre-configured with for different target rank, when
Receive and carry out the performance of respective objects rank after the optimization request of linux system to linux system and 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 need not carry out multinomial optimization, so as to reduce system failure time, facilitate user 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 the advanced optimization of use for needing degree of optimization higher, for the rudimentary optimization of use for needing degree of optimization relatively low, Neng Gouhe
Reason reaches rational configuration using resource is optimized so as to reach the software and hardware of linux system.
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 device embodiment is corresponding with preceding method embodiment, and for ease of reading, the present apparatus is not real to preceding method
The detail content applied in example is repeated one by one, it should be understood that the device in the present embodiment, which can correspond to, realizes preceding method
Full content in embodiment, as shown in figure 3, described device includes:
Determining unit 31, after can be used for receiving the optimization request of linux system, according in the linux system
Monitoring parameters determine the linux system target rank to be optimized for being;
Acquiring unit 32, it can be used for concentrating acquisition is corresponding with the target rank to optimize file from default file, its
In, the default file concentrates optimization file corresponding to multiple target ranks comprising the linux system;
Optimize unit 33, can be used for optimizing according to corresponding to the target rank file to linux system progress
Performance optimizes.
A kind of device of linux system performance optimization provided in an embodiment of the present invention, the monitoring ginseng in linux system
Number determine the linux system target rank to be optimized for being, without after system operation breaks down 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 optimize file according to corresponding to target rank and linux system is accordingly optimized, it is and 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 led to
Cross to linux system is divided into multiple target ranks to be optimized, and optimization file is pre-configured with for different target rank, when connecing
Receive and carry out the performance of respective objects rank after the optimization request of linux system to linux system and 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 need not carry out multinomial optimization, so as to reduce system failure time, facilitate user to carry out system operatio.
Further, as shown in figure 4, described device also includes:
Corresponding optimization text is respectively configured in dispensing unit 34, the different target rank that can be used for for the linux system
Part, wherein, the optimization file includes the value model of the various performance parameters of the linux system under corresponding optimization rank
Enclose;
Memory cell 35, it can be used for the other optimization file of each optimization level of the linux system being stored in default file
Concentrate;
Test cell 36, it can be used for the linux system after optimizing to performance and test, obtain optimal inspection result.
Further, the monitoring parameters are predicted value of the setup parameter in the range of the object time:
The determining unit 31, it specifically can be used for prediction and set when the setup parameter reaches the predicted value with described
Determine the span of the performance parameter of parameter association;
The determining unit 31, the performance parameter that specifically can be also used for associating with the setup parameter according to take
It is worth scope, determines the linux system target rank to be optimized for being.
Further, the monitoring parameters are to be taken corresponding to more performance parameters when the linux system is currently run
It is worth scope,
The determining unit 31, specifically it can be used for described in the span determination according to corresponding to the performance parameter
Rank is referred to corresponding to more performance parameters difference when linux system is currently run;
The determining unit 31, it specifically can be also used for determining each to refer to performance parameter number corresponding under rank;
The determining unit 31, specifically it can be also used for corresponding performance parameter is the largest number of with reference to rank determination
For the linux system target rank to be optimized for being;
The device of another linux system performance optimization provided in an embodiment of the present invention, the monitoring in linux system
Parameter determines the linux system target rank to be optimized for being, without after system operation breaks down 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 optimize file according to corresponding to target rank and linux system accordingly optimized, and in the prior art
The linux system performance optimal way that optimization project to had an impact system operation optimizes is compared, the embodiment of the present invention
By to linux system is divided into multiple target ranks to be optimized, and optimization file is pre-configured with for different target rank, when
Receive and carry out the performance of respective objects rank after the optimization request of linux system to linux system and 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 need not carry out multinomial optimization, so as to reduce system failure time, facilitate user 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 the advanced optimization of use for needing degree of optimization higher, for the rudimentary optimization of use for needing degree of optimization relatively low, Neng Gouhe
Reason reaches rational configuration using resource is optimized so as to reach the software and hardware of linux system.
The device of the linux system performance optimization includes processor and memory, above-mentioned determining unit 31, acquiring unit
32 and optimization unit 33 grade as program unit storage in memory, by computing device storage in memory above-mentioned
Program unit realizes corresponding function.
Kernel is included in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, manpower is saved by adjusting kernel parameter, to reduce system business fault time, and system resource is obtained
Make full use of.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
Present invention also provides a kind of computer program product, when being performed on data processing equipment, is 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;Concentrate and obtain and the target level from default file
Not corresponding optimization file, wherein, the default file is concentrated excellent corresponding to multiple target ranks comprising the linux system
Change file;Optimize file according to corresponding to the target rank and performance optimization is carried out to the linux system.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the form such as Nonvolatile memory, such as read-only storage (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 instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
Embodiments herein is these are only, is not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution,
Improve etc., it should be included within the scope of claims hereof.