A cross-platform deployment system for domestic operating systems based on hardware feature adaptation

Through hardware feature adaptation technology, hardware parameters are analyzed to generate configuration files, and the operating system is adaptively transplanted and compiled to solve the problem of low cross-platform deployment efficiency of domestic operating systems, improve compatibility and performance, reduce costs and workload, and promote Promote the promotion and application of domestic operating systems.

CN118394369BActive Publication Date: 2024-09-24NANJING SUYI IND
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410856205.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-24
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Domestic operating systems do not fully match the hardware during cross-platform deployment, resulting in low deployment and installation efficiency and high resource usage. Existing technologies cannot effectively solve this problem.

Method used

A cross-platform deployment system based on hardware feature adaptation is adopted. Hardware parameters are obtained through the hardware feature analysis module, system configuration files are generated, the operating system is adaptively transplanted and compiled, and resources are optimized, verified and tested before deployment and installation.

Benefits of technology

It improves the compatibility and applicability of the operating system on multiple hardware platforms, reduces deployment and maintenance costs, optimizes system performance and resource utilization, and improves response speed and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394369B
    Figure CN118394369B
Patent Text Reader

Abstract

The present invention discloses a cross-platform deployment system of a domestic operating system based on hardware feature adaptation, which belongs to the field of computer application technology. The method specifically comprises: performing a comprehensive feature analysis on a target hardware platform, obtaining hardware feature parameters, generating a corresponding system configuration file according to the hardware feature parameters, adapting the platform to be deployed, transplanting the domestic operating system to the target hardware platform according to the actual hardware environment, and compiling it, and optimizing the allocation of system resources. Before deployment, the platform to be deployed is verified and tested, the domestic operating system image is deployed and installed on the platform to be deployed, and configured according to actual needs, dynamically adjusting the system configuration according to the actual hardware environment, optimizing the system performance and resource utilization, and improving the response speed and stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of computer application, and in particular is a cross-platform deployment system of a domestic operating system based on hardware feature adaptation. Background Art

[0002] In recent years, with the rapid progress of localization, domestic operating systems, middleware, databases and other related technologies have also made some major breakthroughs, but from the current situation, the localization of information technology has not yet established a complete ecosystem. The localization process depends on the joint development of software and hardware technologies. For cross-platform deployment, since domestic operating systems and hardware are not fully matched, configuration files need to be rewritten and compiled, which will slow down the deployment and installation of domestic operating systems and occupy more resources.

[0003] For example, the Chinese patent with publication number CN116400935A discloses a cross-platform deployment system and method based on a domestic platform, which includes the following steps: a daemon installation step, installing and starting the daemon, and granting the daemon root permissions; an installation command acquisition step, acquiring the installation command; an installation command delivery step, delivering the installation command to the daemon through a socket; an application installation step, the daemon installs the application according to the installation command; a mandatory patch installation step, acquiring mandatory patch information, and downloading mandatory patches. This solution can reduce the software installation process, realize the secret-free installation of software, and thus improve the efficiency of software download and installation.

[0004] The defects of the above patent are: it does not take into account the problems of domestic operating systems not fully matching hardware, slow deployment and installation efficiency, and occupying more resources when deployed across platforms. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention proposes a cross-platform deployment system of a domestic operating system based on hardware feature adaptation, which performs a comprehensive feature analysis on the target hardware platform, obtains hardware feature parameters, generates a corresponding system configuration file based on the hardware feature parameters, adapts the platform to be deployed, and transplants the domestic operating system to the target hardware platform according to the actual hardware environment, compiles it, and optimizes the allocation of system resources. Before deployment, the platform to be deployed is verified and tested, the domestic operating system image is deployed and installed on the platform to be deployed, and configured according to actual needs.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A cross-platform deployment system for a domestic operating system based on hardware feature adaptation, comprising: a hardware feature analysis module, a system configuration generation module, an adaptive transplantation and compilation module, a verification and testing module, and a deployment and installation module;

[0008] The hardware feature analysis module is used to perform a comprehensive feature analysis on the target hardware platform and obtain hardware feature parameters;

[0009] The system configuration generation module is used to generate a corresponding system configuration file based on the hardware characteristic parameters to adapt to the platform to be deployed;

[0010] The adaptive transplantation and compilation module is used to transplant the domestic operating system to the target hardware platform according to the actual hardware environment, compile it, and optimize the allocation of system resources;

[0011] The verification and testing module is used to verify and test the platform to be deployed before deployment;

[0012] The deployment and installation module is used to deploy and install the domestic operating system image on the platform to be deployed, and configure it according to actual needs.

[0013] Specifically, the hardware feature analysis module includes: a processor feature analysis unit, a memory feature analysis unit, a network interface feature analysis unit and a power consumption and heat dissipation feature analysis unit;

[0014] The processor feature analysis unit is used to obtain the processor type, core number and main frequency, and calculate the processor speed and instruction execution speed;

[0015] The speed of the processor is calculated as: , F represents the speed of the processor in Hertz, T represents the duration of the clock cycle, and the formula for calculating the instruction execution speed of the processor is: , Indicates the processor's instruction execution speed. Indicates the number of instructions executed per cycle;

[0016] The memory feature analysis unit is used to perform feature analysis on the memory device to obtain the memory storage bandwidth and storage capacity;

[0017] The calculation formula for memory storage bandwidth is: , represents memory storage bandwidth, W represents data bit width, and V represents data transmission rate. Indicates the operating frequency of the memory device;

[0018] The network interface feature analysis unit is used to perform feature analysis on the network interface to obtain the bandwidth and delay of the network interface;

[0019] The bandwidth calculation formula of the network interface is: ,in, represents the bandwidth of the network interface, p represents the number of network interfaces, represents the maximum transmission rate of the i-th network interface, Indicates the transmission time of the network interface;

[0020] The power consumption and heat dissipation characteristic analysis unit is used to analyze the power consumption and heat dissipation characteristics of the platform to be deployed, and obtain the power consumption and heat dissipation efficiency of the platform to be deployed;

[0021] The power consumption calculation formula of the platform to be deployed is: , Indicates the power consumption of the platform to be deployed, represents the current of the platform to be deployed, represents the voltage of the platform to be deployed, and the heat dissipation efficiency calculation formula of the platform to be deployed is: , Indicates the heat dissipation efficiency of the platform to be deployed, Indicates the heat dissipation of the platform to be deployed.

[0022] Specifically, the system configuration generation module includes: a system configuration requirement determination unit, a relationship analysis unit and a configuration file generation unit;

[0023] The system configuration requirement determination unit is used to determine the requirements for generating a system configuration file according to application requirements and performance requirements, including: the version and type of the domestic operating system, the type and size of the file system, network configuration, and software package installation;

[0024] The relationship analysis unit is used to map the hardware characteristic parameters with the system configuration requirements to determine the influence of each hardware characteristic parameter on the system configuration;

[0025] The configuration file generating unit is used to write algorithms or scripts to generate system configuration files. These files can be text files or script files, depending on the requirements.

[0026] Specifically, the adaptive transplantation and compilation module includes: a domestic operating system transplantation unit, a compilation optimization unit and a resource allocation optimization unit;

[0027] The domestic operating system transplantation unit is used to transplant the domestic operating system according to the characteristics and architecture of the platform to be deployed, which involves adjusting the kernel configuration and the development or modification of the driver program to ensure that the operating system can run normally on the target hardware;

[0028] The compiling optimization unit is used to use an appropriate compiler and compiling options, and utilize a compiling optimization strategy to optimize the compiler and compiling parameters;

[0029] The resource allocation optimization unit is used to reasonably allocate and optimize system resources according to the environment and application scenario of the platform to be deployed by using resource allocation strategies.

[0030] Specifically, the compilation optimization strategy in the compilation optimization unit includes the following specific steps:

[0031] Step S101: Select a compiler and tool chain according to the characteristics of the platform to be deployed, the compilers include GNU Compiler Collection and LLVM Clang;

[0032] Step S102: According to hardware characteristics and performance requirements, compiler parameters are configured to optimize the compilation process and generated code, optimize code size and execution time, code compilation speed and system response time;

[0033] Step S103: The specific formula for optimizing code size and execution time is: , represents the function of optimizing code size and execution time, K represents the trade-off parameter (indicating the emphasis on code size and execution time), Indicates the size of the code generated by the compilation. Indicates the time when the code is executed;

[0034] The specific formula for optimizing code compilation speed is: , A function that optimizes code compilation speed. Indicates the proportion of the parallelized part, Indicates the degree of parallelism (i.e., the number of parallel processor cores);

[0035] Step S104: The specific formula for optimizing the system response time is: , represents the function that optimizes the system response time, Indicates the basic response time of the system. represents the response time impact coefficient, Represents the resource utilization function, that is, the impact of resource utilization on response time.

[0036] Specifically, the resource allocation strategy in the resource allocation optimization unit includes the following specific steps:

[0037] Step S201: Calculate the CPU utilization, memory utilization and disk utilization of the platform to be deployed. The CPU utilization calculation formula of the platform to be deployed is: , Indicates the CPU utilization of the platform to be deployed. Indicates the time the CPU executes the task. It represents the total time, that is, the sum of the time when tasks are not executed and the time when tasks are executed. The calculation formula for the memory utilization of the platform to be deployed is: , Indicates the memory utilization of the platform to be deployed. Indicates the amount of memory used. Indicates the total amount of memory;

[0038] Step S202: The disk utilization calculation formula of the platform to be deployed is: , Indicates the disk utilization of the platform to be deployed. Indicates the usage of disk read operations. Indicates the usage of disk write operations, and total indicates the size of the disk;

[0039] Step S203: Optimize the resource allocation of the platform to be deployed. The specific formula is:

[0040] ,

[0041] in, represents the resource allocation optimization function of the platform to be deployed, m represents the number of resources in the platform to be deployed, represents the weight of the i-th resource in the platform to be deployed, represents the coefficient of mutual influence between adjustment resources, represents the current utilization rate of the i-th resource in the platform to be deployed, represents the current utilization rate of the jth resource in the platform to be deployed;

[0042] Step S204: According to the resource allocation optimization function of the platform to be deployed, the relationship and priority of the resources in the platform to be deployed are obtained, and the resources with the highest priority are allocated to the compilation of the domestic operating system.

[0043] Specifically, the current utilization rate of the jth resource in the platform to be deployed in step S203 is The calculation formula is: ,in, Indicates the CPU utilization weight of the platform to be deployed. Indicates the memory utilization weight of the platform to be deployed. Indicates the disk utilization weight of the platform to be deployed.

[0044] Specifically, the verification and testing module includes: a function test unit, a performance test unit, a stability test unit, a compatibility test unit, a security test unit, an automation test unit and a user experience test unit;

[0045] The functional testing unit is used to verify whether the basic functions of the system meet expectations, such as system startup, network connection, file system access, etc.;

[0046] The performance testing unit is used to evaluate the performance indicators of the domestic operating system, including response time, throughput, and resource utilization, which can be achieved through load testing, stress testing, etc.

[0047] The stability testing unit is used to test the stability of the domestic operating system during operation and under high load for a period of time, and to detect whether there are problems such as memory leaks and resource exhaustion;

[0048] The compatibility testing unit is used to verify the compatibility of the domestic operating system with software, hardware or services to ensure that the system can be seamlessly integrated with the existing environment;

[0049] The security testing unit is used to evaluate the security of the system, including vulnerability scanning, permission control, and data encryption tests;

[0050] The automated testing unit is used to write automated testing scripts to perform automated testing on the domestic operating system to improve testing efficiency and coverage, including unit testing, integration testing, etc.;

[0051] The user experience testing unit is used to evaluate the user interface and interactive experience of the domestic operating system to ensure that users can use the system conveniently and achieve the expected operating results.

[0052] Specifically, the automated testing unit includes: a unit testing subunit and an integrated testing subunit;

[0053] The unit testing subunit is used to test all unit functions in the domestic operating system;

[0054] The integrated test sub-unit is used to test the integrated functions of all units in the domestic operating system.

[0055] Specifically, the deployment and installation module includes: an image creation and packaging unit, an image writing and installation unit, a configuration and initialization unit, and a secondary verification and testing unit;

[0056] The image creation and packaging unit is used to create a domestic operating system image, including a domestic operating system kernel, a driver, a software package, and a configuration file, and to package the created domestic operating system image file so as to be installed and deployed on a target platform;

[0057] The image writing and installation unit is used to write the domestic operating system image into the disk or storage medium of the platform to be deployed, execute the installation program or script, decompress the image file and install it to the specified location of the platform to be deployed;

[0058] The configuration and initialization unit is used to configure the installed domestic operating system according to actual needs, including network settings, user accounts, service startup, firewall configuration, and execution of initialization scripts or configuration files to ensure that the system can operate normally after installation;

[0059] The secondary verification and testing unit is used to perform secondary verification and testing on the installed domestic operating system to ensure that the system can start and run normally and meet the expected functional and performance requirements.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] 1. The present invention proposes a cross-platform deployment system for a domestic operating system based on hardware feature adaptation, which improves the compatibility and applicability of the operating system on a variety of hardware platforms and reduces the cost and workload of deployment and maintenance.

[0062] 2. The present invention proposes a cross-platform deployment system of a domestic operating system based on hardware feature adaptation, which dynamically adjusts the system configuration according to the actual hardware environment, optimizes system performance and resource utilization, and improves the response speed and stability of the system.

[0063] 3. The present invention proposes a cross-platform deployment system for domestic operating systems based on hardware feature adaptation, which provides more reliable technical support for the promotion and application of domestic operating systems and promotes the development and growth of my country's information technology industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 This is a system architecture diagram of a domestic operating system cross-platform deployment based on hardware feature adaptation of the present invention;

[0065] Figure 2 This is a flow chart of a cross-platform deployment method of a domestic operating system based on hardware feature adaptation of the present invention;

[0066] Figure 3 This is an electronic device diagram of a method for cross-platform deployment of a domestic operating system based on hardware feature adaptation according to the present invention. DETAILED DESCRIPTION

[0067] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, in the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate the orientation or position relationship based on the orientation or position relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "No. 1", "No. 2" and "No. 3" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The present invention is further explained below in conjunction with specific embodiments.

[0068] Example 1

[0069] See also Figure 1 ,An embodiment provided by the present invention: a domestic operating system cross-platform deployment system based on hardware feature adaptation, including: a hardware feature analysis module, a system configuration generation module, an adaptive transplantation and compilation module, a verification and testing module, and a deployment and installation module;

[0070] The hardware feature analysis module is used to perform a comprehensive feature analysis on the target hardware platform and obtain hardware feature parameters;

[0071] The system configuration generation module is used to generate a corresponding system configuration file based on the hardware characteristic parameters to adapt to the platform to be deployed;

[0072] The adaptive transplantation and compilation module is used to transplant the domestic operating system to the target hardware platform according to the actual hardware environment, compile it, and optimize the allocation of system resources;

[0073] The verification and testing module is used to verify and test the platform to be deployed before deployment;

[0074] The deployment and installation module is used to deploy and install the domestic operating system image on the platform to be deployed, and configure it according to actual needs.

[0075] The hardware feature analysis module includes: a processor feature analysis unit, a memory feature analysis unit, a network interface feature analysis unit and a power consumption and heat dissipation feature analysis unit;

[0076] The processor feature analysis unit is used to obtain the processor type, core number and main frequency, and calculate the processor speed and instruction execution speed;

[0077] The speed of the processor is calculated as: , F represents the speed of the processor in Hertz, T represents the duration of the clock cycle, and the formula for calculating the instruction execution speed of the processor is: , Indicates the processor's instruction execution speed. Indicates the number of instructions executed per cycle;

[0078] The memory feature analysis unit is used to perform feature analysis on the memory device to obtain the memory storage bandwidth and storage capacity;

[0079] The calculation formula for memory storage bandwidth is: , represents memory storage bandwidth, W represents data bit width, and V represents data transmission rate. Indicates the operating frequency of the memory device;

[0080] The network interface feature analysis unit is used to perform feature analysis on the network interface to obtain the bandwidth and delay of the network interface;

[0081] The bandwidth calculation formula of the network interface is: ,in, represents the bandwidth of the network interface, p represents the number of network interfaces, represents the maximum transmission rate of the i-th network interface, Indicates the transmission time of the network interface;

[0082] The power consumption and heat dissipation characteristic analysis unit is used to analyze the power consumption and heat dissipation characteristics of the platform to be deployed, and obtain the power consumption and heat dissipation efficiency of the platform to be deployed;

[0083] The power consumption calculation formula of the platform to be deployed is: , Indicates the power consumption of the platform to be deployed, represents the current of the platform to be deployed, represents the voltage of the platform to be deployed. The heat dissipation efficiency calculation formula of the platform to be deployed is: , Indicates the heat dissipation efficiency of the platform to be deployed, Indicates the heat dissipation of the platform to be deployed.

[0084] The system configuration generation module includes: a system configuration requirement determination unit, a relationship analysis unit and a configuration file generation unit;

[0085] The system configuration requirement determination unit is used to determine the requirements for generating a system configuration file according to application requirements and performance requirements, including: the version and type of the domestic operating system, the type and size of the file system, network configuration, and software package installation;

[0086] The relationship analysis unit is used to map the hardware characteristic parameters with the system configuration requirements to determine the influence of each hardware characteristic parameter on the system configuration;

[0087] The configuration file generating unit is used to write algorithms or scripts to generate system configuration files. These files can be text files or script files, depending on the requirements.

[0088] The adaptive transplantation and compilation module includes: domestic operating system transplantation unit, compilation optimization unit and resource allocation optimization unit;

[0089] The domestic operating system transplantation unit is used to transplant the domestic operating system according to the characteristics and architecture of the platform to be deployed, which involves adjusting the kernel configuration and the development or modification of the driver program to ensure that the operating system can run normally on the target hardware;

[0090] The compiling optimization unit is used to use an appropriate compiler and compiling options, and utilize a compiling optimization strategy to optimize the compiler and compiling parameters;

[0091] The resource allocation optimization unit is used to reasonably allocate and optimize system resources according to the environment and application scenario of the platform to be deployed by using resource allocation strategies.

[0092] The specific steps of the compilation optimization strategy in the compilation optimization unit include:

[0093] Step S101: Select a compiler and tool chain according to the characteristics of the platform to be deployed, the compilers include GNU Compiler Collection and LLVM Clang;

[0094] Step S102: According to hardware characteristics and performance requirements, compiler parameters are configured to optimize the compilation process and generated code, optimize code size and execution time, code compilation speed and system response time;

[0095] Step S103: The specific formula for optimizing code size and execution time is: , represents the function of optimizing code size and execution time, K represents the trade-off parameter, indicating the importance of code size and execution time, Indicates the size of the code generated by the compilation. Indicates the time when the code is executed;

[0096] The specific formula for optimizing code compilation speed is: , A function that optimizes code compilation speed. Indicates the proportion of the parallelized part, Indicates the degree of parallelism (i.e., the number of parallel processor cores);

[0097] Step S104: The specific formula for optimizing the system response time is: , represents the function that optimizes the system response time, Indicates the basic response time of the system. Indicates the response time impact coefficient. It is determined by those skilled in the art based on a large number of experiments. Represents the resource utilization function, that is, the impact of resource utilization on response time.

[0098] The specific steps of the resource allocation strategy in the resource allocation optimization unit include:

[0099] Step S201: Calculate the CPU utilization, memory utilization and disk utilization of the platform to be deployed. The CPU utilization calculation formula of the platform to be deployed is: , Indicates the CPU utilization of the platform to be deployed. Indicates the time the CPU executes the task. It represents the total time, that is, the sum of the time when tasks are not executed and the time when tasks are executed. The calculation formula for the memory utilization of the platform to be deployed is: , Indicates the memory utilization of the platform to be deployed. Indicates the amount of memory used. Indicates the total amount of memory;

[0100] Step S202: The disk utilization calculation formula of the platform to be deployed is: , Indicates the disk utilization of the platform to be deployed. Indicates the usage of disk read operations. Indicates the usage of disk write operations, and total indicates the size of the disk;

[0101] Step S203: Optimize the resource allocation of the platform to be deployed. The specific formula is:

[0102] ,

[0103] in, represents the resource allocation optimization function of the platform to be deployed, m represents the number of resources in the platform to be deployed, represents the weight of the i-th resource in the platform to be deployed, represents the coefficient of mutual influence between adjustment resources, represents the current utilization rate of the i-th resource in the platform to be deployed, represents the current utilization rate of the jth resource in the platform to be deployed, and Determined by those skilled in the art according to specific application requirements;

[0104] Step S204: According to the resource allocation optimization function of the platform to be deployed, the relationship and priority of the resources in the platform to be deployed are obtained, and the resources with the highest priority are allocated to the compilation of the domestic operating system.

[0105] The current utilization rate of the jth resource in the platform to be deployed in step S203 The calculation formula is: ,in, Indicates the CPU utilization weight of the platform to be deployed. Indicates the memory utilization weight of the platform to be deployed. Indicates the disk utilization weight of the platform to be deployed. , and It is determined by those skilled in the art according to specific application requirements.

[0106] Verification and testing modules include: functional testing unit, performance testing unit, stability testing unit, compatibility testing unit, security testing unit, automation testing unit and user experience testing unit;

[0107] The functional testing unit is used to verify whether the basic functions of the system meet expectations, such as system startup, network connection, file system access, etc.;

[0108] The performance testing unit is used to evaluate the performance indicators of the domestic operating system, including response time, throughput, and resource utilization, which can be achieved through load testing, stress testing, etc.

[0109] The stability testing unit is used to test the stability of the domestic operating system during operation and under high load for a period of time, and to detect whether there are problems such as memory leaks and resource exhaustion;

[0110] The compatibility testing unit is used to verify the compatibility of the domestic operating system with software, hardware or services to ensure that the system can be seamlessly integrated with the existing environment;

[0111] The security testing unit is used to evaluate the security of the system, including vulnerability scanning, permission control, and data encryption tests;

[0112] The automated testing unit is used to write automated testing scripts to perform automated testing on the domestic operating system to improve testing efficiency and coverage, including unit testing, integration testing, etc.;

[0113] The user experience testing unit is used to evaluate the user interface and interactive experience of the domestic operating system to ensure that users can use the system conveniently and achieve the expected operating results.

[0114] The automated testing unit includes: a unit testing subunit and an integrated testing subunit;

[0115] The unit testing subunit is used to test all unit functions in the domestic operating system;

[0116] The integrated test sub-unit is used to test the integrated functions of all units in the domestic operating system.

[0117] The deployment and installation module includes: image creation and packaging unit, image writing and installation unit, configuration and initialization unit and secondary verification and testing unit;

[0118] The image creation and packaging unit is used to create a domestic operating system image, including a domestic operating system kernel, a driver, a software package, and a configuration file, and to package the created domestic operating system image file so as to be installed and deployed on a target platform;

[0119] The image writing and installation unit is used to write the domestic operating system image into the disk or storage medium of the platform to be deployed, execute the installation program or script, decompress the image file and install it to the specified location of the platform to be deployed;

[0120] The configuration and initialization unit is used to configure the installed domestic operating system according to actual needs, including network settings, user accounts, service startup, firewall configuration, and execution of initialization scripts or configuration files to ensure that the system can operate normally after installation;

[0121] The secondary verification and testing unit is used to perform secondary verification and testing on the installed domestic operating system to ensure that the system can start and run normally and meet the expected functional and performance requirements.

[0122] Example 2

[0123] See also Figure 2 Another embodiment provided by the present invention is a method for cross-platform deployment of a domestic operating system based on hardware feature adaptation, comprising the following specific steps:

[0124] Step 1: Perform a comprehensive feature analysis on the target hardware platform to obtain hardware feature parameters;

[0125] Step 2: Generate the corresponding system configuration file based on the hardware characteristic parameters to adapt to the platform to be deployed;

[0126] Step 3: According to the actual hardware environment, transplant the domestic operating system to the target hardware platform, compile it, and optimize the system resource allocation;

[0127] Step 4: Verify and test the platform to be deployed before deployment;

[0128] Step 5: Deploy and install the domestic operating system image to the platform to be deployed and configure it according to actual needs.

[0129] Example 3

[0130] See also Figure 3 An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, it implements the steps of a cross-platform deployment method of a domestic operating system based on hardware feature adaptation.

[0131] A computer-readable storage medium stores computer instructions, which, when executed, execute the steps of a cross-platform deployment method of a domestic operating system based on hardware feature adaptation.

[0132] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0133] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0134] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0136] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the purpose and scope of protection of the present invention, which are all within the protection of the present invention.

[0137] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A cross-platform deployment system for domestic operating systems based on hardware feature adaptation, characterized in that: include: Hardware feature analysis module, system configuration generation module, adaptive migration and compilation module, verification and testing module and deployment and installation module; The hardware feature analysis module is used to perform a comprehensive feature analysis on the target hardware platform and obtain hardware feature parameters; The system configuration generation module is used to generate a corresponding system configuration file based on the hardware characteristic parameters to adapt to the platform to be deployed; The adaptive transplantation and compilation module is used to transplant the domestic operating system to the target hardware platform according to the actual hardware environment, compile it, and optimize the allocation of system resources; The verification and testing module is used to verify and test the platform to be deployed before deployment; The deployment and installation module is used to deploy and install the domestic operating system image on the platform to be deployed, and configure it according to actual needs; The adaptive transplantation and compilation module includes: a domestic operating system transplantation unit, a compilation optimization unit and a resource allocation optimization unit; The domestic operating system transplantation unit is used to transplant the domestic operating system according to the characteristics and architecture of the platform to be deployed; The compiling optimization unit is used to use an appropriate compiler and compiling options, and utilize a compiling optimization strategy to optimize the compiler and compiling parameters; The resource allocation optimization unit is used to reasonably allocate and optimize system resources according to the environment and application scenarios of the platform to be deployed using resource allocation strategies; The specific steps of the compilation optimization strategy in the compilation optimization unit include: Step S101: Select a compiler and tool chain according to the characteristics of the platform to be deployed, the compilers include GNU CompilerCollection and LLVM Clang; Step S102: According to hardware characteristics and performance requirements, compiler parameters are configured to optimize the compilation process and generated code, optimize code size and execution time, code compilation speed and system response time; Step S103: The specific formula for optimizing code size and execution time is: , represents the function of optimizing code size and execution time, K represents the trade-off parameter, Indicates the size of the code generated by the compilation. Indicates the time when the code is executed; The specific formula for optimizing code compilation speed is: , A function that optimizes code compilation speed. Indicates the proportion of the parallelized part, Indicates the degree of parallelism; Step S104: The specific formula for optimizing the system response time is: , represents the function that optimizes the system response time, Indicates the basic response time of the system. represents the response time impact coefficient, represents the resource utilization function; The specific steps of the resource allocation strategy in the resource allocation optimization unit include: Step S201: Calculate the CPU utilization, memory utilization and disk utilization of the platform to be deployed. The CPU utilization calculation formula of the platform to be deployed is: , Indicates the CPU utilization of the platform to be deployed. Indicates the time the CPU executes the task. Represents the total time. The calculation formula for memory utilization of the platform to be deployed is: , Indicates the memory utilization of the platform to be deployed. Indicates the amount of memory used. Indicates the total amount of memory; Step S202: The disk utilization calculation formula of the platform to be deployed is: , Indicates the disk utilization of the platform to be deployed. Indicates the usage of disk read operations. Indicates the usage of disk write operations, and total indicates the size of the disk; Step S203: Optimize the resource allocation of the platform to be deployed. The specific formula is: , in, represents the resource allocation optimization function of the platform to be deployed, m represents the number of resources in the platform to be deployed, represents the weight of the i-th resource in the platform to be deployed, represents the coefficient of mutual influence between adjustment resources, represents the current utilization rate of the i-th resource in the platform to be deployed, represents the current utilization rate of the jth resource in the platform to be deployed; Step S204: according to the resource allocation optimization function of the platform to be deployed, the relationship and priority of the resources in the platform to be deployed are obtained, and the resource with the highest priority is allocated to the compilation of the domestic operating system; The current utilization rate of the jth resource in the platform to be deployed in step S203 The calculation formula is: ,in, Indicates the CPU utilization weight of the platform to be deployed. Indicates the memory utilization weight of the platform to be deployed. Indicates the disk utilization weight of the platform to be deployed.

2. A domestic operating system cross-platform deployment system based on hardware feature adaptation as described in claim 1, characterized in that: The hardware feature analysis module includes: a processor feature analysis unit, a memory feature analysis unit, a network interface feature analysis unit and a power consumption and heat dissipation feature analysis unit; The processor feature analysis unit is used to obtain the processor type, core number and main frequency, and calculate the processor speed and instruction execution speed; The memory feature analysis unit is used to perform feature analysis on the memory device to obtain the memory storage bandwidth and storage capacity; The network interface feature analysis unit is used to perform feature analysis on the network interface to obtain the bandwidth and delay of the network interface; The power consumption and heat dissipation characteristic analysis unit is used to analyze the power consumption and heat dissipation characteristics of the platform to be deployed, and obtain the power consumption and heat dissipation efficiency of the platform to be deployed.

3. A domestic operating system cross-platform deployment system based on hardware feature adaptation as described in claim 1, characterized in that: The system configuration generation module includes: a system configuration requirement determination unit, a relationship analysis unit and a configuration file generation unit; The system configuration requirement determination unit is used to determine the requirements for generating a system configuration file according to application requirements and performance requirements, including: the version and type of the domestic operating system, the type and size of the file system, network configuration, and software package installation; The relationship analysis unit is used to map the hardware characteristic parameters with the system configuration requirements to determine the influence of each hardware characteristic parameter on the system configuration; The configuration file generating unit is used to write an algorithm or a script to generate a system configuration file.

4. A domestic operating system cross-platform deployment system based on hardware feature adaptation as claimed in claim 1, characterized in that: The verification and testing module includes: a function test unit, a performance test unit, a stability test unit, a compatibility test unit, a security test unit, an automation test unit and a user experience test unit; The functional testing unit is used to verify whether the basic functions of the system meet expectations; The performance testing unit is used to evaluate the performance indicators of the domestic operating system, including response time, throughput, and resource utilization; The stability testing unit is used to test the stability of the domestic operating system during operation over a period of time and under high load; The compatibility testing unit is used to verify the compatibility of the domestic operating system with software, hardware or services; The security testing unit is used to evaluate the security of the system, including vulnerability scanning, permission control, and data encryption tests; The automated testing unit is used to write automated testing scripts to perform automated testing on the domestic operating system; The user experience testing unit is used to evaluate the user interface and interactive experience of the domestic operating system.

5. A domestic operating system cross-platform deployment system based on hardware feature adaptation as described in claim 4, characterized in that: The automated testing unit comprises: a unit testing subunit and an integrated testing subunit; The unit testing subunit is used to test all unit functions in the domestic operating system; The integrated test sub-unit is used to test the integrated functions of all units in the domestic operating system.

6. A domestic operating system cross-platform deployment system based on hardware feature adaptation as claimed in claim 1, characterized in that: The deployment and installation module includes: an image creation and packaging unit, an image writing and installation unit, a configuration and initialization unit, and a secondary verification and testing unit; The image creation and packaging unit is used to create a domestic operating system image, including a domestic operating system kernel, a driver, a software package, and a configuration file, and to package the created domestic operating system image file; The image writing and installation unit is used to write the domestic operating system image into the disk or storage medium of the platform to be deployed; The configuration and initialization unit is used to configure the installed domestic operating system according to actual needs, including network settings, user accounts, service startup, firewall configuration, and execution of initialization scripts or configuration files; The secondary verification and testing unit is used to perform secondary verification and testing on the installed domestic operating system.

Citation Information

Patent Citations

  • Cross-platform deployment system and method based on domestic platform

    CN116400935A

  • Method and device for grading and dispatching management of server hardware equipment and server

    CN104346221A

  • Application resource scheduling device and method based on weight

    CN108121601A

  • OpenStack containerization system and method based on a domestic platform

    CN109871213A

  • Domestic hardware and operating system container cloud automatic offline deployment method

    CN114265600A