Parameter tuning method and device of operating system and electronic equipment

By tuning the operating system with the trained target model, and directly outputting parameter configuration files and test commands, the problem of long-term tuning of operating system parameters is solved, tuning efficiency is improved, and faster performance optimization is achieved.

CN119248634AInactive Publication Date: 2025-01-03ALIBABA CLOUD COMPUTING CO LTD

Patent Information

Application Number
CN202411785314.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, operating system parameters tuning takes a long time, resulting in low tuning efficiency and no effective solution has yet.

Method used

The target model obtained by training the large language model through the operating system parameter corpus is used to obtain the user input requirements information, output parameter configuration files and test commands, and the operating system is tuned according to the configuration files and test commands, and feedback is carried out. Information adjustment parameters and configuration until the user needs are met.

Benefits of technology

This greatly reduces the parameter search range, reduces the steps of data acquisition and mathematical reasoning, improves the efficiency of operating system parameter tuning, and achieves faster performance optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248634A_ABST
    Figure CN119248634A_ABST
Patent Text Reader

Abstract

The invention discloses a parameter tuning method and device of an operating system and electronic equipment. The method relates to the technical field of artificial intelligence, and comprises the following steps: obtaining demand information input by a user; the demand information is input into a target model, a parameter configuration file and a test command are output, the target model is a model obtained by training a large language model through a parameter corpus of the operating system, and the parameter configuration file comprises parameter information for parameter configuration of the target operating system; the test command is used for testing the running performance of the target operating system; and according to the parameter configuration file and the test command, performing parameter tuning processing on the target operating system. Through the method and the device, the problem of relatively low tuning efficiency of the operating system caused by relatively long time consumption for parameter tuning of the operating system based on the Bayesian theory in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more specifically, to a method, device and electronic device for tuning parameters of an operating system. Background Art

[0002] With the rapid development of information technology, the operating system, as the core of the computer system, has become the key to ensuring stable system operation and improving service efficiency. Operating system parameter tuning is one of the important means to improve system performance. By adjusting the key parameters in the operating system, the utilization efficiency and response speed of system resources can be significantly improved.

[0003] However, there are many parameters in the operating system, and the parameter tuning process is complicated. The Bayesian theory-based tuning method in related technologies requires calculation and reasoning through a large amount of data to try multiple parameter combinations and evaluate their performance. This process is often time-consuming and requires dozens to hundreds of iterations, making it difficult to complete the tuning within a limited time.

[0004] Currently, no effective solution has been proposed to solve the problem that it takes a long time to tune the parameters of the operating system based on Bayesian theory in related technologies, resulting in low tuning efficiency of the operating system. Summary of the invention

[0005] The main purpose of the present application is to provide a method, device and electronic device for parameter tuning of an operating system, so as to solve the problem in the related art that parameter tuning takes a long time, resulting in low tuning efficiency of the operating system.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for parameter tuning of an operating system is provided. The method comprises: obtaining demand information input by a user, wherein the demand information includes information indicating parameter tuning of a target operating system; inputting the demand information into a target model, outputting a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; and performing parameter tuning processing on the target operating system according to the parameter configuration file and the test command.

[0007] Furthermore, the step of performing parameter tuning processing on the target operating system based on the parameter configuration file and the test command includes: filtering the parameter configuration file through the parameter setting module to obtain a filtered parameter configuration file; performing parameter configuration on the target operating system based on the filtered parameter configuration file; after detecting that the parameter configuration of the target operating system is completed, running the test command and obtaining the first operating performance information of the target operating system; determining the tuning parameters for the target operating system based on the first operating performance information of the target operating system.

[0008] Furthermore, before configuring parameters of the target operating system based on the filtered parameter configuration file, the method also includes: running a test command to obtain second operating performance information of the target operating system; determining parameter tuning of the target operating system based on the first operating performance information of the target operating system includes: determining tuning parameters for the target operating system based on the first operating performance information and the second operating performance information.

[0009] Furthermore, after determining the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information, the method also includes: inputting the first operating performance information and the second operating performance information into the target model, and outputting the analysis results of the target model; returning the analysis results to the user, and determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user.

[0010] Furthermore, after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user, the method also includes: if the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs, then ending the parameter tuning process of the target operating system; if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's needs, then returning the target operating system to the parameter configuration before configuration.

[0011] Furthermore, after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user, the method also includes: if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's needs, re-outputting the parameter configuration file and the test command according to the demand information through the target model, and performing parameter tuning processing on the target operating system based on the re-output parameter configuration file and the re-output test command.

[0012] Furthermore, after inputting the demand information into the target model and outputting the parameter configuration file and the test command, the method also includes: returning the information of the parameter configuration file to the user through the target model; upon receiving the user's confirmation information, executing the step of performing parameter tuning processing on the target operating system based on the parameter configuration file and the test command, wherein the confirmation information is used to indicate the approval of the parameter configuration information in the parameter configuration file.

[0013] Furthermore, the target model is obtained through the following steps: preprocessing the industry document of the operating system to obtain the preprocessed industry document of the operating system, wherein the industry document of the operating system at least includes: a parameter list of the operating system; obtaining a description document of the parameter setting module, wherein the description document at least includes: a parameter range of the operating system and a description format of the parameters; using the preprocessed industry document and the description document of the operating system as the parameter corpus of the operating system; training a large language model based on the parameter corpus of the operating system to obtain the target model.

[0014] Furthermore, the filtered parameter configuration file includes: at least one parameter field, at least one parameter name and at least one parameter value. Parameter configuration of the target operating system based on the filtered parameter configuration file includes: determining a corresponding execution unit based on at least one parameter field; and executing parameter configuration and parameter backup of the target operating system through the execution unit according to at least one parameter name and at least one parameter value.

[0015] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a method for parameter tuning of an operating system is provided, comprising: obtaining demand information uploaded by a client, wherein the demand information includes information indicating parameter tuning of a target operating system; inputting the demand information into a target model in a cloud server, and outputting a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model with the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the running performance of the target operating system; performing parameter tuning processing on the target operating system according to the parameter configuration file and the test command; and feeding back the processing results of the parameter tuning to the client.

[0016] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a parameter tuning device for an operating system is provided. The device includes: a first acquisition unit, used to acquire the demand information input by the user, wherein the demand information includes information indicating parameter tuning of the target operating system; a first input unit, used to input the demand information into the target model, and output a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through information extraction and integration, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; a first processing unit, used to perform parameter tuning processing on the target operating system according to the parameter configuration file and the test command.

[0017] Furthermore, the first processing unit includes: a filtering module, which is used to filter the parameter configuration file through the parameter setting module to obtain a filtered parameter configuration file; a configuration module, which is used to configure the parameters of the target operating system according to the filtered parameter configuration file; a first acquisition module, which is used to run a test command and obtain the first operating performance information of the target operating system after detecting that the parameter configuration of the target operating system is completed; and a determination module, which is used to determine the tuning parameters of the target operating system based on the first operating performance information of the target operating system.

[0018] Furthermore, the device also includes: a second acquisition unit, used to run a test command to obtain second operating performance information of the target operating system before configuring parameters of the target operating system according to the filtered parameter configuration file; the determination module includes: a determination sub-module, used to determine the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information.

[0019] Furthermore, the device also includes: a second output unit, which is used to input the first operating performance information and the second operating performance information into the target model after determining the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information, and output the analysis results of the target model; a receiving unit, which is used to return the analysis results to the user, and determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user.

[0020] Furthermore, the device also includes: a second processing unit, which is used to determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements based on the feedback information received from the user, and if the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements, then the parameter tuning processing of the target operating system is ended; and a third processing unit, which is used to return the target operating system to the parameter configuration before configuration if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements.

[0021] Furthermore, the device also includes: a fourth processing unit, which is used to determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user. If the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's needs, the parameter configuration file and the test command are re-output according to the demand information through the target model, and the parameter tuning processing of the target operating system is performed based on the re-output parameter configuration file and the re-output test command.

[0022] Furthermore, the device also includes: a return unit, which is used to input the demand information into the target model, output the parameter configuration file and the test command, and then return the information of the parameter configuration file to the user through the target model; a fifth processing unit, which is used to execute the step of parameter tuning processing on the target operating system based on the parameter configuration file and the test command when receiving the user's confirmation information, wherein the confirmation information is used to indicate the approval of the parameter configuration information in the parameter configuration file.

[0023] Furthermore, the target model is obtained through the following modules: a preprocessing module, used to preprocess the industry documents of the operating system to obtain the preprocessed industry documents of the operating system, wherein the industry documents of the operating system at least include: a parameter list of the operating system; a second acquisition module, used to obtain a description document of the parameter setting module, wherein the description document at least includes: the parameter range of the operating system and the description format of the parameters; a determination module, used to use the preprocessed industry documents and description documents of the operating system as the parameter corpus of the operating system; a training module, used to train a large language model based on the parameter corpus of the operating system to obtain the target model.

[0024] Furthermore, the filtered parameter configuration file includes: at least one parameter domain, at least one parameter name and at least one parameter value, and the configuration module includes: a determination submodule, used to determine the corresponding execution unit based on at least one parameter domain; an execution submodule, used to perform parameter configuration and parameter backup on the target operating system through the execution unit according to at least one parameter name and at least one parameter value.

[0025] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute a parameter tuning method for any operating system.

[0026] According to another aspect of the present application, an electronic device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a parameter tuning method for executing any operating system.

[0027] According to another aspect of the present application, a computer program product is provided, comprising computer instructions, wherein the computer instructions implement the steps of any one of the above methods when executed by a processor.

[0028] In an embodiment of the present application, by obtaining the demand information input by the user, wherein the demand information includes information indicating parameter tuning of the target operating system; inputting the demand information into the target model, outputting a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; according to the parameter configuration file and the test command, the target operating system is parameter tuned, which solves the technical problem that the parameter tuning of the operating system based on the Bayesian theory in the related art takes a long time, resulting in low tuning efficiency of the operating system. In the present application, the method of tuning the parameters of the operating system based on the trained target model is adopted, the demand information is input into the target model, the parameter configuration file and the test command are output through the target model, and then the parameters of the operating system are tuned according to the parameter configuration file and the test command output by the target model, which greatly reduces the search range of the parameters, and does not need to collect multiple rounds of data for mathematical reasoning to tune the parameters of the operating system, so as to achieve the purpose of directly tuning the parameters of the operating system based on the parameter configuration file and the test command, thereby achieving the technical effect of improving the parameter tuning efficiency of the operating system. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0030] Figure 1 A hardware structure block diagram of a computer terminal for implementing a parameter tuning method for an operating system is shown;

[0031] Figure 2 The following is a process of a parameter tuning method for an operating system provided in an embodiment of the present application. Figure 1 ;

[0032] Figure 3 A process for parameter tuning of an operating system provided in an embodiment of the present application Figure 2 ;

[0033] Figure 4 is a schematic diagram of a parameter setting module of an operating system provided according to an embodiment of the present application;

[0034] Figure 5 is a flow chart of generating a target model according to an embodiment of the present application;

[0035] Figure 6 is a schematic diagram of a parameter tuning method for an operating system provided according to an embodiment of the present application;

[0036] Figure 7 is a schematic diagram of a parameter tuning device for an operating system provided according to an embodiment of the present application;

[0037] Figure 8 is a flow chart of another operating system parameter tuning method provided according to an embodiment of the present application;

[0038] Fig. 9 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising 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.

[0041] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0042] Example 1

[0043] According to an embodiment of the present application, a method embodiment of parameter tuning of an operating system is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0044] The method embodiment of operating system parameter tuning provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a parameter tuning method for an operating system is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0045] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0046] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the parameter tuning method of the operating system in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the parameter tuning method of the above-mentioned operating system is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0047] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0048] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0049] Under the above operating environment, this application provides Figure 2The parameter tuning method of the operating system shown in FIG. Figure 2 The following is a process of a parameter tuning method for an operating system provided in an embodiment of the present application. Figure 1 .

[0050] Step S201 : obtaining demand information input by a user, wherein the demand information includes information indicating parameter tuning for a target operating system.

[0051] Optionally, the target operating system may be Linux, FreeBSD, Solaris, etc. The requirement information may be natural language text input by a user, for example, "I need to improve system response time and reduce network latency", or "optimize system memory usage to support more concurrent connections".

[0052] Step S202, input the demand information into the target model, and output the parameter configuration file and the test command, wherein the target model is a model obtained by training the large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system.

[0053] Optionally, the target model may be a target large language model, and the parameter configuration file mentioned in the embodiments of the present application may be a file used to store configuration parameters in computer software, which define the software's operating environment, behavioral characteristics, resource paths, security settings, network configurations, performance optimization options, etc. The parameter configuration file may be a profile file. When a user uses natural language to describe their performance optimization requirements, the target model will infer and generate a set of parameters and corresponding parameter values ​​that may improve system performance based on these requirements. These parameters and parameter values ​​are organized and output as a profile file, which contains optimization suggestions in a format that is compatible with the parameter setting module of the target operating system, so that the target operating system can read and apply these parameter values ​​for performance tuning. For example, the content of a profile file may be:

[0054] [net] / / Network parameter domain: includes parameter configurations related to the network protocol stack, network devices, network performance, and security;

[0055] XPS = auto / / XPS is a packet scheduling mechanism. When set to "auto", the system will automatically adjust the packet scheduling strategy according to the multi-core status of the current hardware and the network load, and select the appropriate core to process the data packet;

[0056] RPS = off / / RPS refers to a load balancing technology for receiving data packets. When it is set to "off", it means that this data packet load balancing mechanism is disabled, and the reception and processing of data packets will be carried out according to the system default policy;

[0057] [sysctl] / / System control parameter domain: covers the configuration items used to dynamically adjust kernel parameters in the Linux kernel and some other Unix-like systems;

[0058] net.ipv4.tcp_tw_timeout = 1 / / This parameter controls the timeout of the TCP connection in the TIME_WAIT state. Setting it to 1 means setting the timeout of the TIME_WAIT state to 1 second;

[0059] vm.swappiness = 1 / / This parameter determines the system's tendency to swap out data pages in memory to disk when encountering memory pressure. Setting it to 1 means that the system will relatively conservatively swap out data pages in memory to disk swap partitions when encountering memory pressure;

[0060] [limits] / / Restriction parameter domain: mainly focuses on limiting the use of user and process resources;

[0061] ulimit = 1048576 / / This parameter limits the maximum number of file descriptors that a single process can open in the Linux system. Setting it to 1048576 means setting the maximum number of file descriptors that each process can open to 1048576.

[0062] Optionally, the parameter configuration file mentioned in the embodiment of the present application may also be in INI format, XML format, JSON format, Conf format, etc. Different types of parameter configuration files can be used to adapt to different operating system task requirements and technical environments.

[0063] Optionally, the test command mentioned in the embodiments of the present application refers to a set of standard tests used to evaluate the performance of hardware or software. The test command may be a benchmark command. Benchmark commands are generally designed to accurately measure the performance indicators of software or systems in real time, such as execution time, CPU usage, memory consumption, I / O operation speed, etc. It can provide more specific and quantitative performance data than general functional tests. In addition to the benchmark command, the test command may also use commands for tools used for load and performance testing. For example, the benchmark command may be:

[0064] 10 threads and 300 connections / / The test tool used 10 threads concurrently in the test and established 300 connections to the HTTP server in each thread at the same time;

[0065] Thread Stats Avg Stdev Max + / - Stdev / / Thread statistics;

[0066] Latency 4.09ms 2.58ms 55.15ms 88.69% / / Latency: The average latency is 4.09ms, the standard deviation is 2.58ms, the maximum latency is 55.15ms, and Stdev's 88.69% indicates that most latency time points are close to the average value;

[0067] Req / Sec 7.79k 1.00k 16.27k 68.50% / / The average value is 7.79k, that is, each thread issues an average of 7790 requests per second, and the standard deviation is 1.00k, indicating that the request speed fluctuates slightly between different threads, with a maximum value of 16.27k;

[0068] Latency Distribution / / Delay distribution;

[0069] 50% 3.57ms

[0070] 75% 4.78ms

[0071] 90% 6.55ms

[0072] 99% 14.83ms

[0073] 2328377 requests in 30.07s, 9.09GB read / / In the test time of 30.07 seconds, a total of 2328377 requests were issued and 9.09GB of data was read;

[0074] Requests / sec: 77430.64 / / Requests / sec (number of requests per second): The average is 77430.64, which means that the test tool sent an average of 77430.64 requests to the server per second during the entire test;

[0075] Transfer / sec: 309.47MB / / The average is 309.47MB, which means that the average amount of data read from the server per second is 309.47 megabytes.

[0076] Optionally, since the target model mentioned in the embodiment of the present application is a model obtained by training a large language model through the parameter corpus of the operating system, the target model has the ability to process natural language, can understand the user's operating system performance optimization requirements, and output parameter configuration files and test commands, thereby lowering the threshold for users to use tuning tools.

[0077] Step S203: Parameter tuning processing is performed on the target operating system according to the parameter configuration file and the test command.

[0078] Since the parameter configuration file includes parameters that may improve system performance and the corresponding parameter values, the target operating system is tuned according to the parameter configuration file and test commands, which greatly reduces the search range of parameters. There is no need to collect multiple rounds of data for mathematical reasoning to tune the operating system parameters, thereby improving the tuning efficiency of the operating system.

[0079] In summary, in the embodiment of the present application, a method of tuning the parameters of the operating system based on the trained target model is adopted, the demand information is input into the target model, the parameter configuration file and the test command are output through the target model, and then the parameters of the operating system are tuned according to the parameter configuration file and the test command output by the target model, which greatly reduces the search range of the parameters, and does not need to collect multiple rounds of data for mathematical reasoning to tune the parameters of the operating system, thereby achieving the purpose of directly tuning the parameters of the operating system based on the parameter configuration file and the test command, thereby achieving the technical effect of improving the efficiency of parameter tuning of the operating system.

[0080] In an optional embodiment, the Figure 3 Follow the steps in the tutorial to tune the parameters of the target operating system based on the parameter configuration file and test commands.

[0081] Step S301: Filter the parameter configuration file through the parameter setting module to obtain a filtered parameter configuration file.

[0082] Optionally, the parameter configuration file is filtered through the security check mechanism pre-set in the parameter setting module. The security check mechanism set in the parameter setting module includes parameter value range check, dependency analysis, conflict detection, etc. That is, the parameter configuration file is filtered according to the parameter value range check, dependency analysis, and conflict detection mechanism. Parameter value range check refers to setting a specific valid value range for each system parameter. The parameter setting module contains verification logic to ensure that all parameter values ​​are within the valid value range of this setting and filter parameters that are not within the valid value range. Dependency analysis can avoid setting incompatible parameter combinations, which may cause abnormal system behavior or security vulnerabilities. Conflict detection can avoid conflicts between parameters and avoid adverse effects. Through these security check mechanisms, the parameter setting module can ensure that the parameter tuning process does not cause unnecessary risks to the system, while also improving the accuracy and efficiency of parameter tuning.

[0083] Step S302: configuring parameters of the target operating system according to the filtered parameter configuration file.

[0084] In an optional embodiment, the filtered parameter configuration file may also include: at least one parameter field, at least one parameter name and at least one parameter value. Configuring parameters of the target operating system based on the filtered parameter configuration file includes: determining a corresponding execution unit based on at least one parameter field; and executing parameter configuration and parameter backup on the target operating system through the execution unit according to at least one parameter name and at least one parameter value.

[0085] Optional, Figure 4 The present invention is a schematic diagram of parameter configuration for a target operating system. The parameter configuration file is a profile file, which includes three parameter fields: net, sysctl, and limits. The parameter setting module includes execution units for the net parameter field and the sysctl parameter field, but does not include execution units for the limits parameter field. The above profile file is input into the parameter setting module, and the above parameter setting module reads the net parameter field in the profile file, backs up the current network parameter settings, and then sets new network parameters according to the configuration in the profile file. The sysctl parameter field in the profile file is read, backs up the current network parameter settings, and then sets new network parameters according to the configuration in the profile file. Since the parameter setting module does not include the execution unit for the limits parameter field, the limits parameter field cannot be found, and the setting of this parameter field is skipped. Finally, the setting result of the parameter setting module is output.

[0086] That is, in an embodiment of the present application, a plurality of execution units corresponding to preset parameter domains are provided in the parameter setting module, and each execution unit is used to perform parameter configuration and parameter backup on the target operating system for the corresponding parameter domain; for any parameter domain in the filtered parameter configuration file, if the parameter domain in the filtered parameter configuration file belongs to one of the plurality of preset parameter domains, the corresponding execution unit is called to perform parameter configuration and parameter backup; if the parameter domain in the filtered parameter configuration file does not belong to the plurality of preset parameter domains, the execution of parameter configuration and parameter backup is ignored.

[0087] By configuring the parameters of the target operating system through the content in the above solution, the parameter setting module is decomposed into independent execution units for different parameter domains, and the entire operating system becomes more modular. When the parameter domain in the filtered parameter configuration file does not belong to the parameter domain in multiple preset parameter domains, it can also avoid operating on undefined or unsupported parameter domains, ensuring the security of the operating system.

[0088] Step S303: after detecting that the parameter configuration of the target operating system is completed, execute the test command and obtain the first operating performance information of the target operating system.

[0089] Optionally, after the parameter configuration is completed, a benchmark test tool may be run to collect operating data of the target operating system after parameter tuning, and the collected operating data may be used as the first operating performance information.

[0090] Step S304: determining tuning parameters for the target operating system according to the first operating performance information of the target operating system.

[0091] For example, the first operating performance information is "processing speed increased to 15,000 tasks / minute". Based on the first operating performance information, it can be determined whether the current parameters for tuning the target operating system are appropriate and whether they can be used as the final tuning parameters for the target operating system.

[0092] In summary, the above technical solutions reduce the time cost of traditional operating system parameter tuning methods and improve the security and efficiency of the operating system parameter tuning process.

[0093] In an optional embodiment, before configuring parameters of the target operating system based on the filtered parameter configuration file, the method also includes: running a test command to obtain second operating performance information of the target operating system; determining tuning parameters for the target operating system based on the first operating performance information of the target operating system includes: determining tuning parameters for the target operating system based on the first operating performance information and the second operating performance information.

[0094] The performance information mentioned in the embodiment of the present application may refer to various performance indicators exhibited by the system during operation, including response time, throughput, error rate, resource utilization, etc. This information reflects the operating status and efficiency of the system under specific conditions. For example, a Linux operating system, whose main task is to run high-performance computing applications. The goal is to optimize the processing speed of its CPU-intensive tasks while maintaining the stable operation of memory and network. Before applying any parameter tuning, first run the benchmark test tool, for example, stress to simulate CPU-intensive workloads, or iperf to test network performance. Collect the performance data of the operating system under the default or current parameter settings, and use it as the second operating performance information (that is, the operating performance information obtained by the test before the parameter configuration), which will serve as the benchmark before performance tuning. According to the filtered parameter configuration file, use the parameter setting module to modify the operating system parameters of the Linux operating system. After the parameter configuration is completed, run the benchmark test tool again to collect the operating data of the operating system after parameter tuning, and use it as the first operating performance information. Compare the first operating performance information with the second operating performance information to evaluate the effect of parameter tuning. Determine the final tuning parameters for the target operating system based on the effect of parameter tuning. For example, the first operation performance information is compared with the second operation performance information, and the first operation performance information is higher in value than the second operation performance information, or the first operation performance information is compared with the second operation performance information, and the first operation performance information feedback shows that the operation performance of the target operating system is better, indicating that after the parameter configuration, the operation of the target operating system is optimized or improved, and the information of this parameter configuration can be used as the tuning information of the target operating system. If the first operation performance information is lower in value than the second operation performance information, or the first operation performance information is compared with the second operation performance information, and the second operation performance information feedback shows that the operation performance of the target operating system is better, it means that after the parameter configuration, the operation of the target operating system is not optimized or improved, and the operation of the target operating system after the parameter configuration is worse than before the parameter configuration. Therefore, the parameter configuration of the target operating system can be returned to the configuration before to ensure the operation performance of the target operating system. This process ensures that the determination of the tuning parameters will be based on the comparison of the performance information of the target operating system before and after the tuning, which increases the reliability and accuracy of the parameter tuning of the target operating system.

[0095] In an optional embodiment, after determining the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information, the method further includes: inputting the first operating performance information and the second operating performance information into the target model, and outputting the analysis results of the target model; returning the analysis results to the user, and determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user.

[0096] For example, a Linux operating system, whose main task is to run high-performance computing applications. The goal is to optimize the processing speed of its CPU-intensive tasks while maintaining stable operation of memory and network. The target model can output performance indicator comparison analysis, for example, the target model outputs the average processing time or percentage increase in processing speed of CPU-intensive tasks before and after tuning: before tuning, the average processing time is 30 seconds, and the processing speed is 10,000 tasks / minute; after tuning, the average processing time is reduced to 20 seconds, and the processing speed is increased to 15,000 tasks / minute; the processing speed of CPU-intensive tasks is increased by 50%. Comparison of memory usage before and after tuning: before tuning, the average memory usage is 60%; after tuning, the average memory usage is adjusted to 65%. Network throughput: before tuning, the average throughput of the network interface is 1Gbps; after tuning, the average throughput of the network interface is maintained at 1Gbps, or slightly increased to 1.1Gbps; the target model points out that the tuning operation has no negative impact on network performance, or the slight improvement in network performance helps to further improve the overall performance of the system. In addition to the above numerical comparison and analysis, the target model can also ask questions, such as "Overall, this parameter tuning significantly improved the CPU processing capacity of the operating system, while also maintaining the stability of memory and network performance, which meets the performance optimization goal. It is recommended to keep the current parameter configuration. Do you want to keep the current configuration?" Then, the target model can determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user.

[0097] In summary, based on the above content, the first operating performance information and the second operating performance information are input into the target model, and the analysis results of the target model are output. The specific numerical comparison and interpretation not only provide quantitative data support, but also help users understand the actual benefits and potential impacts of parameter tuning.

[0098] In an optional embodiment, after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user, the method also includes: if the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs, ending the parameter tuning process of the target operating system; if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's needs, returning the target operating system to the parameter configuration before configuration.

[0099] For example, if the target model receives user feedback of "keep current configuration", it can be analyzed that the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs, and the parameter tuning process of the target operating system is terminated.

[0100] For another example, the target model receives user feedback that "does not meet requirements, do not retain current configuration", and it can be analyzed that the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet user requirements, so the target operating system is returned to the parameter configuration before configuration.

[0101] In summary, the above technical solutions can enhance the interaction between the target model and the user. When the parameter configuration does not meet the user's expectations, it can be immediately rolled back to the state before configuration, which greatly reduces the risk of system instability or service interruption due to inappropriate parameter configuration.

[0102] In an optional embodiment, after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user, the method also includes: if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's needs, re-outputting the parameter configuration file and the test command according to the demand information through the target model, and performing parameter tuning processing on the target operating system based on the re-output parameter configuration file and the re-output test command.

[0103] For example, after the initial tuning, if the user finds that although the CPU-intensive task processing speed has been significantly improved, the memory usage rate has increased from 60% to 65%, resulting in a slight system response delay, and the user's requirement is to avoid increasing the memory usage rate as much as possible while improving the CPU task processing speed to maintain the immediacy and stability of the system response. The target model can re-output the parameter configuration file and test command based on the above requirement information, and improve the CPU task processing speed of the target operating system based on the re-output parameter configuration file and the re-output test command. The steps of this process can be as follows:

[0104] In step one, users can express their concerns about increased memory usage and their tolerance for system response delays by interacting with the large language model.

[0105] In step 2, the target model receives user feedback that “it is hoped that while maintaining or further improving the processing speed of CPU-intensive tasks, the increase in memory usage can be controlled to avoid any possible system response delays.”

[0106] Step 3: The target model re-analyzes tuning requirements and goals based on user feedback. The target model may suggest adjusting memory management-related parameters, such as vm.swappiness, or propose other parameters, such as vm.vfs_cache_pressure, to find a balance between improving CPU processing speed and controlling memory usage. At the same time, the target model generates new profile files and benchmark test commands to reflect the new tuning strategies and goals.

[0107] Step 4: The parameter setting module reads the newly generated parameter configuration file, checks its security, rationality, and compatibility, and applies the filtered parameter configuration. Before and after the parameter configuration, the test command is run to collect performance data after tuning. The target model analyzes the data after tuning and finds that the CPU-intensive task processing speed is further improved to 16,000 tasks / minute, the memory usage rate is reduced to 60%, the network performance remains stable, and the system stability is not affected.

[0108] Step 5: Based on the analysis results received, the user can confirm whether they are satisfied. If they are satisfied, the tuning is complete. If they are not satisfied, the user can raise specific requirements or questions again and repeat steps 3 to 4 until a suitable parameter configuration is found.

[0109] In summary, from the above content, we can see that the target model can more accurately understand the user's specific needs and preferences based on the tuning strategy of direct user feedback, thereby improving the pertinence and effectiveness of parameter configuration.

[0110] In an optional embodiment, after inputting the demand information into the target model and outputting the parameter configuration file and the test command, the method further includes: returning the information of the parameter configuration file to the user through the target model; upon receiving the user's confirmation information, executing the step of performing parameter tuning processing on the target operating system based on the parameter configuration file and the test command, wherein the confirmation information is used to indicate the approval of the parameter configuration information in the parameter configuration file.

[0111] For example, the information of the parameter configuration file is returned to the user through the target model. If the user's confirmation message is "I agree to apply these parameter settings for tuning tests", after the user confirms, the parameter setting module will apply the parameter settings in the filtered parameter configuration file.

[0112] In summary, the above content can enhance the interaction with users, thereby improving the transparency of tuning decisions and user satisfaction, and thus achieving a more efficient parameter tuning process that better meets actual needs.

[0113] In an optional embodiment, if Figure 5As shown, the target model in the implementation of this application can be obtained by following the steps below:

[0114] S501, preprocessing the industry document of the operating system to obtain the preprocessed industry document of the operating system, wherein the industry document of the operating system at least includes: a parameter list of the operating system.

[0115] Optionally, the industry documentation of the operating system mentioned in the embodiments of the present application may include at least one of the following: a parameter list of the operating system, official manuals and guides, operating system performance tuning documents, etc. The above-mentioned official manuals and guides include official documentation of the operating system kernel, user manuals, administrator guides, developer guides, etc. These documents detail the architecture, functions, configuration and management methods of the operating system, as well as the meaning and use of various system parameters. The operating system performance tuning document is a guidance document specifically for operating system performance tuning, including a tuning manual, performance benchmark report, tuning case analysis, etc. These documents provide suggestions, methods and steps for parameter tuning, as well as indicators on how to measure and optimize performance.

[0116] Optionally, the preprocessing methods of the industry documents of the operating system may include: text cleaning, standardization and formatting, etc. Text cleaning can remove irrelevant information in the document, such as advertisements, headers and footers, copyright notices, etc. At the same time, HTML tags, special characters, non-printing characters, etc. are filtered out to ensure the purity of the text. Standardization and formatting can convert the text, numbers, units, etc. in the document into a unified format and standard to facilitate model understanding and processing. For example, parameter names and descriptions are converted to a unified format of uppercase and lowercase and punctuation marks, and values ​​are converted to a standard numeric format. By preprocessing the industry documents of the operating system, key information such as the operating system parameter list, function description, performance impact, usage scenarios, and practical information can be extracted to provide rich and diverse training data for the large language model, thereby improving its performance and accuracy in operating system parameter tuning, fault diagnosis, technical support, etc.

[0117] S502, obtaining a description document of a parameter setting module, wherein the description document at least includes: a parameter range of an operating system and a description format of the parameters.

[0118] Optionally, the description document of the parameter setting module mentioned in the embodiment of the present application may include the parameter range of the operating system, the description format of the parameters, the recommended parameter values ​​and tuning suggestions, the dependencies between the parameters, etc. The description document provides the recommended parameter values ​​based on expert experience or data analysis, as well as the tuning suggestions in different scenarios (such as high load, low memory, network peak, etc.), which can help users adjust parameters according to specific needs.

[0119] S503: Use the preprocessed industry documents and description documents of the operating system as parameter corpus of the operating system.

[0120] S504, training the large language model based on the parameter corpus of the operating system to obtain a target model.

[0121] The above training process can be as follows: Clean and preprocess the data of the parameter corpus, including removing useless information, unifying the format, and segmenting words. Ensure that the quality and format of the data meet the requirements of the training model. Label the cleaned data. You can use a labeling tool or an automated script to label each parameter corpus as a sequence. Divide the labeled data into a training set and a validation set. Usually, one part of the data is used to train the model, and the other part of the data is used to verify the performance of the model. Use a deep learning framework to build a large language model, and use the training set for model training. During the training process, you can adjust settings such as hyperparameters and optimizers to improve the performance of the model. Use the validation set to evaluate the trained model. You can calculate indicators such as perplexity to evaluate the performance of the model. Tune the model based on the evaluation results to further improve the performance of the model and finally obtain the target model.

[0122] In summary, the target model trained through the above content can provide accurate, professional and personalized parameter configuration suggestions, thereby improving the parameter tuning efficiency of the target operating system.

[0123] Optionally, in order to fully describe the process of operating system parameter tuning, such as Figure 6 As shown, the parameter tuning process of the operating system can be as follows: the user inputs the demand information into the trained target model; the target model generates a test command and a parameter configuration file based on the demand information; the parameter configuration file is filtered by the parameter setting module to obtain a filtered parameter configuration file; the parameter setting module runs the test command to obtain the second operating performance information of the target operating system; the target operating system is parameterized according to the filtered parameter configuration file; after detecting that the parameter configuration of the target operating system is completed, the test command is run to obtain the first operating performance information of the target operating system; the first operating performance information and the second operating performance information are input into the target model, and the analysis result of the target model is output.

[0124] Optionally, the parameter tuning method of the operating system provided in the embodiment of the present application can also reduce the difficulty of users using performance optimization tools, and the generated parameter combination can also be explained and easily understood by users. For example, the following is a human-computer interaction process for optimizing operating system parameters: User: Nginx is installed on this machine. Can you optimize the performance of Nginx? System: I can optimize the performance of Nginx. First, I need to select a benchmark to evaluate the optimization effect. I think it is appropriate to use wrk as a benchmark tool. I hope to be able to execute commands. Is that okay? User: Y (yes); (run the wrk command); System: The benchmark tool has finished running. The current system performance is Requests / sec=77430, Transfer / sec=309MB. Based on experience, here is a parameter setting plan. This parameter setting plan modifies parameters such as the network card queue, Nginx application parameters, and the maximum number of file handles to avoid affecting Nginx performance due to the limit on the number of file handles. Do you need help setting it? User: Y (Yes); (Execute parameter setting); (Run wrk command again); System: Parameter setting is complete. The current system performance is Requests / sec=87510, Transfer / sec=456MB, and the performance improvement is about 13%. Do you want to keep the current configuration? User: N (No); (Execute parameter rollback); System: The parameters have been restored to the initial state. You can try other methods to optimize performance, or use this system to optimize performance again.

[0125] Through the above-mentioned interaction process between the user and the target model, the target model can perform parameter tuning according to the user's needs and feedback, thereby reducing the difficulty for the user to use the performance optimization tool and improving the parameter tuning efficiency of the operating system.

[0126] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0127] Example 2

[0128] The embodiment of the present application also provides a parameter tuning device for an operating system. It should be noted that the parameter tuning device for an operating system in Embodiment 2 of the present application can be used to execute the parameter tuning method for an operating system provided in Embodiment 1 of the present application. The parameter tuning device for an operating system provided in the embodiment of the present application is introduced below.

[0129] like Figure 7As shown, the device includes: a first acquisition unit 701, used to obtain demand information input by a user, wherein the demand information includes information indicating parameter tuning of a target operating system; a first input unit 702, used to input the demand information into a target model, and output a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through information extraction and integration, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the running performance of the target operating system; a first processing unit 703, used to perform parameter tuning processing on the target operating system according to the parameter configuration file and the test command.

[0130] In the parameter tuning device of the operating system provided in the embodiment of the present application, the first acquisition unit 701 acquires the demand information input by the user, wherein the demand information includes information indicating parameter tuning of the target operating system; the first input unit 702 inputs the demand information into the target model, outputs the parameter configuration file and the test command, wherein the target model is a model obtained by training the large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the running performance of the target operating system; the first processing unit 703 performs parameter tuning processing on the target operating system according to the parameter configuration file and the test command. The technical problem that the parameter tuning of the operating system based on the Bayesian theory in the related art is time-consuming and leads to low tuning efficiency of the operating system is solved. The method of tuning the parameters of the operating system based on the trained target model is adopted, the demand information is input into the target model, the target model outputs the parameter configuration file and the test command, and the output parameter configuration file and the test command are run, so as to achieve the purpose of parameter tuning of the operating system, and then achieve the technical effect of improving the parameter tuning efficiency of the operating system.

[0131] Optionally, the first processing unit 703 includes: a filtering module, used to filter the parameter configuration file through the parameter setting module to obtain a filtered parameter configuration file; a configuration module, used to configure the parameters of the target operating system according to the filtered parameter configuration file; a first acquisition module, used to run a test command and obtain first operating performance information of the target operating system after detecting that the parameter configuration of the target operating system is completed; and a determination module, used to determine the tuning parameters for the target operating system based on the first operating performance information of the target operating system.

[0132] Optionally, the device also includes: a second acquisition unit, used to run a test command to obtain second operating performance information of the target operating system before configuring parameters of the target operating system according to the filtered parameter configuration file; the determination module includes: a determination sub-module, used to determine the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information.

[0133] Optionally, the device also includes: a second output unit, used to input the first operating performance information and the second operating performance information into the target model after determining the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information, and output the analysis results of the target model; a receiving unit, used to return the analysis results to the user, and determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user.

[0134] Optionally, the device also includes: a second processing unit, used to determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements based on the feedback information received from the user, and if the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements, then the parameter tuning processing of the target operating system is terminated; and a third processing unit, used to return the target operating system to the parameter configuration before configuration if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements.

[0135] Optionally, the device also includes: a fourth processing unit, which is used to determine whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs based on the feedback information received from the user. If the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's needs, the parameter configuration file and the test command are re-output according to the demand information through the target model, and the parameter tuning processing of the target operating system is performed based on the re-output parameter configuration file and the re-output test command.

[0136] Optionally, the device also includes: a return unit, which is used to input the demand information into the target model, output the parameter configuration file and the test command, and then return the information of the parameter configuration file to the user through the target model; a fifth processing unit, which is used to execute the step of parameter tuning processing on the target operating system based on the parameter configuration file and the test command when receiving the user's confirmation information, wherein the confirmation information is used to indicate the approval of the parameter configuration information in the parameter configuration file.

[0137] Optionally, the target model is obtained through the following modules: a preprocessing module, used to preprocess the industry documents of the operating system to obtain the preprocessed industry documents of the operating system, wherein the industry documents of the operating system at least include: a parameter list of the operating system; a second acquisition module, used to obtain a description document of the parameter setting module, wherein the description document at least includes: the parameter range of the operating system and the description format of the parameters; a determination module, used to use the preprocessed industry documents and description documents of the operating system as the parameter corpus of the operating system; a training module, used to train a large language model based on the parameter corpus of the operating system to obtain the target model.

[0138] Optionally, the filtered parameter configuration file includes: at least one parameter domain, at least one parameter name and at least one parameter value, and the configuration module includes: a determination submodule, used to determine the corresponding execution unit based on at least one parameter domain; an execution submodule, used to perform parameter configuration and parameter backup on the target operating system through the execution unit according to at least one parameter name and at least one parameter value.

[0139] It should be noted that the acquisition unit 701, input unit 702 and processing unit 703 described above correspond to steps S201 to S203 in Embodiment 1, and the three units and corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Embodiment 1 described above. It should be noted that the modules or units described above may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the modules described above may also be run in the computer terminal 10 provided in Embodiment 1 as part of the device.

[0140] Example 3

[0141] According to an embodiment of the present application, another method for tuning parameters of an operating system is also provided, such as Figure 8 As shown, the method includes:

[0142] Step S801, obtaining demand information uploaded by the client, wherein the demand information includes information indicating parameter tuning of the target operating system;

[0143] Step S802: Input the demand information into the target model in the cloud server, and output the parameter configuration file and the test command, wherein the target model is a model obtained by training the large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; perform parameter tuning processing on the target operating system according to the parameter configuration file and the test command;

[0144] Step S803: Feedback the processing result of parameter tuning to the client.

[0145] In the cloud server, the specific method for tuning the parameters of the operating system is the same as the method in the first embodiment, and will not be repeated here.

[0146] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0148] Example 4

[0149] The embodiment of the present application may provide a computer terminal, which may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal or an electronic device.

[0150] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.

[0151] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: obtaining the demand information input by the user, wherein the demand information includes information indicating parameter tuning of the target operating system; inputting the demand information into the target model, and outputting a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the running performance of the target operating system; and performing parameter tuning processing on the target operating system according to the parameter configuration file and the test command.

[0152] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: filtering the parameter configuration file through the parameter setting module to obtain the filtered parameter configuration file; configuring the parameters of the target operating system according to the filtered parameter configuration file; after detecting that the parameter configuration of the target operating system is completed, running the test command and obtaining the first operating performance information of the target operating system; determining the tuning parameters for the target operating system based on the first operating performance information of the target operating system.

[0153] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: filtering the parameter configuration file through the parameter setting module to obtain the filtered parameter configuration file; configuring the parameters of the target operating system according to the filtered parameter configuration file; after detecting that the parameter configuration of the target operating system is completed, running the test command and obtaining the first operating performance information of the target operating system; determining the tuning parameters for the target operating system based on the first operating performance information of the target operating system.

[0154] Optionally, the computer terminal may execute the program code of the following steps in the operating system parameter tuning method: after determining the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information, inputting the first operating performance information and the second operating performance information into the target model, and outputting the analysis results of the target model; returning the analysis results to the user, and determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's requirements based on the feedback information received from the user.

[0155] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements based on the feedback information received from the user, if the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements, then the parameter tuning processing of the target operating system is terminated; if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements, then the target operating system is returned to the parameter configuration before configuration.

[0156] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements based on the feedback information received from the user, if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements, re-output the parameter configuration file and the test command according to the requirement information through the target model, and perform parameter tuning processing on the target operating system based on the re-output parameter configuration file and the re-output test command.

[0157] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: input the demand information into the target model, output the parameter configuration file and the test command, and then return the information of the parameter configuration file to the user through the target model; upon receiving the user's confirmation information, execute the step of performing parameter tuning processing on the target operating system based on the parameter configuration file and the test command, wherein the confirmation information is used to indicate the approval of the parameter configuration information in the parameter configuration file.

[0158] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the operating system parameter tuning method: the target model is obtained by the following steps: preprocessing the industry document of the operating system to obtain the preprocessed industry document of the operating system, wherein the industry document of the operating system at least includes: a parameter list of the operating system; obtaining a description document of the parameter setting module, wherein the description document at least includes: a parameter range of the operating system and a description format of the parameters; using the preprocessed industry document and description document of the operating system as the parameter corpus of the operating system; training a large language model based on the parameter corpus of the operating system to obtain the target model.

[0159] Optionally, the above-mentioned computer terminal can execute the program code of the following steps in the parameter tuning method of the operating system: the filtered parameter configuration file includes: at least one parameter field, at least one parameter name and at least one parameter value, and the parameter configuration of the target operating system according to the filtered parameter configuration file includes: determining the corresponding execution unit according to at least one parameter field; executing parameter configuration and parameter backup of the target operating system according to at least one parameter name and at least one parameter value through the execution unit.

[0160] Optionally, Fig. 9 is a structural block diagram of an electronic device according to an embodiment of the present application. Fig. 9 As shown, the electronic device may include: one or more ( Fig. 9 Only one is shown) processor 902, memory 904, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0161] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the parameter tuning method and device of the operating system in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the parameter tuning method of the above-mentioned operating system. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0162] The processor can call the information and application programs stored in the memory through the transmission device to execute the above steps in the parameter tuning method of the above operating system.

[0163] By adopting the embodiment of the present application, a scheme for parameter tuning of an operating system is provided. By obtaining the demand information input by the user, wherein the demand information includes information indicating parameter tuning of the target operating system; inputting the demand information into the target model, outputting the parameter configuration file and the test command, wherein the target model is a model obtained by training the large language model through the parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; according to the parameter configuration file and the test command, the target operating system is parameter tuned. The technical problem that the parameter tuning of the operating system based on the Bayesian theory in the related technology is time-consuming and leads to low tuning efficiency of the operating system is solved. The method of parameter tuning the operating system based on the trained target model is adopted, the demand information is input into the target model, the target model outputs the parameter configuration file and the test command, and the output parameter configuration file and the test command are run, so as to achieve the purpose of parameter tuning of the operating system and realize the technical effect of improving the efficiency of the operating system.

[0164] It can be understood by those skilled in the art that Fig. 9 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig. 9 The structure of the electronic device is not limited. Fig. 9 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Fig. 9 Different configurations are shown.

[0165] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0166] Example 5

[0167] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the parameter tuning method of the operating system provided in the first embodiment.

[0168] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0169] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining requirement information input by a user, wherein the requirement information includes information indicating parameter tuning for a target operating system; inputting the requirement information into a target model, and outputting a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model using a parameter corpus of the operating system, the parameter configuration file includes parameter information for parameter configuration for the target operating system, and the test command is used to test the operating performance of the target operating system; and performing parameter tuning processing on the target operating system based on the parameter configuration file and the test command.

[0170] Optionally, the storage medium is also configured to store program codes for executing the following steps: filtering a parameter configuration file through a parameter setting module to obtain a filtered parameter configuration file; configuring parameters of a target operating system based on the filtered parameter configuration file; after detecting that the parameter configuration of the target operating system is complete, running a test command and obtaining first operating performance information of the target operating system; determining tuning parameters for the target operating system based on the first operating performance information of the target operating system.

[0171] Optionally, the storage medium is also configured to store program code for executing the following steps: before configuring parameters of the target operating system based on the filtered parameter configuration file, running a test command to obtain second operating performance information of the target operating system; determining parameter tuning for the target operating system based on the first operating performance information of the target operating system includes: determining tuning parameters for the target operating system based on the first operating performance information and the second operating performance information.

[0172] Optionally, the storage medium is also configured to store program code for executing the following steps: after determining the tuning parameters for the target operating system based on the first operating performance information and the second operating performance information, inputting the first operating performance information and the second operating performance information into the target model, and outputting the analysis results of the target model; returning the analysis results to the user, and determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's requirements based on the feedback information received from the user.

[0173] Optionally, the storage medium is also configured to store program codes for executing the following steps: after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements based on the feedback information received from the user, if the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements, then terminating the parameter tuning process of the target operating system; if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements, then returning the target operating system to the parameter configuration before configuration.

[0174] Optionally, the storage medium is also configured to store program code for executing the following steps: after determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user requirements based on the feedback information received from the user, if the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements, re-output the parameter configuration file and the test command according to the requirement information through the target model, and perform parameter tuning processing on the target operating system based on the re-output parameter configuration file and the re-output test command.

[0175] Optionally, the storage medium is also configured to store program codes for executing the following steps: inputting requirement information into the target model, outputting a parameter configuration file and a test command, and then returning the information of the parameter configuration file to the user through the target model; upon receiving confirmation information from the user, executing the step of performing parameter tuning processing on the target operating system based on the parameter configuration file and the test command, wherein the confirmation information is used to indicate approval of the parameter configuration information in the parameter configuration file.

[0176] Optionally, the storage medium is also configured to store program code for executing the following steps: the target model is obtained by the following steps: preprocessing the industry document of the operating system to obtain the preprocessed industry document of the operating system, wherein the industry document of the operating system at least includes: a parameter list of the operating system; obtaining a description document of the parameter setting module, wherein the description document at least includes: a parameter range of the operating system and a description format of the parameters; using the preprocessed industry document and description document of the operating system as the parameter corpus of the operating system; training a large language model based on the parameter corpus of the operating system to obtain the target model.

[0177] Optionally, the storage medium is also configured to store program code for executing the following steps: the filtered parameter configuration file includes: at least one parameter field, at least one parameter name and at least one parameter value, and parameter configuration of the target operating system according to the filtered parameter configuration file includes: determining a corresponding execution unit based on at least one parameter field; and executing parameter configuration and parameter backup of the target operating system according to at least one parameter name and at least one parameter value through the execution unit.

[0178] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program steps of the parameter tuning method of the operating system.

[0179] Example 6

[0180] According to another aspect of an embodiment of the present application, a computer program product is also provided. When executed on a data processing device, the program product is suitable for executing the steps of the parameter tuning method of the operating system.

[0181] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0182] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0183] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0186] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code. The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present application, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for tuning parameters of an operating system, characterized in that: include: Acquiring demand information input by a user, wherein the demand information includes information indicating parameter tuning of a target operating system; Input the requirement information into a target model, and output a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through a parameter corpus of an operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; According to the parameter configuration file and the test command, parameter tuning processing is performed on the target operating system.

2. The method according to claim 1, characterized in that The step of performing parameter tuning processing on the target operating system according to the parameter configuration file and the test command includes: Filtering the parameter configuration file through a parameter setting module to obtain a filtered parameter configuration file; Performing parameter configuration on the target operating system according to the filtered parameter configuration file; After detecting that the parameter configuration of the target operating system is completed, executing the test command and obtaining first operating performance information of the target operating system; Determine tuning parameters for the target operating system according to the first operating performance information of the target operating system.

3. The method according to claim 2, characterized in that Before performing parameter configuration on the target operating system according to the filtered parameter configuration file, the method further includes: running the test command to obtain second operating performance information of the target operating system; Determining parameter tuning for the target operating system according to the first operating performance information of the target operating system includes: determining tuning parameters for the target operating system according to the first operating performance information and the second operating performance information.

4. The method according to claim 3, characterized in that After determining the tuning parameters for the target operating system according to the first operating performance information and the second operating performance information, the method further includes: Inputting the first operation performance information and the second operation performance information into the target model, and outputting an analysis result of the target model; The analysis result is returned to the user, and it is determined whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs according to the feedback information received from the user.

5. The method according to claim 4, characterized in that After determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's requirements according to the feedback information received from the user, the method further includes: If the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's needs, then the parameter tuning process of the target operating system is terminated; If the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user's requirements, the target operating system is returned to the parameter configuration before the configuration.

6. The method according to claim 4, characterized in that After determining whether the parameter configuration of the target operating system based on the filtered parameter configuration file meets the user's requirements according to the feedback information received from the user, the method further includes: If the parameter configuration of the target operating system based on the filtered parameter configuration file does not meet the user requirements, the target model re-outputs the parameter configuration file and the test command according to the requirement information, and the target operating system is parameter tuned based on the re-output parameter configuration file and the re-output test command.

7. The method according to claim 4, characterized in that After inputting the requirement information into the target model and outputting the parameter configuration file and the test command, the method further includes: Returning information of the parameter configuration file to the user through the target model; When receiving the user's confirmation information, the step of performing parameter tuning processing on the target operating system according to the parameter configuration file and the test command is executed, wherein the confirmation information is used to indicate the approval of the parameter configuration information in the parameter configuration file.

8. The method according to claim 2, characterized in that: The target model is obtained by the following steps: Preprocessing the industry document of the operating system to obtain the preprocessed industry document of the operating system, wherein the industry document of the operating system at least includes: a parameter list of the operating system; Obtaining a description document of the parameter setting module, wherein the description document at least includes: a parameter range of the operating system and a description format of the parameters; Using the preprocessed industry document of the operating system and the description document as parameter corpus of the operating system; The large language model is trained based on the parameter corpus of the operating system to obtain the target model.

9. The method according to claim 2, characterized in that: The filtered parameter configuration file includes: at least one parameter field, at least one parameter name and at least one parameter value. Parameter configuration of the target operating system according to the filtered parameter configuration file includes: Determining a corresponding execution unit according to the at least one parameter domain; The execution unit performs parameter configuration and parameter backup on the target operating system according to the at least one parameter name and the at least one parameter value.

10. A method for tuning parameters of an operating system, characterized in that: include: Acquire demand information uploaded by the client, wherein the demand information includes information indicating parameter tuning of the target operating system; Input the demand information into a target model in a cloud server, and output a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through a parameter corpus of an operating system, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; perform parameter tuning processing on the target operating system according to the parameter configuration file and the test command; Feedback the parameter tuning results to the client.

11. A parameter tuning device for an operating system, characterized in that: include: A first acquisition unit, configured to acquire demand information input by a user, wherein the demand information includes information indicating parameter tuning of a target operating system; A first input unit is used to input the demand information into a target model, and output a parameter configuration file and a test command, wherein the target model is a model obtained by training a large language model through information extraction and integration, the parameter configuration file includes parameter information for parameter configuration of the target operating system, and the test command is used to test the operating performance of the target operating system; The first processing unit is used to perform parameter tuning processing on the target operating system according to the parameter configuration file and the test command.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute the parameter tuning method of the operating system according to any one of claims 1 to 10.

13. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 10 when running.

14. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Operating system performance tuning method, computing device and readable storage medium

    CN113553249A

  • Operating system performance tuning device and method, equipment and storage medium

    CN114138597A

  • Database configuration parameter tuning method and system based on large language model and deep reinforcement learning

    CN117762897A

  • Database intelligent parameter tuning system based on big language model enhancement

    CN118467496A

Cited By

  • Deep learning task-oriented operating system kernel parameter tuning system and method

    CN121092223A