Kernel matching method, server and storage medium

By storing the executable files on the cloud platform, the edge computing server can quickly identify the target kernel identifier, solving the problem of low system startup efficiency in complex environments, and achieving an efficient and flexible kernel matching method.

CN114780259BActive Publication Date: 2025-08-29KONGTROLINK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210406326.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2025-08-29
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

In complex boot environments, the processor of the edge computing server needs to match the boot core multiple times, resulting in low system startup efficiency and poor flexibility.

Method used

The kernel matching executable file that stores the relationships corresponding to the startup environment parameters and the kernel identity is stored on the cloud platform, and the target kernel identity is obtained by running the kernel matching executable file, reducing the amount of computing operations in the edge computing server's processor processing the kernel matching process.

Benefits of technology

It improves the efficiency and flexibility of the kernel matching method, simplifies the system startup process, and improves the accuracy and flexibility of kernel startup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114780259B_ABST
    Figure CN114780259B_ABST
Patent Text Reader

Abstract

The present invention provides a kernel matching method, server, and storage medium. The method comprises: obtaining startup environment parameters in response to a system startup instruction; executing a kernel matching executable file to obtain a target kernel identifier corresponding to the startup environment parameters, wherein the kernel matching executable file is stored on a cloud platform; obtaining a target kernel program corresponding to the target kernel identifier, and executing the target kernel program to start the system kernel. The kernel matching method provided by the present invention implements kernel startup by storing a kernel matching executable file that stores the relationship between the startup environment parameters and the kernel identifier on the cloud platform, and executing the kernel matching executable file to obtain the target kernel identifier corresponding to the startup environment parameters. This reduces the amount of computation required by the edge computing server's processor to process the kernel matching process, thereby improving the efficiency of the kernel matching method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a kernel matching method, a server, and a storage medium. Background Art

[0002] In industrial Internet of Things application technology, the edge computing server is set between the industrial cloud platform layer and the field control layer. It is used to collect field data and perform high-performance real-time calculations. It integrates communication and application interface display functions to meet the application requirements of real-time business processing and intelligent applications in industrial sites.

[0003] In the prior art, to meet the data processing performance requirements of edge computing servers, they need to be equipped with multi-core CPUs, large memory capacities, and high-speed network bandwidth. During the system startup process of the edge computing server, the processor of the edge computing server needs to determine the matching startup kernel based on the current operating system.

[0004] However, when the system startup environment is more complex, the processor of the current edge computing server needs to determine the startup kernel that matches the system multiple times based on the built-in matching logic, causing the system to start slowly, resulting in low efficiency and poor flexibility in kernel startup. Summary of the Invention

[0005] The present invention provides a kernel matching method, server and storage medium. Kernel matching executable files storing the corresponding relationship between startup environment parameters and kernel identifiers are stored on a cloud platform, and kernel startup is achieved by obtaining a target kernel identifier corresponding to the startup environment parameters by running the kernel matching executable file. This reduces the amount of computation required by a processor of an edge computing server to process the kernel matching process, thereby improving the efficiency of the kernel matching method.

[0006] In a first aspect, the present invention provides a kernel matching method, comprising:

[0007] Responding to a system startup instruction, obtaining startup environment parameters;

[0008] Running a kernel matching executable file to obtain a target kernel identifier corresponding to the startup environment parameter, wherein the kernel matching executable file is stored in a cloud platform;

[0009] A target kernel program corresponding to the target kernel identifier is obtained, and the target kernel program is executed to start the system kernel.

[0010] Here, the present application provides a kernel matching method. When a system startup instruction is received, the startup environment parameters of the current startup environment are obtained by traversing the system environment; and by running the kernel matching executable file downloaded from the cloud platform, the matching target kernel identifier corresponding to the current startup environment parameters is obtained, thereby realizing the process of starting the system kernel. The present invention stores the kernel matching executable file that stores the corresponding relationship between the startup environment parameters and the kernel identifier on the cloud platform, and can use the kernel matching executable file to complete the matching logic of the kernel matching, thereby reducing the amount of computation required by the processor of the edge computing server to process the kernel matching process and improving the efficiency of starting the system kernel.

[0011] In one possible design, the kernel matching executable file sent by the running cloud platform and obtaining the target kernel identifier corresponding to the startup environment parameter include:

[0012] Running a kernel matching executable file to obtain a kernel matching table, wherein the kernel matching executable file is downloaded from a cloud platform, the kernel matching executable file is obtained by the cloud platform compiling a kernel matching table, the kernel matching table is generated based on a correspondence between kernel startup environment parameters and kernel identifiers, the correspondence between kernel startup environment parameters and kernel identifiers is obtained by the cloud platform based on matching requirements or based on a matching algorithm, and the matching requirements are obtained by the cloud platform using graphical programming software;

[0013] A target kernel identifier corresponding to the startup environment parameter is determined according to the kernel matching table.

[0014] Here, the present invention is to obtain a kernel matching executable file by setting up a cloud platform to compile a kernel matching table generated according to the correspondence between the kernel startup environment parameters and the kernel identifier, and provide a method for dynamically adjusting the system kernel startup matching logic by modifying the correspondence between the kernel startup environment parameters and the kernel identifier in the kernel matching table, thereby improving the flexibility of the kernel matching method.

[0015] In a possible design, after executing the target kernel program to start the system kernel, the method further includes:

[0016] Obtaining at least one system startup parameter, wherein the system startup parameter includes a startup kernel identifier, startup environment parameters, and system operation data;

[0017] The startup kernel identifier, the startup environment parameters and the system operation data are sent to the cloud platform, so that the cloud platform updates the kernel matching table according to the startup kernel identifier, the startup environment parameters and the system operation data to obtain an updated kernel matching table.

[0018] Here, the present invention proposes that after the system is started, the system operation data after this startup is sent to the cloud platform, and proposes that the system operation data after startup is used in the cloud platform to use an intelligent algorithm to update the correspondence between the kernel startup environment parameters and the kernel identifier in the kernel matching table, thereby improving the accuracy of the kernel matching method.

[0019] In a possible design, the kernel matching executable file sent by the running cloud platform includes:

[0020] According to the pre-stored program running vector table, the memory address of the storage kernel matching executable file is obtained;

[0021] A kernel matching executable program corresponding to the kernel matching executable file is obtained according to the memory address storing the kernel matching executable file, and the kernel matching executable program is run.

[0022] Here, the present invention proposes to improve the efficiency of executing the kernel matching executable program corresponding to the kernel matching executable file by using the program running vector table to store the memory address of the kernel matching executable file.

[0023] In one possible design, obtaining the target kernel program corresponding to the target kernel identifier includes:

[0024] Obtaining a target storage address identified by a target kernel according to a pre-stored program running vector table;

[0025] A target kernel program is obtained according to the target storage address.

[0026] Here, the present invention utilizes the target storage address of the target kernel identifier so that after executing the storage kernel matching executable file, the target kernel identifier is used to determine the target storage address of the target kernel program, proposes the purpose of identifying the kernel identifier to complete the startup of the system kernel, and improves the method of directly obtaining the address execution program, so that the kernel matching executable file stored in the cloud platform in this case can be ported to other devices, thereby improving the flexibility of the kernel matching method provided by the present invention.

[0027] In a possible design, the startup environment parameters include at least one of system variable parameters, system operation parameters, remote switching parameters, and external environment parameters.

[0028] In a second aspect, the present invention provides a kernel matching device, comprising:

[0029] An acquisition module, configured to acquire startup environment parameters in response to a system startup instruction;

[0030] An operation module is used to run a kernel matching executable file to obtain a target kernel identifier corresponding to the startup environment parameter, wherein the kernel matching executable file is stored in a cloud platform;

[0031] The execution module is used to obtain the target kernel program corresponding to the target kernel identifier and execute the target kernel program to start the system kernel.

[0032] In a third aspect, the present invention provides a server comprising: at least one processor and a memory;

[0033] The memory stores computer-executable instructions;

[0034] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the kernel matching method as described in the first aspect and various possible designs of the first aspect.

[0035] In a fourth aspect, the present invention provides a computer storage medium storing computer execution instructions. When a processor executes the computer execution instructions, the kernel matching method described in the first aspect and various possible designs of the first aspect is implemented.

[0036] The kernel matching method, server and storage medium provided by the present invention store a kernel matching executable file that stores the corresponding relationship between startup environment parameters and kernel identifiers on a cloud platform. The kernel matching executable file can be used to complete the kernel matching process, thereby reducing the amount of computation required by the processor of the edge computing server to handle the kernel matching process and improving the efficiency of starting the system kernel. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present invention;

[0039] Figure 2 Schematic diagram of the kernel matching method provided by the embodiment of the present invention Figure 1 ;

[0040] Figure 3 Schematic diagram of the kernel matching method provided by the embodiment of the present invention Figure 2 ;

[0041] Figure 4A schematic structural diagram of a kernel matching device provided in an embodiment of the present invention;

[0042] Figure 5 A schematic diagram of the hardware structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0044] In the prior art, in order to meet the edge computing server's function of collecting field data and performing high-performance real-time computing, as well as meeting the edge computing server's real-time business processing and intelligent application requirements, it is necessary to set the edge computing server with a multi-core CPU, large-capacity memory, and high-speed network broadband. During the system startup process of the edge computing server, the edge computing server's processor needs to determine the matching startup kernel based on the current operating system. However, when the system startup environment is more complex, the current edge computing server's processor needs to determine the startup kernel that matches the system based on the built-in matching logic multiple times, causing the system to start slowly, resulting in kernel startup errors.

[0045] In order to solve the above technical problems, the embodiments of the present invention propose the following technical solution: by storing a kernel matching executable file that stores the relationship between the startup environment parameters and the kernel identifier on the cloud platform, and executing the kernel matching executable file to obtain the target kernel identifier corresponding to the startup environment parameters to achieve kernel startup, the amount of computation required by the edge computing server processor to handle the kernel matching process is reduced, and the efficiency of the kernel matching method is improved. A detailed embodiment is used below to explain in detail.

[0046] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present invention. Figure 1As shown, the application scenario diagram of the kernel matching method provided by the embodiment of the present invention includes a server and a cloud platform. Exemplarily, the server can be an edge computing server in the industrial Internet of Things. A kernel matching executable file for identifying the matching relationship between the startup environment parameters and the kernel identifier is stored in the cloud platform. Among them, the matching relationship between the startup environment parameters and the kernel identifier stored in the kernel matching executable file can be a matching rule set by the administrator according to the needs, or it can be set to use the existing system environment parameters and kernel identifiers, and use an artificial intelligence recognition algorithm to obtain the correspondence between the system environment parameters and the kernel identifier, and generate a kernel matching executable file based on the obtained intelligent correspondence. Specifically, the cloud platform provides graphical programming software, so that the administrator can adjust the correspondence according to the needs, and program according to the adjusted correspondence to obtain a kernel matching executable file that can be run by the server.

[0047] It is understood that the application scenarios illustrated in the embodiments of this application do not constitute a specific limitation on the application entities for implementing the kernel matching method. In other feasible implementations of this application, the above architecture may include more or fewer components than shown, or combine or split certain components, or arrange the components differently. The specific implementation can be determined based on the actual application scenario and is not limited here. Figure 1 The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0048] When the server receives the system startup instruction, it obtains the startup environment parameters of the current startup environment by traversing the system environment; and obtains the matching target kernel identifier corresponding to the startup environment parameters by running the kernel matching executable file downloaded from the cloud platform, thereby realizing the process of starting the system kernel.

[0049] In a specific implementation process, the server may include an input / output interface and may also include a communication interface.

[0050] It should be understood that the above-mentioned processing device can be implemented by a processor reading instructions in a memory and executing the instructions, or it can be implemented by a chip circuit.

[0051] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0052] Figure 2 Schematic diagram of the kernel matching method provided by the embodiment of the present invention Figure 1 , the execution subject of this embodiment can be Figure 1 The server in the embodiment shown is not particularly limited in this embodiment. Figure 2 As shown, the method includes:

[0053] S201: Responding to a system startup instruction, obtaining startup environment parameters.

[0054] In the embodiment of the present invention, when a system startup instruction is received, specifically, in response to the system startup instruction, the current system environment is traversed to obtain startup environment parameters.

[0055] Exemplarily, the startup environment parameters include at least one of system variable parameters, system operation parameters, remote switching parameters, and external environment parameters. Specifically, the startup environment parameters are all relevant parameters that affect system startup and can be modified according to system changes or system upgrades.

[0056] S202: Run the kernel matching executable file to obtain a target kernel identifier corresponding to the startup environment parameters, wherein the kernel matching executable file is stored in the cloud platform.

[0057] In an embodiment of the present invention, the kernel matching executable file is downloaded from a cloud platform. Specifically, the cloud platform is a cloud server, and the kernel matching executable file can be downloaded from a cloud storage terminal provided by the cloud platform.

[0058] Here, the present invention reduces device memory, simplifies the kernel matching calculation steps when the current system is started, and improves the startup efficiency of the device by downloading a kernel matching executable file for identifying the correspondence between the system startup environment and the kernel identifier from the cloud.

[0059] Exemplarily, the kernel matching executable file is obtained by the cloud platform compiling the kernel matching table, and the kernel matching table is generated based on the correspondence between the kernel startup environment parameters and the kernel identifier. The correspondence between the kernel startup environment parameters and the kernel identifier is obtained by the cloud platform based on matching requirements or based on a matching algorithm, and the matching requirements are obtained by the cloud platform through graphical programming software.

[0060] In an embodiment of the present invention, the cloud platform provides graphical programming software that facilitates administrators to modify the kernel matching logic according to matching requirements, so that administrators can use the graphical programming software to set a special kernel to match when the system starts, thereby achieving the purpose of flexibly modifying the kernel matching logic.

[0061] Exemplarily, the cloud platform can also obtain the correspondence between kernel startup environment parameters and kernel identifiers based on a matching algorithm. Specifically, an intelligent matching algorithm for identifying the correspondence between kernel startup environment parameters and kernel identifiers is set up within the cloud platform. Specifically, the intelligent matching algorithm is obtained by the cloud platform by training an artificial intelligence algorithm based on sample data obtained. The sample data includes multi-dimensional system environment parameters and matching kernel identifiers. The cloud platform can use the trained artificial intelligence algorithm to identify new system environment parameters, obtain the corresponding kernel identifier, and update the correspondence between the kernel startup environment parameters and the kernel identifier based on the new system environment parameters and the matching kernel identifier.

[0062] Exemplarily, the cloud platform generates a kernel matching table based on the correspondence between kernel startup environment parameters and kernel identifiers, and compiles the kernel matching table to obtain a kernel matching executable file executable by the computer device. After executing the kernel matching executable file, the server obtains the kernel matching table and can then determine the target kernel identifier corresponding to the startup environment parameters based on the kernel matching table.

[0063] In an embodiment of the present invention, before executing the kernel matching executable file, the memory address of the kernel matching executable file is obtained by utilizing a pre-stored program running vector table, and the kernel matching executable program corresponding to the kernel matching executable file is obtained according to the memory address of the kernel matching executable file, and the kernel matching executable program is run.

[0064] Here, the present invention proposes to improve the efficiency of executing the kernel matching executable program corresponding to the kernel matching executable file by using the program running vector table to store the memory address of the kernel matching executable file.

[0065] S203: Obtain a target kernel program corresponding to the target kernel identifier, and execute the target kernel program to start the system kernel.

[0066] In the embodiment of the present invention, in the process of obtaining the target kernel program corresponding to the target kernel identifier, the target storage address of the target kernel identifier is obtained by using a pre-stored program execution vector table, and then the target kernel program is obtained according to the target storage address.

[0067] The present invention utilizes the target storage address of the target kernel identifier so that after executing the storage kernel matching executable file, the target kernel identifier is used to determine the target storage address of the target kernel program, proposes the purpose of identifying the kernel identifier to complete the startup of the system kernel, improves the method of directly obtaining the address execution program, so that the kernel matching executable file stored in the cloud platform in this case can be transplanted to other devices, and improves the flexibility of the kernel matching method provided by the present invention.

[0068] The kernel matching method provided in this embodiment realizes kernel startup by storing a kernel matching executable file that stores the relationship between startup environment parameters and kernel identifiers on a cloud platform, and obtaining a target kernel identifier corresponding to the startup environment parameters by running the kernel matching executable file, thereby reducing the amount of computation required by the processor of the edge computing server to process the kernel matching process and improving the efficiency of the kernel matching method.

[0069] Figure 3 Schematic diagram of the kernel matching method provided by the embodiment of the present invention Figure 2 .exist Figure 2 Based on the examples provided, Figure 3 As shown, after executing Figure 2 In the embodiment, after S203: obtaining the target kernel program corresponding to the target kernel identifier and executing the target kernel program to start the system kernel, the embodiment of the present invention provides a method for updating the kernel matching table using the system operation data after startup, which specifically includes the following steps:

[0070] S301: Obtain at least one system startup parameter, wherein the system startup parameter includes a startup kernel identifier, startup environment parameters, and system operation data.

[0071] In the embodiment of the present invention, after the system starts the kernel, all system startup parameters in the system startup process are obtained.

[0072] Exemplarily, the system startup parameters include a startup kernel identifier, startup environment parameters, and system operation data, wherein the system operation data specifically refers to all system operation-related parameters after the system is started, and can be modified according to system changes or system upgrades.

[0073] S302: Sending the startup kernel identifier, startup environment parameters and system operation data to the cloud platform, so that the cloud platform updates the kernel matching table according to the startup kernel identifier, startup environment parameters and system operation data to obtain an updated kernel matching table.

[0074] In an embodiment of the present invention, a cloud platform is configured to update a kernel matching table based on the boot kernel identifier, boot environment parameters, and system operation data after system startup. Specifically, the cloud platform uses the actual system operation parameters contained in the system operation data to identify the matching relationship between the boot kernel identifier of the current startup and the corresponding boot environment parameters. If a system parameter error occurs, the corresponding relationship for the current startup is deleted and the kernel matching table is updated accordingly.

[0075] The kernel matching method provided in this embodiment is to set the cloud platform to update the kernel matching table according to the startup kernel identifier, startup environment parameters and system operation data after the system is started, and compile the updated kernel matching table to obtain an updated kernel matching executable file, so that the server downloads the updated kernel matching executable file to determine the kernel identifier matched during the system startup process, thereby improving the accuracy of the kernel matching results.

[0076] Figure 4 This is a schematic diagram of the structure of the kernel matching device provided by an embodiment of the present invention. Figure 4 As shown, the kernel matching device includes: an acquisition module 401 , a running module 402 and an execution module 403 .

[0077] The acquisition module 401 is used to obtain startup environment parameters in response to the system startup instruction;

[0078] An operation module 402 is configured to execute a kernel matching executable file to obtain a target kernel identifier corresponding to the startup environment parameter, wherein the kernel matching executable file is stored in a cloud platform;

[0079] The execution module 403 is configured to obtain a target kernel program corresponding to the target kernel identifier and execute the target kernel program to start the system kernel.

[0080] In one possible implementation, the running module 402 is specifically used to run a kernel matching executable file to obtain a kernel matching table, wherein the kernel matching executable file is downloaded from a cloud platform, the kernel matching executable file is obtained by the cloud platform compiling the kernel matching table, and the kernel matching table is generated according to the correspondence between the kernel startup environment parameters and the kernel identifier, and the correspondence between the kernel startup environment parameters and the kernel identifier is obtained by the cloud platform according to matching requirements or according to a matching algorithm, and the matching requirements are obtained by the cloud platform through graphical programming software; and the target kernel identifier corresponding to the startup environment parameters is determined according to the kernel matching table.

[0081] In one possible implementation, the device also includes an update module for obtaining at least one system startup parameter, wherein the system startup parameter includes a startup kernel identifier, a startup environment parameter, and system operation data; sending the startup kernel identifier, the startup environment parameter, and the system operation data to the cloud platform, so that the cloud platform updates the kernel matching table according to the startup kernel identifier, the startup environment parameter, and the system operation data to obtain an updated kernel matching table.

[0082] In one possible implementation, the running module 402 is specifically used to obtain the memory address of the kernel matching executable file according to the pre-stored program running vector table; obtain the kernel matching executable program corresponding to the kernel matching executable file according to the memory address of the kernel matching executable file, and run the kernel matching executable program.

[0083] In a possible implementation, the execution module 403 is specifically configured to obtain a target storage address of a target kernel identifier according to a pre-stored program execution vector table; and obtain a target kernel program according to the target storage address.

[0084] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail in this embodiment.

[0085] Figure 5 Schematic diagram of the hardware structure of the server provided in the embodiment of the present invention. Figure 5 As shown, the server of this embodiment includes: a processor 501 and a memory 502;

[0086] Memory 502, for storing computer-executable instructions;

[0087] The processor 501 is configured to execute the computer-executable instructions stored in the memory to implement the various steps performed by the server in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0088] Optionally, the memory 502 may be independent or integrated with the processor 501 .

[0089] When the memory 502 is independently provided, the server further includes a bus 503 for connecting the memory 502 and the processor 501 .

[0090] An embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the kernel matching method described above is implemented.

[0091] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the kernel matching method described above. An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the kernel matching method described above.

[0092] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or module, which can be electrical, mechanical or other forms.

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

[0094] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each module may exist physically separately, or two or more modules may be integrated into a single unit. The aforementioned modular units may be implemented in the form of hardware or hardware plus software functional units.

[0095] The above-mentioned integrated module implemented in the form of a software functional module can be stored in a computer-readable storage medium. The above-mentioned software functional module is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application.

[0096] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASICs). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0097] The memory may include a high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk.

[0098] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0099] The storage medium may be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0100] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0101] Those skilled in the art will appreciate that all or part of the steps in the above-described method embodiments can be implemented using hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A kernel matching method, characterized in that: Applicable to servers, including: Responding to a system startup instruction, obtaining startup environment parameters; Running a kernel matching executable file to obtain a kernel matching table; wherein the kernel matching executable file is downloaded from a cloud platform, the kernel matching executable file is obtained by compiling a kernel matching table by the cloud platform, the kernel matching table is generated based on a correspondence between kernel startup environment parameters and kernel identifiers, the correspondence between kernel startup environment parameters and kernel identifiers is obtained based on an intelligent matching algorithm, the intelligent matching algorithm is obtained by the cloud platform by training an artificial intelligence algorithm based on sample data, the sample data including multi-dimensional system environment parameters and matching kernel identifiers; Determine the target kernel identifier corresponding to the startup environment parameter according to the kernel matching table; A target kernel program corresponding to the target kernel identifier is obtained, and the target kernel program is executed to start the system kernel.

2. The method according to claim 1, characterized in that The correspondence between the kernel startup environment parameters and the kernel identifier is obtained by the cloud platform according to matching requirements, and the matching requirements are obtained by the cloud platform through graphic programming software.

3. The method according to claim 2, characterized in that After executing the target kernel program to start the system kernel, the method further includes: Obtaining at least one system startup parameter, wherein the system startup parameter includes a startup kernel identifier, startup environment parameters, and system operation data; The startup kernel identifier, the startup environment parameters and the system operation data are sent to the cloud platform, so that the cloud platform updates the kernel matching table according to the startup kernel identifier, the startup environment parameters and the system operation data to obtain an updated kernel matching table.

4. The method according to claim 1, wherein The running kernel matches the executable file, including: According to the pre-stored program running vector table, the memory address of the storage kernel matching executable file is obtained; A kernel matching executable program corresponding to the kernel matching executable file is obtained according to the memory address storing the kernel matching executable file, and the kernel matching executable program is run.

5. The method according to claim 1, wherein The obtaining of the target kernel program corresponding to the target kernel identifier includes: Obtaining a target storage address identified by a target kernel according to a pre-stored program running vector table; A target kernel program is obtained according to the target storage address.

6. The method according to any one of claims 1 to 5, characterized in that The startup environment parameters include at least one of system variable parameters, system operation parameters, remote switching parameters and external environment parameters.

7. A kernel matching device, characterized in that: include: An acquisition module, configured to acquire startup environment parameters in response to a system startup instruction; A running module is used to run the kernel matching executable file to obtain the kernel matching table; Determining a target kernel identifier corresponding to the startup environment parameters according to the kernel matching table; wherein the kernel matching executable file is downloaded from a cloud platform, the kernel matching executable file is obtained by the cloud platform compiling a kernel matching table, the kernel matching table is generated according to a correspondence between kernel startup environment parameters and kernel identifiers, the correspondence between kernel startup environment parameters and kernel identifiers is obtained based on an intelligent matching algorithm, the intelligent matching algorithm is obtained by the cloud platform training an artificial intelligence algorithm based on sample data, the sample data including multi-dimensional system environment parameters and matching kernel identifiers; The execution module is used to obtain the target kernel program corresponding to the target kernel identifier and execute the target kernel program to start the system kernel.

8. A server, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the kernel matching method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the kernel matching method according to any one of claims 1 to 6 is implemented.

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

Citation Information

Patent Citations

  • Linux system starting method and device and readable storage medium

    CN112000382A