Method, device and electronic equipment for configuring operating system parameters

CN116467008BActive Publication Date: 2026-10-09CETC JINCANG (BEIJING) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310254778.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2026-10-09
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

[0004]本申请提供一种操作系统参数的配置方法、装置及电子设备,用以解决目前由于操作系统参数较多,参数间互有影响效果,参数配置的准确性较低的问题

Benefits of technology

[0059]本申请提供的一种操作系统参数的配置方法、装置及电子设备,该方法包括:获取操作系统为目标应用软件待配置的至少一组目标系统参数及所述目标系统参数对应的参数取值范围;各组所述目标系统参数包括主参数及至少一个关联参数,所述参数取值范围包括主参数取值范围及关联参数取值范围;对至少一组目标系统参数按照对应的参数取值范围进行遍历取值,并按照各取值对目标系统参数进行多次初始配置;在每次完成目标系统参数的初始配置后,运行预设检测程序数据,以获得运行结果数据;基于各运行结果数据对对应的初始配置后的目标系统参数进行评估,以获得评估结果数据;根据各所述评估结果数据为对应的目标系统参数配置最终数值。本申请的操作系统参数的配置方法,对目标应用软件待配置的主参数以及至少一个关联参数按照参数取值范围进行遍历取值,同时,运行预设检测程序数据,以对取值后的主参数以及关联参数进行检测,得到运行结果数据。通过对运行结果数据进行结果评估,得到对应的评估结果数据,从而基于评估结果数据对主参数和关联参数进行配置。由于本方法考虑了操作系统参数间互有影响效果,对主参数和关联参数同时进行检测,从而提高了参数配置的准确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116467008B_ABST
    Figure CN116467008B_ABST
Patent Text Reader

Abstract

The application provides a configuration method and device of operating system parameters and electronic equipment. The method comprises the following steps: obtaining at least one group of target system parameters to be configured for a target application software by an operating system and a parameter value range corresponding to the target system parameters; each group of the target system parameters comprises a main parameter and at least one associated parameter; performing traversal value selection on at least one group of target system parameters according to the corresponding parameter value range, and performing initial configuration on the target system parameters according to each value; after completing the initial configuration of the target system parameters each time, running preset detection program data to obtain running result data; evaluating the target system parameters after the initial configuration based on each running result data to obtain evaluation result data; and configuring a final value for the corresponding target system parameters according to each evaluation result data. The method improves the accuracy of parameter configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, and electronic device for configuring operating system parameters. Background Technology

[0002] With the continuous development of computer technology, application software is becoming increasingly feature-rich. Video applications may offer video, chat, and voice functionality, while database management applications may provide data management, user management, and intelligent interaction features. Correspondingly, application software requires the operating system to provide more system resources to realize these functions.

[0003] Different applications have different requirements for the operating system, thus requiring corresponding configuration of operating system parameters. Currently, system parameter configuration mainly relies on manual verification of operating system parameters. However, due to the large number of operating system parameters and their interrelationships, the accuracy of parameter configuration is relatively low. Summary of the Invention

[0004] This application provides a method, apparatus, and electronic device for configuring operating system parameters, in order to solve the problem that the accuracy of parameter configuration is low due to the large number of operating system parameters and the mutual influence between parameters.

[0005] The first aspect of this application provides a method for configuring operating system parameters, the method comprising:

[0006] The system obtains at least one set of target system parameters to be configured for the target application software, and the parameter value range corresponding to the target system parameters; each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter;

[0007] For at least one set of target system parameters, traverse and select values ​​according to the corresponding parameter value range, and perform multiple initial configurations of the target system parameters according to each value;

[0008] After each initial configuration of the target system parameters, a preset detection program is run to obtain the running result data;

[0009] The target system parameters after initial configuration are evaluated based on the various operational result data to obtain evaluation result data.

[0010] Configure the final values ​​for the corresponding target system parameters based on the evaluation results data.

[0011] Furthermore, in the method described above, the step of traversing and taking values ​​for at least one set of target system parameters according to the corresponding parameter value range includes:

[0012] The strategy of traversing at least one set of target system parameters with the main parameter as the priority is to traverse and obtain values ​​according to the corresponding parameter value range.

[0013] Furthermore, in the method described above, the strategy of traversing at least one set of target system parameters according to the primary parameter priority range and taking values ​​from the corresponding parameter values ​​includes:

[0014] Repeat the following steps until the main parameter has no value within its range:

[0015] Get the current value of the main parameter within the range of possible values;

[0016] Keeping the current value of the main parameter unchanged, the associated parameters are iterated within the corresponding range of associated parameter values ​​to obtain multiple sets of target system parameter values ​​for the current value of the main parameter.

[0017] The next value of the main parameter within its range is determined as the current value.

[0018] Furthermore, in the method described above, the evaluation of the target system parameters after the initial configuration based on each running result data to obtain evaluation result data includes:

[0019] The corresponding evaluation strategy data is obtained from a preset database based on the target system parameters; the preset database stores the mapping relationship between system parameters and evaluation strategy data;

[0020] The evaluation results data are evaluated based on the corresponding evaluation strategy data, and the evaluation results data corresponding to the target system parameters after initial configuration are generated.

[0021] Furthermore, in the method described above, configuring the final values ​​for the corresponding target system parameters based on each of the evaluation result data includes:

[0022] The target system parameter value corresponding to the evaluation result data with the best evaluation result is selected as the final value;

[0023] The resource configuration table is used to configure the final values ​​of the target system parameters.

[0024] Furthermore, in the method described above, the initial configuration of the target system parameters according to each value includes:

[0025] Register the main parameters, the associated parameters, and the parameter value ranges in the resource configuration table;

[0026] The primary and associated parameters registered in the resource configuration table are iterated through according to their corresponding value ranges to perform multiple initial configurations of the target system parameters based on each value.

[0027] Furthermore, in the method described above, the step of running a preset detection program to obtain running result data after each initial configuration of the target system parameters includes:

[0028] Register the preset detection program data corresponding to the target system parameters in the resource configuration table;

[0029] After each initial configuration of the target system parameters is completed, the preset detection program data is run based on the resource configuration table and the initially configured target system parameters to generate the corresponding running result data.

[0030] Furthermore, in the method described above, after configuring the final values ​​for the corresponding target system parameters based on the evaluation result data, the method further includes:

[0031] Fill in the resource allocation table with the evaluation results and final values;

[0032] Save the resource configuration table to the preset database.

[0033] A second aspect of this application provides an operating system parameter configuration apparatus, comprising:

[0034] The acquisition module is used to acquire at least one set of target system parameters to be configured for the target application software and the parameter value range corresponding to the target system parameters; each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter;

[0035] The value retrieval module is used to iterate through at least one set of target system parameters according to the corresponding parameter value range, and perform multiple initial configurations of the target system parameters according to each value.

[0036] The running module is used to run preset detection program data after each initial configuration of the target system parameters to obtain running result data;

[0037] The evaluation module is used to evaluate the corresponding target system parameters after initial configuration based on the various operation result data, so as to obtain evaluation result data;

[0038] The configuration module is used to configure the final values ​​of the corresponding target system parameters based on the evaluation result data.

[0039] Furthermore, in the apparatus described above, when the value-taking module iterates through and takes values ​​for at least one set of target system parameters according to the corresponding parameter value range, it is specifically used for:

[0040] The strategy of traversing at least one set of target system parameters with the main parameter as the priority is to traverse and obtain values ​​according to the corresponding parameter value range.

[0041] Furthermore, in the apparatus described above, when the value-taking module iterates and takes values ​​for at least one set of target system parameters according to the corresponding parameter value range using the primary parameter priority traversal strategy, it is specifically used for:

[0042] Repeat the following steps until the main parameter has no value within its range:

[0043] Get the current value of the main parameter within its range; keep the current value of the main parameter unchanged, and iterate through the associated parameters within their respective ranges to obtain multiple sets of target system parameter values ​​for the current value of the main parameter; determine the next value of the main parameter within its range as the current value.

[0044] Furthermore, in the apparatus described above, the evaluation module is specifically used for:

[0045] The corresponding evaluation strategy data is obtained from the preset database according to the target system parameters; the preset database stores the mapping relationship between system parameters and evaluation strategy data; the operation result data is evaluated according to the corresponding evaluation strategy data to generate the evaluation result data corresponding to the target system parameters after initial configuration.

[0046] Furthermore, in the apparatus described above, the configuration module is specifically used for:

[0047] The target system parameter value corresponding to the evaluation result data with the best evaluation result is selected as the final value; the resource configuration table is used to configure the final value of the target system parameter.

[0048] Furthermore, in the apparatus described above, when the value-taking module performs multiple initial configurations of the target system parameters according to each value, it is specifically used for:

[0049] Register the main parameters, associated parameters, and parameter value ranges in the resource configuration table; iterate through the main parameters and associated parameters registered in the resource configuration table according to their corresponding value ranges to perform multiple initial configurations of the target system parameters according to each value.

[0050] Furthermore, in the apparatus described above, the operating module is specifically used for:

[0051] Register the preset detection program data corresponding to the target system parameters in the resource configuration table; after each initial configuration of the target system parameters is completed, run the preset detection program data based on the resource configuration table and the initially configured target system parameters to generate the corresponding running result data.

[0052] Furthermore, the apparatus as described above further includes:

[0053] Fill in the evaluation results data and final values ​​into the resource configuration table; save the resource configuration table to the preset database.

[0054] A third aspect of this application provides an electronic device, including: a memory and a processor;

[0055] The memory stores computer-executed instructions;

[0056] The processor executes computer execution instructions stored in the memory to implement the operating system parameter configuration method as described in any of the first aspects.

[0057] A fourth aspect of this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method for configuring operating system parameters as described in any of the first aspects.

[0058] The fifth aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the method for configuring operating system parameters as described in any of the first aspects.

[0059] This application provides a method, apparatus, and electronic device for configuring operating system parameters. The method includes: acquiring at least one set of target system parameters to be configured for the target application software and the corresponding parameter value ranges; each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter; iterating through the at least one set of target system parameters according to their corresponding parameter value ranges and performing multiple initial configurations of the target system parameters according to each value; after each initial configuration of the target system parameters, running a preset detection program to obtain running result data; evaluating the corresponding initially configured target system parameters based on each running result data to obtain evaluation result data; and configuring the final values ​​of the corresponding target system parameters according to each evaluation result data. The operating system parameter configuration method of this application iterates through the main parameters to be configured for the target application software and at least one associated parameter according to their parameter value ranges, and simultaneously runs a preset detection program to detect the main parameters and associated parameters after obtaining their values, thereby obtaining running result data. By evaluating the runtime data, corresponding evaluation results are obtained, and the main parameters and related parameters are configured based on these results. Because this method considers the interrelationships between operating system parameters and simultaneously detects both main and related parameters, the accuracy of parameter configuration is improved. Attached Figure Description

[0060] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0061] Figure 1 This is a scenario diagram illustrating how the operating system parameter configuration method of the embodiments of this application can be implemented;

[0062] Figure 2 A flowchart illustrating the method for configuring operating system parameters provided in this application. Figure 1 ;

[0063] Figure 3 A flowchart illustrating the method for configuring operating system parameters provided in this application. Figure 2 ;

[0064] Figure 4 A schematic diagram of the overall process for configuring operating system parameters provided in this application. Figure 1 ;

[0065] Figure 5 A schematic diagram of the structure of the device for configuring operating system parameters provided in this application;

[0066] Figure 6A schematic diagram of the structure of the electronic device provided in this application.

[0067] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0068] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0069] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solutions of this application comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0070] 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, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0071] It should be noted that the configuration method, apparatus, and electronic device for operating system parameters disclosed herein can be used in the field of data processing or other related fields. It can also be used in any field other than data processing or other related fields. The application fields of the configuration method, apparatus, and electronic device for operating system parameters disclosed herein are not limited.

[0072] The technical solutions of this application will be described in detail below with reference to specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0073] To clearly understand the technical solution of this application, the existing solutions are first described in detail. Currently, different application software has different requirements for the operating environment. Therefore, how to quickly configure operating system parameters is a crucial requirement for the rapid deployment of application software. When configuring operating system parameters, they are generally verified through manual experience. However, due to the large number of operating system parameters and their interrelationships, such as the network latency parameter of application software, related parameters affecting network latency may include network quality, electronic device hardware parameters, and system-allocated resources. Considering only a single operating system parameter can affect the accuracy of system parameter configuration. Therefore, the accuracy of current system parameter configuration is relatively low.

[0074] Therefore, in response to the problem of low accuracy in parameter configuration in existing technologies due to the large number of operating system parameters and the mutual influence between them, the inventors discovered in their research that, in order to solve this problem, the influence between each main parameter and related parameters can be comprehensively considered. By iteratively detecting the main parameters and related parameters, the optimal parameters can be obtained, thereby improving the accuracy of system parameter configuration.

[0075] Specifically, the system acquires at least one set of target system parameters to be configured for the target application software, along with the corresponding value ranges for these parameters. Each set of target system parameters includes a primary parameter and at least one associated parameter, with the value ranges encompassing both the primary and associated parameter ranges. The system iterates through the corresponding value ranges for each set of target system parameters and performs multiple initial configurations based on these values. After each initial configuration, a preset detection program is run to obtain the execution result data. The initially configured target system parameters are then evaluated based on the execution result data to obtain the evaluation result data. Finally, the final values ​​for the corresponding target system parameters are configured according to the evaluation result data.

[0076] The operating system parameter configuration method of this application iterates through the target application software's main parameters and at least one associated parameter according to their value ranges, while simultaneously running a preset detection program to detect the main parameters and associated parameters after value acquisition, obtaining execution result data. By evaluating the execution result data, corresponding evaluation result data is obtained, and the main parameters and associated parameters are configured based on the evaluation result data. Because this method considers the mutual influence between operating system parameters and detects both main parameters and associated parameters simultaneously, the accuracy of parameter configuration is improved.

[0077] Based on the above-mentioned inventive discovery, the inventor has proposed the technical solution of this application.

[0078] The following describes the application scenarios of the operating system parameter configuration method provided in the embodiments of this application. For example... Figure 1 As shown, 10 is the first electronic device and 20 is the second electronic device. The network architecture of the application scenario corresponding to the operating system parameter configuration method provided in this application embodiment includes: a first electronic device 10 and a second electronic device 20. The first electronic device 10 can be a mobile terminal, computer, etc.

[0079] For example, when preparing to configure operating system parameters for a target application software, the first electronic device 10 obtains at least one set of target system parameters to be configured for the target application software and the corresponding parameter value ranges. Each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value ranges include the value range of the main parameter and the value range of the associated parameter. Simultaneously, the first electronic device 10 iterates through the at least one set of target system parameters according to their corresponding value ranges, and performs multiple initial configurations of the target system parameters according to each value. After each initial configuration of the target system parameters, a preset detection program is run to obtain the running result data.

[0080] The first electronic device 10 evaluates the target system parameters after initial configuration based on the various operational result data to obtain evaluation result data. Based on the evaluation result data, it configures the final values ​​for the corresponding target system parameters. After determining the final values, the first electronic device 10 can statistically analyze the final values ​​of the target system parameter configuration and output the configuration results to the second electronic device 20. The second electronic device 20 can analyze the compatibility between the target application software and the corresponding operating system based on the final values ​​of this configuration, and can also analyze the accuracy of the final values ​​of this configuration based on the final values ​​of historical configurations and the final values ​​of this configuration.

[0081] The embodiments of this application are described below with reference to the accompanying drawings.

[0082] Figure 2 A flowchart illustrating the method for configuring operating system parameters provided in this application. Figure 1 ,like Figure 2 As shown, in this embodiment, the execution entity of this application embodiment is an operating system parameter configuration device, which can be integrated into an electronic device, such as a mobile terminal or a computer. The operating system parameter configuration method provided in this embodiment includes the following steps:

[0083] S101, obtain at least one set of target system parameters to be configured for the target application software, and the corresponding parameter value ranges. Each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter.

[0084] In this embodiment, the target system parameters can be determined from the target application software, and the target system parameters and the corresponding parameter value ranges are obtained from the electronic device.

[0085] The operating system can be a mobile terminal operating system or a computer operating system; this embodiment does not limit this. The main parameter refers to the operating system parameters that the target application software needs to be tested. For example, if the target application software needs to configure network latency parameters, then the network latency parameter is the main parameter, and other parameters affecting network latency are related parameters. Similarly, if the target application software needs to configure storage space parameters, then the storage space parameter is the main parameter, and other parameters affecting storage space are related parameters.

[0086] The range of values ​​for the main parameter and the associated parameter can be set according to the actual application, and this embodiment does not limit this.

[0087] S102, iterate through at least one set of target system parameters according to the corresponding parameter value range, and perform multiple initial configurations of the target system parameters according to each value.

[0088] In this embodiment, the values ​​are traversed according to the corresponding parameter value range. The values ​​can be traversed in ascending order or in descending order.

[0089] After obtaining the values, the target system parameters are initially configured multiple times according to each value, thus providing a basis for subsequent numerical detection.

[0090] S103, after each initial configuration of the target system parameters, runs the preset detection program data to obtain the running result data.

[0091] Preset detection program data can be stored in a preset database and retrieved from the database when needed. This preset detection program data can consist of user-written code and can correspond to target system parameters. Different preset detection program data can be pre-set according to different target system parameters.

[0092] S104. Evaluate the target system parameters after initial configuration based on the various operation result data to obtain evaluation result data.

[0093] The evaluation results can be represented numerically or in grades. For example, a numerical value of 1-100 can be used, with better results closer to 100. Alternatively, grades A, B, C, D, and E can be used, with better results closer to A. Other methods of representation are also possible, and this embodiment does not limit the specific methods used.

[0094] S105, Configure the final values ​​for the corresponding target system parameters based on the evaluation results data.

[0095] In this embodiment, the optimal value corresponding to each evaluation result data can be determined based on the evaluation result data, and this value can be determined as the final value. The final value can then be configured for the corresponding target system parameters.

[0096] This application provides a method, apparatus, and electronic device for configuring operating system parameters. The method includes: obtaining at least one set of target system parameters to be configured for the target application software and the corresponding parameter value ranges. Each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter. The method iterates through the at least one set of target system parameters according to their corresponding value ranges and performs multiple initial configurations of the target system parameters according to each value. After each initial configuration of the target system parameters, a preset detection program is run to obtain running result data. Based on each running result data, the corresponding initially configured target system parameters are evaluated to obtain evaluation result data. Finally, the final values ​​are configured for the corresponding target system parameters according to each evaluation result data.

[0097] The operating system parameter configuration method of this application iterates through the target application software's main parameters and at least one associated parameter according to their value ranges, while simultaneously running a preset detection program to detect the main parameters and associated parameters after value acquisition, obtaining execution result data. By evaluating the execution result data, corresponding evaluation result data is obtained, and the main parameters and associated parameters are configured based on the evaluation result data. Because this method considers the mutual influence between operating system parameters and detects both main parameters and associated parameters simultaneously, the accuracy of parameter configuration is improved.

[0098] Figure 3 A flowchart illustrating the method for configuring operating system parameters provided in this application. Figure 2 ,like Figure 3 As shown, the operating system parameter configuration method provided in this embodiment is a further refinement of the operating system parameter configuration method provided in the previous embodiment of this application. The operating system parameter configuration method provided in this embodiment includes the following steps.

[0099] S201, obtain at least one set of target system parameters to be configured for the target application software, and the range of parameter values ​​corresponding to the target system parameters.

[0100] The implementation of S201 in this embodiment is similar to that of S101 in the previous embodiment, and will not be described in detail here.

[0101] S202, traverse and extract values ​​of at least one set of target system parameters according to the corresponding parameter value range, using a primary parameter priority traversal strategy.

[0102] In this embodiment, since the main parameters are the parameters that the target application software mainly needs to configure, and the associated parameters are the parameters that affect the main parameters, the value traversal can be performed in the order of priority traversing the parameter value range of the main parameters, thereby improving the configuration accuracy of the main parameters.

[0103] Optionally, in this embodiment, S202 can be further refined as follows:

[0104] S2021: Repeat the following operations until the main parameter has no value within its range:

[0105] S2022: Get the current value of the main parameter within the range of the main parameter's values.

[0106] S2023: Keep the current value of the main parameter unchanged, and iterate through the associated parameters within the corresponding range of associated parameter values ​​to obtain multiple sets of target system parameter values ​​for the current value of the main parameter.

[0107] S2024: Determine the next value of the main parameter within the range of the main parameter's values ​​as the current value.

[0108] For example, if the main parameter is parameter A and the associated parameter is parameter a, with parameter A having a value range of 1-10 and parameter a having a value range of 2-8, then first, we choose the current value of parameter A as 1 and the current value of parameter a as 2, keeping the current value of parameter A unchanged. Then, we iterate through parameter a from 2 to 8, obtaining combinations of values ​​such as A=1, a=2, A=1, a=3, A=1, a=4, ... A=1, a=8. At this point, since the iteration of parameter a has been completed, the current value of parameter A becomes 2. We keep the value of parameter A unchanged and continue iterating through the values ​​of parameter a, obtaining combinations of values ​​such as A=2, a=2, A=2, a=3, A=2, a=4, ... A=2, a=8. This process continues until the iteration of the value of parameter A is complete.

[0109] For example, if the main parameter is parameter A, and the associated parameters are parameters a and b, with parameter A having a value range of 1-10, parameter a having a value range of 2-8, and parameter b having a value range of 3-9, then first, we select the current value of parameter A as 1, the current value of parameter a as 2, and the current value of parameter b as 3. Maintaining the current value of parameter A as 1, we iterate through the current values ​​of parameters a and b, obtaining values ​​such as parameter A as 1, parameter a as 2, parameter b as 4, parameter A as 1, parameter a as 2, parameter b as 5, ..., parameter A as 1, parameter a as 8, parameter b as 9, etc. At this point, since the values ​​of parameters a and b have been iterated through, the current value of parameter A becomes 2. Maintaining the value of parameter A, we continue to iterate through the values ​​of parameters a and b, and repeat the above steps until the values ​​of parameter A have been iterated through. The values ​​can also be selected in descending order; this embodiment does not limit this.

[0110] By associating main parameters and related parameters of the operating system and performing successive loop checks, the detection process can be accelerated and the efficiency of parameter configuration can be improved.

[0111] S203, perform multiple initial configurations of the target system parameters according to each value.

[0112] In this embodiment, after determining the values, initial configuration is performed. Initial configuration refers to assigning values ​​to the main parameters and associated parameters to be detected, thereby enabling subsequent detection processing. Different values ​​generally correspond to multiple initial configurations.

[0113] Optionally, in this embodiment, S203 includes:

[0114] Register the primary parameters, associated parameters, and parameter value ranges in the resource configuration table.

[0115] The primary and associated parameters registered in the resource configuration table are iterated through according to their corresponding value ranges to perform multiple initial configurations of the target system parameters based on each value.

[0116] In this embodiment, the resource configuration table is used to register and configure the resources that need to be detected within the operating system. After registration, it can be reused. The configuration table consists of detection items, detection behaviors, parameter ranges, result assessments, and optimal parameters.

[0117] In this embodiment, the resource configuration table is first registered, registering the main parameters, associated parameters, and parameter value ranges of the detection items to be tested. After registration, the resource configuration table can be reused, thereby improving the efficiency of multiple tests on system parameters. Based on the registered resource configuration table, values ​​can be iterated according to the corresponding parameter value ranges to perform multiple initial configurations of the target system parameters according to each value.

[0118] Additionally, the resource configuration table can also register detection behaviors, namely preset detection program data, which is code data used for detection.

[0119] S204, Register the preset detection program data corresponding to the target system parameters in the resource configuration table.

[0120] In this embodiment, registering the preset detection program data corresponding to the target system parameters can provide a basis for subsequent detection actions. The preset detection program data can be user-written code or scripts.

[0121] S205: After each initial configuration of the target system parameters is completed, the preset detection program data is run based on the resource configuration table and the target system parameters after the initial configuration, and the corresponding running result data is generated.

[0122] In this embodiment, the generated execution result data may vary depending on the different requirements of the application. For example, if network latency is a requirement, the execution result data will be network latency data; if execution speed is a requirement, the execution result data will be execution speed data; if storage space is a requirement, the execution result data will be storage space usage data.

[0123] S206. Obtain the corresponding evaluation strategy data from the preset database based on the target system parameters. The preset database stores the mapping relationship between system parameters and evaluation strategy data.

[0124] In this embodiment, the evaluation strategy data can be pre-stored in a preset database. When needed, it can be retrieved from the preset database, which facilitates multiple cycles of use and improves the overall efficiency of system parameter configuration.

[0125] After obtaining the corresponding evaluation strategy data from the preset database, the evaluation strategy data can be registered in the resource configuration table, thereby evaluating and processing the operation result data based on the resource configuration table, further improving the evaluation efficiency of the operation result data.

[0126] S207: Evaluate each running result data according to the corresponding evaluation strategy data, and generate evaluation result data corresponding to the target system parameters after initial configuration.

[0127] In this embodiment, the requirements for the generated execution result data differ due to varying application needs. For example, if the execution result data is network latency data, a lower network latency value is better; if the execution result data is storage space data, a higher storage space value is better. Therefore, by evaluating each execution result data using corresponding evaluation strategy data, the obtained evaluation result data can better reflect the application requirements.

[0128] S208, select the target system parameter value corresponding to the evaluation result data with the best evaluation result as the final value.

[0129] S209 uses the resource configuration table to configure the final values ​​of the target system parameters.

[0130] In this embodiment, the target system parameter value corresponding to the evaluation result data with the best evaluation result is the optimal value, and this target system parameter value can be determined as the final value for configuring the target system parameter.

[0131] Optionally, in this embodiment, after S209, the following steps are also included:

[0132] Fill in the resource allocation table with the evaluation results and final values.

[0133] Save the resource configuration table to the preset database.

[0134] In this embodiment, by filling the resource configuration table with each evaluation result data and the final value, the resource configuration table can be used again in subsequent repeated configurations, thereby improving the efficiency of subsequent configurations.

[0135] The operating system parameter configuration method in this embodiment accelerates the parameter verification process by performing batch and iterative detection of target system parameters, enabling the optimal parameter values ​​to be obtained more quickly, thus facilitating rapid deployment and improving program running efficiency.

[0136] To further illustrate the configuration method of the operating system parameters in this application, a detailed explanation will be provided below in conjunction with the accompanying drawings. Figure 4 As shown, the detection result list refers to the results of each execution of the detection. The target system parameters include main parameters and associated parameters. The relationship between the main parameters and associated parameters can be represented by the following table:

[0137] Table of relationships between primary parameters and associated parameters

[0138]

[0139] This embodiment performs detection-related processing based on a resource configuration table. First, it registers the main parameters, associated parameters, parameter value ranges, detection program data, and evaluation strategy data with the resource configuration table.

[0140] After registration, each item in the resource configuration table is checked.

[0141] a) For each main parameter item, use the parameter value range (P0—PN) as the base and cyclically use the main parameter (PX, x value range is 0-N) to set the system parameters.

[0142] i. When associated parameter items exist, loop through the following operations until the main parameter has no value within its range: Obtain the current value of the main parameter within its range. Keeping the current value of the main parameter unchanged, iterate through the associated parameters within their corresponding ranges to obtain multiple sets of target system parameter values ​​for the current value of the main parameter. Determine the next value of the main parameter within its range as the current value.

[0143] ii. Detect the main parameters and associated parameters.

[0144] iii. Determine if both the main parameters and associated parameters have been traversed and detected. If both have been traversed and detected, record the detection results in a temporary detection result list TR, forming TR0-TRN. If the main parameters and associated parameters have not been traversed and detected, continue with step i.

[0145] iiii. Evaluate the temporary detection result list TR using the evaluation strategy data to obtain the optimal parameter values ​​and record them as optimal parameters or parameter groups.

[0146] b) After all detection items are completed, configure the optimal parameter values ​​for the system parameters.

[0147] Figure 5 A schematic diagram of the structure of the operating system parameter configuration device provided in this application is shown below. Figure 5 As shown, in this embodiment, the operating system parameter configuration device 300 can be installed in the electronic device, and the operating system parameter configuration device 300 includes:

[0148] The acquisition module 301 is used to acquire at least one set of target system parameters to be configured for the target application software, and the corresponding parameter value ranges. Each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter.

[0149] The value retrieval module 302 is used to iterate through at least one set of target system parameters according to the corresponding parameter value range, and perform multiple initial configurations of the target system parameters according to each value.

[0150] The running module 303 is used to run preset detection program data after each initial configuration of the target system parameters to obtain running result data.

[0151] The evaluation module 304 is used to evaluate the corresponding target system parameters after initial configuration based on each running result data, so as to obtain evaluation result data.

[0152] Configuration module 305 is used to configure the final values ​​of the corresponding target system parameters based on the evaluation result data.

[0153] The operating system parameter configuration device provided in this embodiment can execute... Figure 2 The technical solution of the method embodiment shown has the same implementation principle and technical effect as... Figure 2 The methods and embodiments shown are similar and will not be described in detail here.

[0154] The operating system parameter configuration device provided in this application is a further refinement of the operating system parameter configuration device provided in the previous embodiment. The operating system parameter configuration device 300 includes:

[0155] Optionally, in this embodiment, when the value-taking module 302 iterates through at least one set of target system parameters according to the corresponding parameter value range, it is specifically used for:

[0156] The strategy of iterating through at least one set of target system parameters with the primary parameter first is to traverse and extract values ​​according to the corresponding parameter value range.

[0157] Optionally, in this embodiment, when the value retrieval module 302 traverses and retrieves values ​​for at least one set of target system parameters according to the corresponding parameter value range using a primary parameter-first traversal strategy, it is specifically used for:

[0158] Repeat the following steps until the main parameter has no value within its range:

[0159] Retrieve the current value of the primary parameter within its range. Keeping the current value of the primary parameter unchanged, iterate through the associated parameters within their respective ranges to obtain multiple sets of target system parameter values ​​for the current value of the primary parameter. Determine the next value of the primary parameter within its range as the current value.

[0160] Optionally, in this embodiment, the evaluation module 304 is specifically used for:

[0161] The corresponding evaluation strategy data is retrieved from a preset database based on the target system parameters. The preset database stores the mapping relationship between system parameters and evaluation strategy data. Each operational result data point is evaluated based on the corresponding evaluation strategy data to generate evaluation result data corresponding to the initially configured target system parameters.

[0162] Optionally, in this embodiment, the configuration module 305 is specifically used for:

[0163] The target system parameter value corresponding to the optimal evaluation result is selected as the final value. The resource configuration table is used to configure the final value of the target system parameter.

[0164] Optionally, in this embodiment, when the value-taking module 302 performs multiple initial configurations of the target system parameters according to each value, it is specifically used for:

[0165] Register primary parameters, associated parameters, and parameter value ranges in the resource configuration table. The primary and associated parameters registered in the resource configuration table are then iterated through according to their corresponding value ranges to perform multiple initial configurations of the target system parameters based on each value.

[0166] Optionally, in this embodiment, the running module 303 is specifically used for:

[0167] Register the preset detection program data corresponding to the target system parameters in the resource configuration table. After each initial configuration of the target system parameters, run the preset detection program data based on the resource configuration table and the initially configured target system parameters to generate the corresponding execution result data.

[0168] Optionally, in this embodiment, the operating system parameter configuration device 300 further includes:

[0169] Populate the evaluation results and final values ​​into the resource configuration table. Save the resource configuration table to the preset database.

[0170] The operating system parameter configuration device provided in this embodiment can execute... Figures 2-4 The technical solution of the method embodiment shown has the same implementation principle and technical effect as... Figures 2-4 The methods and embodiments shown are similar and will not be described in detail here.

[0171] According to embodiments of this application, this application also provides an electronic device, a computer-readable storage medium, and a computer program product.

[0172] like Figure 6 As shown, Figure 6 This is a schematic diagram of the electronic device provided in this application. The electronic device is intended for various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.

[0173] like Figure 6As shown, the electronic device includes a processor 401 and a memory 402. The various components are interconnected via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processor can process instructions executed within the electronic device.

[0174] The memory 402 is the non-transitory computer-readable storage medium provided in this application. The memory stores instructions executable by at least one processor to cause at least one processor to perform the operating system parameter configuration method provided in this application. The non-transitory computer-readable storage medium of this application stores computer instructions for causing a computer to perform the operating system parameter configuration method provided in this application.

[0175] Memory 402, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the operating system parameter configuration method in the embodiments of this application (e.g., appendix). Figure 5 The acquisition module 301, value retrieval module 302, execution module 303, evaluation module 304, and configuration module 305 are shown. The processor 401 executes various functional applications and data processing of the electronic device by running non-transient software programs, instructions, and modules stored in the memory 402, that is, it implements the operating system parameter configuration method in the above method embodiment.

[0176] In addition, this embodiment also provides a computer product that, when the instructions in the computer product are executed by the processor of an electronic device, enables the electronic device to execute the operating system parameter configuration method of the above embodiment.

[0177] Other embodiments of the present application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of this application that follow the general principles of the embodiments of this application and include common knowledge or customary techniques in the art not disclosed in the embodiments of this application.

[0178] It should be understood that the embodiments of this application are not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from their scope. The scope of the embodiments of this application is limited only by the appended claims.

Claims

1. A method for configuring operating system parameters, characterized in that, include: The system obtains at least one set of target system parameters to be configured for the target application software, and the parameter value range corresponding to the target system parameters; each set of target system parameters includes a main parameter and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter; At least one set of target system parameters are traversed and their values ​​are obtained according to the corresponding parameter value range using the strategy of prioritizing the main parameter. The target system parameters are then initially configured multiple times according to each value, including: looping through the following operations until the main parameter has no value within its value range: obtaining the current value of the main parameter within its value range; keeping the current value of the main parameter unchanged, traversing and obtaining values ​​for associated parameters within their corresponding value ranges to obtain multiple sets of target system parameter values ​​for the current value of the main parameter; and determining the next value of the main parameter within its value range as the current value. After each initial configuration of the target system parameters, a preset detection program is run to obtain the running result data; The target system parameters after initial configuration are evaluated based on the various operational result data to obtain evaluation result data. Configure the final values ​​for the corresponding target system parameters based on the evaluation results data.

2. The method according to claim 1, characterized in that, The evaluation of the target system parameters after initial configuration based on each operational result data is used to obtain evaluation result data, including: The corresponding evaluation strategy data is obtained from a preset database based on the target system parameters; the preset database stores the mapping relationship between system parameters and evaluation strategy data; The evaluation results data are evaluated based on the corresponding evaluation strategy data, and the evaluation results data corresponding to the target system parameters after initial configuration are generated.

3. The method according to claim 1, characterized in that, The step of configuring the final values ​​for the corresponding target system parameters based on the evaluation results data includes: The target system parameter value corresponding to the evaluation result data with the best evaluation result is selected as the final value; The resource configuration table is used to configure the final values ​​of the target system parameters.

4. The method according to claim 3, characterized in that, The process of performing multiple initial configurations of the target system parameters according to each value includes: Register the main parameters, the associated parameters, and the parameter value ranges in the resource configuration table; The primary and associated parameters registered in the resource configuration table are iterated through according to their corresponding value ranges to perform multiple initial configurations of the target system parameters based on each value.

5. The method according to claim 4, characterized in that, After each initial configuration of the target system parameters, a preset detection program is run to obtain the running result data, including: Register the preset detection program data corresponding to the target system parameters in the resource configuration table; After each initial configuration of the target system parameters is completed, the preset detection program data is run based on the resource configuration table and the initially configured target system parameters to generate the corresponding running result data.

6. The method according to any one of claims 1 to 5, characterized in that, After configuring the final values ​​for the corresponding target system parameters based on the evaluation results data, the method further includes: Fill in the resource allocation table with the evaluation results and final values; Save the resource configuration table to the preset database.

7. A device for configuring operating system parameters, characterized in that, include: The acquisition module is used to acquire at least one set of target system parameters to be configured for the target application software, and the parameter value range corresponding to the target system parameters; The target system parameters described in each group include main parameters and at least one associated parameter, and the parameter value range includes the value range of the main parameter and the value range of the associated parameter; The value retrieval module is used to iterate through at least one set of target system parameters according to the corresponding parameter value range, and perform multiple initial configurations of the target system parameters according to each value. The running module is used to run preset detection program data after each initial configuration of the target system parameters to obtain running result data; The evaluation module is used to evaluate the corresponding target system parameters after initial configuration based on the various operation result data, so as to obtain evaluation result data; The configuration module is used to configure the final values ​​of the corresponding target system parameters based on the evaluation result data. The value retrieval module is specifically used to traverse and retrieve values ​​for at least one set of target system parameters according to the corresponding parameter value range using a strategy that prioritizes the traversal of the main parameter, and to perform multiple initial configurations of the target system parameters according to each value. This includes: performing the following operations in a loop until the main parameter has no value within its value range: obtaining the current value of the main parameter within its value range; keeping the current value of the main parameter unchanged, traversing and retrieving values ​​for associated parameters within their corresponding value ranges to obtain multiple sets of target system parameter values ​​for the current value of the main parameter; and determining the next value of the main parameter within its value range as the current value.

8. An electronic device, characterized in that, include: Memory and processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the operating system parameter configuration method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Hadoop configuration parameter optimization method based on statistic analysis

    CN104750780A

  • Autonomic determination of configuration settings by walking the configuration space

    US20040210884A1