Optimization method and device for configuration parameters of operating system, equipment and medium

The relative weights of the operating system kernel environment parameters are determined through hierarchical analysis method, and the original configuration parameters are optimized based on these weights, which solves the problem of operating system configuration parameters optimization, improves the stability and performance of the system, and improves the user experience.

CN119829120APending Publication Date: 2025-04-15GUANGZHOU KETENG INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411905991.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

How to reasonably configure the configuration parameters of the operating system to improve the stability, performance and startup time of the system, and thus improve the user experience.

Method used

The kernel environment parameters of the to-process system are analyzed through the hierarchical analysis method, the relative weights of each kernel environment parameter are determined, the original configuration parameters are determined based on the operation data, and the original configuration parameters are optimized based on the relative weights to obtain the optimized configuration parameters.

Benefits of technology

Through reasonable configuration parameter optimization, the stability and performance of the operating system are improved, the startup time is shortened, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829120A_ABST
    Figure CN119829120A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an optimization method and device for configuration parameters of an operating system, equipment and a medium, and relates to the technical field of configuration parameter optimization. The method comprises the steps that kernel environment parameters of a to-be-processed system are analyzed through an analytic hierarchy process, and the relative weight of each kernel environment parameter is obtained; according to the operation data of the kernel environment parameters of the to-be-processed system, original configuration parameters corresponding to the kernel environment parameters are determined; and optimizing the original configuration parameter based on the relative weight of each kernel environment parameter to obtain an optimized configuration parameter. According to the technical scheme, the relatively reasonable relative weight of each kernel environment parameter is determined through the analytic hierarchy process, then the original configuration parameter is optimized based on the relative weight to obtain the optimized configuration parameter, and after the to-be-processed system is configured based on the optimized configuration parameter, the use experience of a user on an operating system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of configuration parameter optimization, and in particular to a method, device, equipment and medium for optimizing configuration parameters of an operating system. Background Art

[0002] With the rapid development of science and technology, the use of electronic devices is becoming more and more popular. Since the devices and services run on the operating system, the system configuration parameters have an important impact on the operating system, such as affecting the stability, performance and startup time of the operating system. How to reasonably configure the system configuration parameters is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present invention provides a method, device, equipment and medium for optimizing configuration parameters of an operating system, which can reasonably optimize control parameters and improve user experience of the operating system.

[0004] According to one aspect of the present invention, a method for optimizing configuration parameters of an operating system is provided, the method comprising:

[0005] The kernel environment parameters of the processing system are analyzed by using the hierarchical analysis method to obtain the relative weight of each kernel environment parameter;

[0006] Determine original configuration parameters corresponding to the kernel environment parameters according to the operating data of the kernel environment parameters of the system to be processed;

[0007] The original configuration parameters are optimized based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters.

[0008] According to another aspect of the present invention, there is provided a device for optimizing configuration parameters of an operating system, comprising:

[0009] The relative weight determination module is used to analyze the kernel environment parameters of the processing system through the hierarchical analysis method to obtain the relative weight of each kernel environment parameter;

[0010] The original configuration parameter determination module is used to determine the original configuration parameters corresponding to the kernel environment parameters according to the operation data of the kernel environment parameters of the system to be processed;

[0011] The configuration parameter optimization module is used to optimize the original configuration parameters based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters.

[0012] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for optimizing the configuration parameters of the operating system described in any embodiment of the present invention.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for optimizing the configuration parameters of the operating system described in any embodiment of the present invention when executed.

[0017] The technical solution of the embodiment of the present application includes: analyzing the kernel environment parameters of the system to be processed by the hierarchical analysis method to obtain the relative weights of each kernel environment parameter; determining the original configuration parameters corresponding to the kernel environment parameters according to the operation data of the kernel environment parameters of the system to be processed; optimizing the original configuration parameters based on the relative weights of each kernel environment parameter to obtain optimized configuration parameters. The technical solution determines the more reasonable relative weights of each kernel environment parameter by the hierarchical analysis method, and then optimizes the original configuration parameters based on the relative weights to obtain optimized configuration parameters. After configuring the system to be processed based on the optimized configuration parameters, the user experience of the operating system is improved.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flowchart of a method for optimizing configuration parameters of an operating system provided according to Embodiment 1 of the present application;

[0021] Figure 2 is a flow chart of a method for optimizing configuration parameters of an operating system provided in accordance with Embodiment 2 of the present application;

[0022] Figure 3It is a structural diagram of an operating system configuration parameter optimization device provided according to Embodiment 3 of the present application;

[0023] Figure 4 It is a structural diagram of an electronic device that implements a method for optimizing configuration parameters of an operating system according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", "target", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] Embodiment 1

[0027] Figure 1 A flowchart of a method for optimizing the configuration parameters of an operating system is provided for the first embodiment of the present application. The embodiment of the present application is applicable to the case where the configuration parameters of an operating system are adjusted. The method can be executed by an optimization device for the configuration parameters of an operating system. The optimization device for the configuration parameters of an operating system can be implemented in the form of hardware and / or software. The optimization device for the configuration parameters of an operating system can be configured in an electronic device with data processing capabilities. Figure 1 As shown, the method includes:

[0028] S110, analyzing the kernel environment parameters of the system to be processed by using the hierarchical analysis method to obtain the relative weight of each kernel environment parameter.

[0029] Among them, the system to be processed can be the operating system of various signal acquisition, data processing, electrical control and other equipment in the power grid, such as the electric Hong system. Kernel environment parameters refer to a series of configurable variables or factors that affect the operating state and behavior of the operating system kernel. In one case, the kernel environment parameters are the number of root file systems, the number of root file system types, and the console output. In another case, the kernel environment parameters are the log level, the number of historical logs, and the log output. In another case, the kernel environment parameters are the initialization data volume, the initialization process volume, and the initialization IP address size. The relative weight reflects the relative importance between the kernel environment parameters.

[0030] Specifically, the relative importance values ​​of each kernel environment parameter of the system to be processed are obtained in advance from industry personnel, experts, and scholars, and then the above relative importance values ​​are processed based on the hierarchical analysis method, and a judgment matrix is ​​constructed to obtain the relative weight of each kernel environment parameter.

[0031] S120, determining original configuration parameters corresponding to the kernel environment parameters according to the operating data of the kernel environment parameters of the system to be processed.

[0032] The operating data of the kernel environment parameters of the system to be processed may be obtained during the startup and operation of the system to be processed, and the operating data of the kernel environment parameters of the system to be processed may be the number of running root file systems, the number of types of root file systems, and the like.

[0033] Specifically, by running data acquisition commands or tools, the operating data of relevant kernel environment parameters is obtained during the startup and operation of the system to be processed, and then the system status reflected by the operating data is analyzed, key indicators closely related to specific kernel environment parameters are determined, and then the original configuration parameters are inferred based on the key indicators.

[0034] S130, optimizing the original configuration parameters based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters.

[0035] Specifically, the relative weights of each kernel environment parameter reflect the reasonable distribution of different kernel environment parameters. If it is determined that the distribution of the original configuration parameters corresponds to the relative weights of each kernel environment parameter, the original configuration parameters are in a reasonable state; otherwise, the original configuration parameters are optimized based on the relative weights of each kernel environment parameter to obtain optimized configuration parameters, so as to configure the system to be processed based on the optimized configuration parameters.

[0036] The technical solution of the embodiment of the present application includes: analyzing the kernel environment parameters of the system to be processed by the hierarchical analysis method to obtain the relative weights of each kernel environment parameter; determining the original configuration parameters corresponding to the kernel environment parameters according to the operation data of the kernel environment parameters of the system to be processed; optimizing the original configuration parameters based on the relative weights of each kernel environment parameter to obtain optimized configuration parameters. The technical solution determines the more reasonable relative weights of each kernel environment parameter by the hierarchical analysis method, and then optimizes the original configuration parameters based on the relative weights to obtain optimized configuration parameters. After configuring the system to be processed based on the optimized configuration parameters, the user experience of the operating system is improved.

[0037] Embodiment 2

[0038] Figure 2 This is a flow chart of a method for optimizing the configuration parameters of an operating system provided in Embodiment 2 of the present application. The embodiment of the present application is optimized based on the above embodiment.

[0039] like Figure 2 As shown, the method of the embodiment of the present application specifically includes the following steps:

[0040] S210, obtaining the relative importance value corresponding to each kernel environment parameter.

[0041] The relative importance value reflects the importance of a kernel environment parameter relative to other kernel environment parameters.

[0042] Among them, the kernel environment parameters are: kernel startup environment parameters, kernel log environment parameters or kernel initialization environment parameters; the kernel startup environment parameters include: the number of root file systems, the number of root file system types and the console output volume; the kernel log environment parameters include: log level, the number of historical logs and the log output volume; the kernel initialization environment parameters include: the initialization data volume, the initialization process volume and the initialization IP address size.

[0043] In the embodiment of the present application, the relative importance value reflects the relative importance of each kernel environment parameter. For example, the kernel environment parameters are the number of root file systems, the number of root file system types, and the amount of console output. If the number of root file systems is considered to be slightly more important than the number of root file system types, it is recorded as 3; the number of root file systems is significantly more important than the amount of console output, it is recorded as 5; the amount of root file system types is slightly more important than the amount of console output, it is recorded as 3.

[0044] S220: construct a judgment matrix by using the relative importance values ​​as matrix elements.

[0045] Exemplarily, taking the kernel environment parameters as the number of root file systems, the number of root file system types, and the amount of console output as an example, the judgment matrix is ​​as follows:

[0046]

[0047] Among them, the first row and the first column are the relative importance values ​​of the number of root file systems relative to the number of root file systems, the second row and the second column are the relative importance values ​​of the number of root file systems relative to the amount of root file system types, the first row and the third column are the relative importance values ​​of the number of root file systems relative to the amount of console output, the second row and the first column are the relative importance values ​​of the amount of root file system types relative to the number of root file systems, the second row and the second column are the relative importance values ​​of the amount of root file system types relative to the amount of root file system types, the second row and the third column are the relative importance values ​​of the amount of root file system types relative to the amount of console output, the third row and the first column are the relative importance values ​​of the console output relative to the number of root file systems, the third row and the second column are the relative importance values ​​of the console output relative to the amount of root file system types, and the third row and the third column are the relative importance values ​​of the console output relative to the console output.

[0048] Exemplarily, the specific judgment matrix can be:

[0049] For example, taking the kernel environment parameters as log level, number of historical logs, and log output volume as an example, the judgment matrix is ​​as follows:

[0050]

[0051] Among them, b1, b2, ... b9 are positive numbers, the first row and the first column are the relative importance of the log level to the log level, the first row and the second column are the relative importance of the log level to the number of historical logs, the first row and the third column are the relative importance of the log level to the log output volume, the second row and the first column are the relative importance of the number of historical logs to the log level, the second row and the second column are the relative importance of the number of historical logs to the number of historical logs, the second row and the third column are the relative importance of the number of historical logs to the log output volume, the third row and the first column are the relative importance of the log output volume to the log level, the third row and the second column are the relative importance of the log output volume to the number of historical logs, and the third row and the third column are the relative importance of the log output volume to the log output volume.

[0052] Exemplarily, taking the kernel environment parameters as the initialization data amount, the initialization process amount, and the initialization IP address size as an example, the judgment matrix is ​​as follows:

[0053]

[0054] Among them, c1, c2, ... c9 are positive numbers, the first row and the first column are the relative importance value of the initialization data amount relative to the initialization data amount, the first row and the second column are the relative importance value of the initialization data amount relative to the initialization process amount, the first row and the third column are the relative importance value of the initialization data amount relative to the initialization IP address size, the second row and the first column are the relative importance value of the initialization process amount relative to the initialization data amount, the second row and the second column are the relative importance value of the initialization process amount relative to the initialization process amount, the second row and the third column are the relative importance value of the initialization process amount relative to the initialization IP address size, the third row and the first column are the relative importance value of the initialization IP address size relative to the initialization data amount, the third row and the second column are the relative importance value of the initialization IP address size relative to the initialization process amount, and the third row and the third column are the relative importance value of the initialization IP address size relative to the initialization IP address size.

[0055] S230, determining the relative weight of each kernel environment parameter according to the judgment matrix.

[0056] In an embodiment of the present application, optionally, the relative weight of each kernel environment parameter is determined according to a judgment matrix, including: accumulating and summing the elements in the judgment matrix to obtain a total element value; and taking the ratio of the relative importance value corresponding to the target kernel environment parameter to the total element value as the relative weight of the target kernel environment parameter.

[0057] Exemplarily, taking the kernel environment parameters as the number of root file systems, the number of root file system types, and the amount of console output as an example, the relative weight of the number of root file systems is recorded as Q1, the relative weight of the number of root file system types is recorded as Q2, and the relative weight of the console output is recorded as Q3;

[0058]

[0059] is the total element value. a1 is the first row and first column in the judgment matrix, a2 is the first row and second column in the judgment matrix...

[0060] For example, taking the kernel environment parameters as log level, number of historical logs and log output volume as an example, the relative weight of the log level is recorded as Q4, the relative weight of the number of historical logs is recorded as Q5, and the relative weight of the log output volume is recorded as Q6;

[0061]

[0062] in, is the total element value, b1 is the first row and first column in the judgment matrix, b2 is the first row and second column in the judgment matrix...

[0063] Exemplarily, taking the kernel environment parameters as the initialization data amount, the initialization process amount, and the initialization IP address size as an example, the relative weight of the initialization data amount is recorded as Q7, the relative weight of the initialization process amount is recorded as Q8, and the relative weight of the initialization IP address size is recorded as Q9;

[0064]

[0065] in, is the total element value, c1 is the first row and first column in the judgment matrix, c2 is the first row and second column in the judgment matrix...

[0066] This scheme is set up in this way, so that the relative weight of each kernel environment parameter can be accurately calculated.

[0067] S240, determining original configuration parameters corresponding to the kernel environment parameters according to the operating data of the kernel environment parameters of the system to be processed.

[0068] In an embodiment of the present application, optionally, original configuration parameters corresponding to the kernel environment parameters are determined based on the running data of the kernel environment parameters of the system to be processed, including: determining target configuration parameters corresponding to the running data of the kernel environment parameters of the system to be processed based on the correspondence between the configuration parameters and the running data of the kernel environment parameters; and determining the target configuration parameters as the original configuration parameters.

[0069] Specifically, the correspondence between the configuration parameters and the running data of the kernel environment parameters is pre-calibrated. For example, if the number of root file systems is within the A interval, the corresponding configuration parameter is 1; if the number of root file systems is within the B interval, the corresponding configuration parameter is 2. After obtaining the running data of the kernel environment parameters of the system to be processed, the corresponding target configuration parameters are determined, and the target configuration parameters are determined as the original configuration parameters.

[0070] Exemplarily, in an achievable solution, the original configuration parameter of the number of root file systems is set to R1, the standard value of the number of root file system types is set, the closer the number of root file system types is to the standard value of the number of root file system types, the higher the original configuration parameter of the number of root file system types is, the original configuration parameter of the number of root file system types is set to R2, the higher the number of console outputs is, the higher the original configuration parameter of the number of console outputs is, the original configuration parameter of the number of console outputs is set to R3;

[0071] Set the original configuration parameter of log level to R4, the original configuration parameter of historical log quantity to R5, and the original configuration parameter of log output volume to R6;

[0072] According to the historical evaluation criteria, the original configuration parameters of the initialization data volume, the initialization process volume and the initialization IP address size are obtained, and the original configuration parameter of the initialization data volume is set to R7, the original configuration parameter of the initialization process volume is set to R8, and the original configuration parameter of the initialization IP address size is set to R9.

[0073] S250, calculating the product of the relative weight of each kernel environment parameter and the original configuration parameter to obtain a product result.

[0074] Exemplarily, taking the kernel environment parameters as the number of root file systems, the number of root file system types, and the amount of console output as an example, G1 = Q1 × R1; G2 = Q2 × R2; G3 = Q3 × R3;

[0075] Among them, G1 is the product result corresponding to the number of root file systems, G2 is the product result corresponding to the number of root file system types, and G3 is the product result corresponding to the console output quantity.

[0076] S260, summing up the product results corresponding to each kernel environment parameter to obtain a total state value.

[0077] Exemplarily, the total state value is determined by the following formula:

[0078]

[0079] Among them, G 总 is the total status value.

[0080] S270, determining the target state level of the total state value.

[0081] S280, optimizing the original configuration parameters by using the state adjustment coefficient corresponding to the target state level to obtain optimized configuration parameters.

[0082] In an embodiment of the present application, optionally, the state level includes a first state level, a second state level and a third state level; the state adjustment coefficient corresponding to the first state level is greater than the state adjustment coefficient corresponding to the second state level, and the state adjustment coefficient corresponding to the second state level is greater than the state adjustment coefficient corresponding to the third state level; accordingly, determining the target state level where the total state value is located includes: if the total state value is less than or equal to a first threshold, determining that the target state level is the first state level; if the total state value is greater than the first threshold and less than the second threshold, determining that the target state level is the second state level; if the total state value is less than the third threshold, determining that the target state level is the third state level; accordingly, optimizing the original configuration parameters by the state adjustment coefficient corresponding to the target state level to obtain the optimized configuration parameters includes: determining the product of the state adjustment coefficient corresponding to the target state level and the original configuration parameters as the optimized configuration parameters.

[0083] Exemplarily, the state level includes a first state level, a second state level, and a third state level; each state level corresponds to an adjustment coefficient, the first state level is the situation where the total state value is not in the state interval and is lower than the state interval, the second state level corresponds to the situation where the total state value is in the state interval, and the third state level corresponds to the situation where the total state value is higher than the state interval. Accordingly, determining the target state level where the total state value is located includes: determining the minimum value of the state interval as the first threshold value, determining the maximum value of the state interval as the second threshold value, if the total state value is less than or equal to the first threshold value, determining the target state level to be the first state level; if the total state value is greater than the first threshold value and less than the second threshold value, determining the target state level to be the second state level; if the total state value is less than the third threshold value, determining the target state level to be the third state level.

[0084] Further, after determining the state adjustment coefficient corresponding to the target state level, the product of the state adjustment coefficient corresponding to the target state level and the original configuration parameter is determined as the optimized configuration parameter, so as to update and optimize the configuration parameters of the system to be processed based on the optimized configuration parameter.

[0085] The technical solution of the embodiment of the present application accurately determines the reasonable relative weights corresponding to each kernel environment parameter through the hierarchical analysis method, and then determines the total state value according to the product of the relative weights and the original configuration parameters. The total state value reflects the state level of the original configuration parameters, and then optimizes and adjusts the original configuration parameters based on the adjustment coefficients corresponding to the state level to obtain optimized configuration parameters. After the system to be processed is configured with the optimized configuration parameters, its system stability, performance, etc. are reasonably optimized, thereby improving the user experience.

[0086] Embodiment 3

[0087] Figure 3 This is a schematic diagram of the structure of an operating system configuration parameter optimization device provided in the third embodiment of the present application. The device can execute the operating system configuration parameter optimization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 3 As shown, the device comprises:

[0088] The relative weight determination module 310 is used to analyze the kernel environment parameters of the processing system by using the hierarchical analysis method to obtain the relative weight of each kernel environment parameter;

[0089] The original configuration parameter determination module 320 is used to determine the original configuration parameters corresponding to the kernel environment parameters according to the operation data of the kernel environment parameters of the system to be processed;

[0090] The configuration parameter optimization module 330 is used to optimize the original configuration parameters based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters.

[0091] The technical solution of the embodiment of the present application includes: a relative weight determination module 310, which is used to analyze the kernel environment parameters of the system to be processed by the hierarchical analysis method to obtain the relative weights of each kernel environment parameter; an original configuration parameter determination module 320, which is used to determine the original configuration parameters corresponding to the kernel environment parameters according to the operation data of the kernel environment parameters of the system to be processed; and a configuration parameter optimization module 330, which is used to optimize the original configuration parameters based on the relative weights of each kernel environment parameter to obtain optimized configuration parameters. The technical solution determines the more reasonable relative weights of each kernel environment parameter by the hierarchical analysis method, and then optimizes the original configuration parameters based on the relative weights to obtain optimized configuration parameters. After the system to be processed is configured based on the optimized configuration parameters, the user's experience of using the operating system is improved.

[0092] In the embodiment of the present application, optionally, the relative weight determination module 310 includes:

[0093] A relative importance value acquisition unit, used to acquire a relative importance value corresponding to each kernel environment parameter; the relative importance value reflects the importance of a kernel environment parameter relative to other kernel environment parameters;

[0094] A judgment matrix construction unit, used to construct a judgment matrix by taking the relative importance values ​​as matrix elements;

[0095] The relative weight determination unit is used to determine the relative weight of each kernel environment parameter according to the judgment matrix.

[0096] In the embodiment of the present application, optionally, the relative weight determination unit includes:

[0097] The total element value calculation subunit is used to accumulate and sum the elements in the judgment matrix to obtain the total element value;

[0098] The relative weight determination subunit is used to take the ratio of the relative importance value corresponding to the target kernel environment parameter to the total element value as the relative weight of the target kernel environment parameter.

[0099] In the embodiment of the present application, optionally, the configuration parameter optimization module 330 includes:

[0100] A product calculation unit, used for calculating the product of the relative weight of each kernel environment parameter and the original configuration parameter to obtain a product result;

[0101] A total state value determination unit is used to sum the product results corresponding to each kernel environment parameter to obtain a total state value;

[0102] A target state level determination unit, used to determine the target state level of the total state value;

[0103] The optimized configuration parameter determination unit is used to optimize the original configuration parameters through the state adjustment coefficient corresponding to the target state level to obtain the optimized configuration parameters.

[0104] In the embodiment of the present application, optionally, the state level includes a first state level, a second state level and a third state level; the state adjustment coefficient corresponding to the first state level is greater than the state adjustment coefficient corresponding to the second state level, and the state adjustment coefficient corresponding to the second state level is greater than the state adjustment coefficient corresponding to the third state level;

[0105] Accordingly, the target state level determination unit is specifically used for:

[0106] If the total state value is less than or equal to the first threshold, determining the target state level to be the first state level;

[0107] If the total state value is greater than the first threshold value and less than the second threshold value, determining the target state level to be the second state level;

[0108] If the total state value is less than the third threshold, determining the target state level to be the third state level;

[0109] Accordingly, the optimization configuration parameter determination unit is specifically used for:

[0110] The product of the state adjustment coefficient corresponding to the target state level and the original configuration parameter is determined as the optimized configuration parameter.

[0111] In the embodiment of the present application, optionally, the original configuration parameter determination module 320 includes:

[0112] A target configuration parameter determination unit, configured to determine a target configuration parameter corresponding to the operating data of the kernel environment parameter of the system to be processed based on a correspondence between the configuration parameter and the operating data of the kernel environment parameter;

[0113] The original configuration parameter determination module is used to determine the target configuration parameters as the original configuration parameters.

[0114] In the embodiment of the present application, optionally, the kernel environment parameter is: a kernel startup environment parameter, a kernel log environment parameter or a kernel initialization environment parameter;

[0115] The kernel startup environment parameters include: the number of root file systems, the number of root file system types, and the amount of console output;

[0116] The kernel log environment parameters include: log level, number of historical logs, and log output volume;

[0117] The kernel initialization environment parameters include: initialization data volume, initialization process volume and initialization IP address size.

[0118] An operating system configuration parameter optimization device provided in an embodiment of the present application can execute an operating system configuration parameter optimization method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0119] Embodiment 4

[0120] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0121] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0122] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0123] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for optimizing the configuration parameters of an operating system.

[0124] In some embodiments, the method for optimizing the configuration parameters of the operating system may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for optimizing the configuration parameters of the operating system described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for optimizing the configuration parameters of the operating system in any other appropriate manner (e.g., by means of firmware).

[0125] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0126] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0127] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0129] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0130] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0131] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0132] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for optimizing configuration parameters of an operating system, characterized in that: include: The kernel environment parameters of the processing system are analyzed by using the hierarchical analysis method to obtain the relative weight of each kernel environment parameter; Determine original configuration parameters corresponding to the kernel environment parameters according to the operating data of the kernel environment parameters of the system to be processed; The original configuration parameters are optimized based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters.

2. The method according to claim 1, characterized in that: The kernel environment parameters of the processing system are analyzed by the hierarchical analysis method to obtain the relative weights of each kernel environment parameter, including: Obtaining a relative importance value corresponding to each kernel environment parameter; the relative importance value reflects the importance of a kernel environment parameter relative to other kernel environment parameters; Using the relative importance values ​​as matrix elements, constructing a judgment matrix; The relative weight of each kernel environment parameter is determined according to the judgment matrix.

3. The method according to claim 2, characterized in that The relative weights of various kernel environment parameters are determined based on the judgment matrix, including: Accumulate and sum the elements in the judgment matrix to obtain the total element value; The ratio of the relative importance value corresponding to the target kernel environment parameter to the total element value is taken as the relative weight of the target kernel environment parameter.

4. The method according to claim 1, characterized in that The original configuration parameters are optimized based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters, including: Calculate the product of the relative weight of each kernel environment parameter and the original configuration parameter to obtain the product result; Sum the product results corresponding to each kernel environment parameter to get the total state value; Determine the target state level where the total state value lies; The original configuration parameters are optimized by using the state adjustment coefficient corresponding to the target state level to obtain optimized configuration parameters.

5. The method according to claim 4, characterized in that The state level includes a first state level, a second state level and a third state level; the state adjustment coefficient corresponding to the first state level is greater than the state adjustment coefficient corresponding to the second state level, and the state adjustment coefficient corresponding to the second state level is greater than the state adjustment coefficient corresponding to the third state level; Accordingly, the target state level of the total state value is determined, including: If the total state value is less than or equal to the first threshold, determining the target state level to be the first state level; If the total state value is greater than the first threshold value and less than the second threshold value, determining the target state level to be the second state level; If the total state value is less than the third threshold, determining the target state level to be the third state level; Accordingly, the original configuration parameters are optimized by the state adjustment coefficient corresponding to the target state level to obtain the optimized configuration parameters, including: The product of the state adjustment coefficient corresponding to the target state level and the original configuration parameter is determined as the optimized configuration parameter.

6. The method according to claim 1, characterized in that Determining original configuration parameters corresponding to the kernel environment parameters according to the operating data of the kernel environment parameters of the system to be processed includes: Based on the correspondence between the configuration parameters and the operating data of the kernel environment parameters, determining the target configuration parameters corresponding to the operating data of the kernel environment parameters of the system to be processed; Identify the target configuration parameter as the original configuration parameter.

7. The method according to claim 1, characterized in that The kernel environment parameters are: kernel startup environment parameters, kernel log environment parameters or kernel initialization environment parameters; The kernel startup environment parameters include: the number of root file systems, the number of root file system types, and the amount of console output; The kernel log environment parameters include: log level, number of historical logs, and log output volume; The kernel initialization environment parameters include: initialization data volume, initialization process volume and initialization IP address size.

8. A device for optimizing configuration parameters of an operating system, characterized in that: include: The relative weight determination module is used to analyze the kernel environment parameters of the processing system through the hierarchical analysis method to obtain the relative weight of each kernel environment parameter; The original configuration parameter determination module is used to determine the original configuration parameters corresponding to the kernel environment parameters according to the operation data of the kernel environment parameters of the system to be processed; The configuration parameter optimization module is used to optimize the original configuration parameters based on the relative weights of the kernel environment parameters to obtain optimized configuration parameters.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for optimizing the configuration parameters of the operating system according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for optimizing the configuration parameters of the operating system according to any one of claims 1 to 7 when the processor executes the computer instructions.