CN107436812A - 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
CN107436812A
CN107436812A CN201710631502.8A CN201710631502A CN107436812A CN 107436812 A CN107436812 A CN 107436812A CN 201710631502 A CN201710631502 A CN 201710631502A CN 107436812 A CN107436812 A CN 107436812A
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.)
Granted
Application number
CN201710631502.8A
Other languages
Chinese (zh)
Other versions
CN107436812B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method and device of linux system performance optimization, it is related to field of computer technology, main purpose is to reduce system business fault time, and system resource is fully used.Methods described includes:After the optimization request for receiving linux system, the monitoring parameters in the linux system determine 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 concentrates optimization 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.Present invention is mainly used for the optimization 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 technology
Linux system is a set of class Unix operating systems, multi-user, multitask specially based on POSIX and UNIX, branch 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, a lot Software company releases the application software under various Linux server systems and Linux one after another.
At present, Linux can make rival claims as an equal with various traditional commercial operating systems, also occupies in server market Sizable share, conventional Linux server system can be divided into many types, such as Web server, mail server, ftp Server, file server and database server etc..But as the Linux of the general-purpose operating system, because it is real-time The technology barrier of application field, how server performance is farthest played in the case where hardware condition has been fixed, be One emphasis of the field concern of Linux system server performance optimization at present.
The optimal way of existing linux system is united generally before application system is reached the standard grade to all application systems One optimization, when application system goes wrong in the process of running, just find that some projects of system do not optimize, and lead There is short time or prolonged traffic failure in cause system, and then all projects that can influence system performance can be carried out Optimization, including each side 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, cause linux system performance to optimize less efficient.
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.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.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 diagram 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.
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.

Claims (10)

  1. A kind of 1. method of linux system performance optimization, it is characterised in that including:
    After the optimization request for receiving linux system, the monitoring parameters in the linux system determine the Linux systems Unite the 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 and included Optimization file corresponding to multiple target ranks of the linux system;
    Optimize file according to corresponding to the target rank and performance optimization is carried out to the linux system.
  2. 2. according to the method for claim 1, it is characterised in that the monitoring parameters are setup parameter in object time scope Interior predicted value;
    The monitoring parameters in the linux system determine the linux system target rank to be optimized for being, bag Include:
    Predict the span of the performance parameter associated when the setup parameter reaches the predicted value with the setup parameter;
    According to the span of the performance parameter associated with the setup parameter, determining that the linux system is to be optimized is Target rank.
  3. 3. according to the method for claim 1, it is characterised in that the monitoring parameters are that the linux system is currently run When more performance parameters corresponding to span;
    It is described to determine the linux system target rank to be optimized for being according to monitoring parameters in the linux system, including:
    More performance parameters point when determining that the linux system is currently run according to span corresponding to the performance parameter It is not corresponding to refer to rank;
    It is determined that each refer to performance parameter number corresponding under rank;
    It is defined as the linux system target level to be optimized for being with reference to rank by corresponding performance parameter is the largest number of Not.
  4. 4. according to the method described in claim any one of 1-3, it is characterised in that obtained and the mesh being concentrated from default file Before marking optimization file corresponding to rank, methods described also includes:
    Corresponding optimization file is respectively configured for the different target rank of the linux system, wherein, wrapped in 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.
  5. 5. according to the method for claim 4, it is characterised in that methods described also includes:
    Linux system after optimizing to performance is tested, and obtains optimal inspection result.
  6. A kind of 6. device of linux system performance optimization, it is characterised in that including:
    Determining unit, after the optimization request for receiving linux system, the monitoring parameters in the linux system are true The fixed 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 Optimization file corresponding to multiple target ranks comprising the linux system in file set;
    Optimize unit, performance optimization is carried out to the linux system for optimizing file according to corresponding to the target rank.
  7. 7. device according to claim 6, it is characterised in that the monitoring parameters are setup parameter in object time scope Interior predicted value:
    The determining unit, associated specifically for predicting when the setup parameter reaches the predicted value with the setup parameter Performance parameter span;
    The determining unit, the span of performance parameter associated according to the setup parameter is specifically additionally operable to, really The fixed linux system target rank to be optimized for being.
  8. 8. device according to claim 6, it is characterised in that the monitoring parameters are that the linux system is currently run When more performance parameters corresponding to span;
    The determining unit, determine that the linux system is current specifically for the span according to corresponding to the performance parameter Rank is referred to corresponding to more performance parameters difference during 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.
  9. 9. according to the device any one of claim 6-8, it is characterised in that described device also includes:
    Dispensing unit, for corresponding optimization file to be respectively configured for the different target rank of the linux system, wherein, institute Stating 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.
  10. 10. device according to claim 9, it is characterised in that described device also includes:
    Test cell, tested for the linux system after optimizing to performance, obtain 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 true CN107436812A (en) 2017-12-05
CN107436812B 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)

Cited By (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
CN111694713A (en) * 2020-06-15 2020-09-22 Oppo(重庆)智能科技有限公司 Application operation optimization method and device and computer readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091657A1 (en) * 2002-01-24 2005-04-28 Siemens Aktiengesellschaft Fuzzy logic based intelligent load control for multimedia and telecommunication systems
CN101176073A (en) * 2005-06-09 2008-05-07 国际商业机器公司 Adjusting configuration parameters for a server when a different server fails
CN103699413A (en) * 2013-12-24 2014-04-02 北京奇虎科技有限公司 Method and system for optimizing game operating environment, client and server
CN104346221A (en) * 2013-08-02 2015-02-11 北京百度网讯科技有限公司 Method and device for grading and dispatching management of server hardware equipment and server
CN104461742A (en) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 Method and device for optimizing computing equipment
CN104503840A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Method and device for optimizing terminal resources
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
CN106648472A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Disk performance optimizing method based on linux operation system and system thereof
CN106649070A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Rapid optimization method and system for operating performance of Linux system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091657A1 (en) * 2002-01-24 2005-04-28 Siemens Aktiengesellschaft Fuzzy logic based intelligent load control for multimedia and telecommunication systems
CN101176073A (en) * 2005-06-09 2008-05-07 国际商业机器公司 Adjusting configuration parameters for a server when a different server fails
CN104346221A (en) * 2013-08-02 2015-02-11 北京百度网讯科技有限公司 Method and device for grading and dispatching management of server hardware equipment and server
CN103699413A (en) * 2013-12-24 2014-04-02 北京奇虎科技有限公司 Method and system for optimizing game operating environment, client and server
CN104461742A (en) * 2014-12-15 2015-03-25 北京奇虎科技有限公司 Method and device for optimizing computing equipment
CN104503840A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Method and device for optimizing terminal resources
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
CN106648472A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Disk performance optimizing method based on linux operation system and system thereof
CN106649070A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Rapid optimization method and system for operating performance of Linux system

Cited By (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
CN111694713A (en) * 2020-06-15 2020-09-22 Oppo(重庆)智能科技有限公司 Application operation optimization method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN107436812B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
US20170329643A1 (en) Distributed node intra-group task scheduling method and system
CN107592219A (en) Service degradation processing method and processing device
CN106156115B (en) A kind of resource regulating method and device
CN106201722A (en) The load regulation method of server and system
CN109995677A (en) Resource allocation methods, device and storage medium
CN106130960B (en) Judgement system, load dispatching method and the device of steal-number behavior
CN106406987A (en) Task execution method and apparatus in cluster
CN107968810A (en) A kind of resource regulating method of server cluster, device and system
CN103595805A (en) Data placement method based on distributed cluster
CN110442428B (en) Coordination method of Docker container
CN106815254A (en) A kind of data processing method and device
CN110019298B (en) Data processing method and device
CN106202092A (en) The method and system that data process
CN106713396A (en) Server scheduling method and system
CN108270805A (en) For the resource allocation methods and device of data processing
CN107436812A (en) A kind of method and device of linux system performance optimization
CN110221914B (en) File processing method and device
CN115941696A (en) Heterogeneous Big Data Distributed Cluster Storage Optimization Method
CN117033004B (en) Load balancing method and device, electronic equipment and storage medium
CN104281587B (en) A kind of method and device for establishing connection
CN116719787A (en) Method and device for uploading equipment logs in track system, medium and electronic equipment
CN106484879B (en) A kind of polymerization of the Map end data based on MapReduce
CN115617553A (en) Fusing degradation protection method and device for database and electronic equipment
CN109558222A (en) Batch service process monitoring method, device, computer and readable storage medium storing program for executing
CN110928860B (en) Data migration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
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

PC01 Cancellation 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

CP01 Change in the name or title of a patent holder
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.