Kernel optimization method, device and medium of openEuler operating system

By allocating openEuler operating system kernel resources according to the importance of dedicated power equipment, the problem of insufficient resources in traditional methods is solved, the reliability and response speed of the power Internet of Things are improved, and resource support for important equipment in emergency events is ensured.

CN119292783BActive Publication Date: 2025-11-28CHINA SOUTHERN POWER GRID COMPANY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411494698.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-11-28
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

The traditional openEuler operating system kernel resource allocation method fails to fully consider the importance of power-specific equipment, resulting in insufficient resources for critical equipment during emergencies, which affects the security, reliability and response speed of the power Internet of Things.

Method used

The response level is determined based on the importance of the dedicated power equipment, and openEuler operating system kernel resources are allocated according to the level. In the event of an emergency, resources are scheduled to the target equipment by referring to the resource allocation ratio of the dedicated power equipment, so as to ensure that the important equipment has sufficient resources to deal with the emergency.

Benefits of technology

It improves the reliability and response speed of the power Internet of Things, ensures resource support for critical equipment in emergency situations, and enhances the working efficiency of the openEuler operating system kernel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119292783B_ABST
    Figure CN119292783B_ABST
Patent Text Reader

Abstract

The application discloses an openEuler operating system kernel optimization method and device, equipment and a medium. The method comprises the following steps: determining the response level of the power special device based on the importance of the power special device in the power Internet of Things, and allocating corresponding openEuler operating system kernel resources according to the response level of the power special device; when an emergency event occurs in the power Internet of Things, determining the target power special device and the reference power special device corresponding to the target power special device; determining the resource allocation ratio corresponding to the reference power special device, determining the reference kernel resource of the reference power special device based on the resource allocation ratio corresponding to the reference power special device, and allocating the reference kernel resource to the target power special device to resolve the emergency event occurring in the power Internet of Things. The technical scheme solves the problems of low reliability of the traditional power Internet of Things and low working efficiency of the openEuler operating system kernel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of power Internet of Things, and in particular to an openEuler operating system kernel optimization method and device, equipment and medium. BACKGROUND

[0002] The power Internet of Things realizes the interconnection and intercommunication between power special devices, power systems and users through the Internet of Things. In actual application, the power Internet of Things is usually divided into five layers of architecture, i.e., the power grid layer, the sensing layer, the transmission layer, the data layer and the application layer. Therefore, there are many power special devices accessing the power Internet of Things, and many power special devices inevitably have faults and other emergency events.

[0003] When the power special devices have faults and other emergency events, more openEuler operating system kernel resources are often needed to resolve the emergency events of the power special devices. In the traditional related technical solution, the allocation of openEuler operating system kernel resources does not fully consider the importance of the power special devices, and the importance of all power special devices is not the same. Some very important power special devices have a great impact on the power system when they have faults and other emergency events (for example, causing the overall paralysis of the power system), while some power special devices have less impact on the power system when they have faults and other emergency events. If the openEuler operating system kernel resources are allocated according to the traditional related technical solution, the openEuler operating system kernel resources allocated to resolve the emergency events of the very important power special devices will be insufficient when the very important power special devices have emergency events, which leads to insufficient safety and reliability of the power Internet of Things. In addition, the insufficient allocation of openEuler operating system kernel resources to the very important power special devices reduces the response speed of the important power special devices, and thus the working efficiency of the openEuler operating system is low. SUMMARY

[0004] The present application provides an openEuler operating system kernel optimization method, device, equipment and medium to solve the problems of insufficient reliability of the traditional power Internet of Things and low working efficiency of the openEuler operating system kernel.

[0005] According to an aspect of the present application, an openEuler operating system kernel optimization method is provided, which includes:

[0006] determine a response level of the power special device based on the importance of the power special device in the power Internet of Things, and allocate corresponding openEuler operating system kernel resources according to the response level of the power special device; the importance is used to describe the influence of the power special device in the power Internet of Things on the stable operation of the power system, and the higher the importance of the power special device, the higher the corresponding response level;

[0007] When an emergency event occurs in the power Internet of Things, determine a target power special device and a reference power special device corresponding to the target power special device; wherein the target power special device is the power special device in the power Internet of Things corresponding to the emergency event, and the reference power special device is a power special device with a response level at least one response level lower than that of the reference power special device;

[0008] determine a resource allocation proportion corresponding to the reference power special device, determine a reference kernel resource of the reference power special device based on the resource allocation proportion corresponding to the reference power special device, and allocate the reference kernel resource to the target power special device to resolve the emergency event occurring in the power Internet of Things; the reference kernel resource is the product of the resource allocation proportion corresponding to the reference power special device and the openEuler operating system kernel resource of the reference power special device.

[0009] According to another aspect of the present application, an openEuler operating system kernel optimization device is provided, which comprises:

[0010] The resource allocation module is configured to determine a response level of the power special device based on the importance of the power special device in the power Internet of Things, and allocate corresponding openEuler operating system kernel resources according to the response level of the power special device; the importance is used to describe the influence of the power special device in the power Internet of Things on the stable operation of the power system, and the higher the importance of the power special device, the higher the corresponding response level;

[0011] The device determination module is configured to determine a target power special device and a reference power special device corresponding to the target power special device when an emergency event occurs in the power Internet of Things; wherein the target power special device is the power special device in the power Internet of Things corresponding to the emergency event, and the reference power special device is a power special device with a response level at least one response level lower than that of the reference power special device;

[0012] The resource calling module is configured to determine a resource allocation proportion corresponding to the reference power special device, determine a reference kernel resource of the reference power special device based on the resource allocation proportion corresponding to the reference power special device, and allocate the reference kernel resource to the target power special device to resolve the emergency event in the power Internet of Things. The reference kernel resource is a product of the resource allocation proportion corresponding to the reference power special device and an openEuler operating system kernel resource of the reference power special device.

[0013] According to another aspect of the present application, an electronic device is provided, which comprises:

[0014] at least one processor; and

[0015] a memory connected to the at least one processor in communication; wherein

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the openEuler operating system kernel optimization method according to any one of the embodiments of the present application.

[0017] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to implement the openEuler operating system kernel optimization method according to any one of the embodiments of the present application when executed by the processor.

[0018] The technical scheme of the embodiment of the present application is used for describing the influence degree of the power special device in the power internet of things on the stable operation of the power system, the response level of the power special device corresponding to the higher the importance degree is, the response level of the power special device is determined based on the importance degree of the power special device in the power internet of things, and the corresponding openEuler operating system kernel resource is allocated according to the response level of the power special device, that is, the higher the importance degree of the power special device is, the more openEuler operating system kernel resources are allocated to the power special device, so as to ensure the high reliability of the power internet of things. The target power special device is the power special device in the power internet of things corresponding to the emergency event, the reference power special device is the power special device with a response level at least one response level lower than that of the reference power special device, when the emergency event occurs in the power internet of things, the target power special device and the reference power special device corresponding to the target power special device are determined, the resource allocation proportion corresponding to the reference power special device is further determined, the reference kernel resource of the reference power special device is determined based on the resource allocation proportion corresponding to the reference power special device, and the reference kernel resource is allocated to the target power special device to eliminate the emergency event occurring in the power internet of things, so as to ensure that more openEuler operating system kernel resources respond to the emergency event, thereby accelerating the response speed of the power internet of things, and making the openEuler operating system kernel work very efficiently.

[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0021] Figure 1 is a flowchart of an openEuler operating system kernel optimization method according to an embodiment of the present application;

[0022] Figure 2 is a flowchart of another openEuler operating system kernel optimization method according to an embodiment of the present application;

[0023] Figure 3 is a structural schematic diagram of an openEuler operating system kernel optimization device according to an embodiment of the present application;

[0024] Figure 4 is a structural schematic diagram of an electronic device implementing the openEuler operating system kernel optimization method according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.

[0026] It should be noted that the terms "first", "second", "third", "reference", "target", "candidate" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0027] Embodiment one

[0028] Figure 1 A flowchart of an openEuler operating system kernel optimization method provided by an embodiment of the present application, the present embodiment can be applicable to the case of reasonably allocating openEuler operating system kernel resources in the event of an emergency in the power Internet of Things. The method can be executed by an openEuler operating system kernel optimization device, which can be realized in the form of hardware and / or software, and can be configured in any electronic device with network communication function.

[0029] As shown in Figure 1 , the openEuler operating system kernel optimization method of the present application includes the following processes:

[0030] S110, based on the importance of the power special device in the power internet of things, determine the response level of the power special device, and allocate the corresponding openEuler operating system kernel resource according to the response level of the power special device;The importance is used to describe the influence of the power special device in the power internet of things on the stable operation of the power system, and the higher the importance of the power special device, the higher the response level corresponding to the power special device.

[0031] The power internet of things of the application is a wisdom service system around each link of the power system, which fully applies modern information technology such as mobile internet and artificial intelligence, advanced communication technology, realizes the interconnection of all things and man-machine interaction of each link of the power system, and has the characteristics of comprehensive state perception, efficient information processing and convenient and flexible application. The development of power internet of things is of great significance to improve the safety, reliability, economy and sustainability of the power system. It can realize real-time monitoring and fault diagnosis of power equipment, improve the reliability and service life of the equipment, optimize the operation and dispatching of the power system, improve the energy utilization efficiency, provide more convenient and efficient power service for users, and meet the diversified needs of users.

[0032] Specifically, in response to the input instruction, the openEuler operating system kernel resource of the power special device in the power internet of things can be allocated according to the parsed input instruction. The response level of the power special device is obtained, and the openEuler operating system kernel resource is allocated according to the response level. The amount of openEuler operating system kernel resource allocated to the power special device corresponds to the response level of the power special device.

[0033] The importance of the power special device in the power internet of things of the application can refer to the following aspects:

[0034] 1, the influence on the safe and stable operation of the power system.

[0035] The severity of the consequences of the fault: if the device failure may cause large-scale power failure, power grid disconnection, equipment damage and even endanger personal safety, etc. Serious consequences, then its importance is high. For example, the failure of the main transformer may cause the interruption of power supply in a region, which has a significant impact on social production and life.

[0036] Reliability requirements: some devices require very high reliability to ensure the continuous and stable operation of the power system. For example, the relay protection device must act accurately and quickly, otherwise it may cause the expansion of the fault and affect the safety of the entire power grid.

[0037] 2, the key role in power production and transmission.

[0038] Irreplaceability: Certain devices play a critical and irreplaceable role in power generation, transmission, distribution, etc. For example, high-voltage circuit breakers are used to open and close power lines, which are important control devices to ensure the safe operation of the power grid, and there is no suitable substitute.

[0039] Core tasks: Devices such as power generation equipment directly generate electricity, and power transmission lines are responsible for transmitting electricity from power plants to load centers, which perform core tasks of the power system and are important.

[0040] 3. Contribution to data collection and interaction of power Internet of Things.

[0041] Importance of data collection: Some devices can provide critical operational data, such as smart meters that can collect real-time user electricity information, providing important basis for power demand side management and power grid optimization; sensors can monitor the operating status of power equipment and timely detect potential faults. These devices are crucial for data analysis and decision-making of the power Internet of Things, and are important.

[0042] Communication and interaction capabilities: Devices with good communication and interaction capabilities can efficiently transmit data and work together with other devices and systems, improving the overall performance of the power Internet of Things. For example, smart terminal devices can realize remote control and monitoring, which is of great significance to the intelligent management of the power system.

[0043] In this embodiment, when a new power dedicated device accesses the power Internet of Things, the response level of the power dedicated device in the power Internet of Things is re-divided, and the openEuler operating system kernel resources are re-allocated according to the re-divided response level.

[0044] S120, when an emergency event occurs in the power Internet of Things, determining a target power dedicated device and a reference power dedicated device corresponding to the target power dedicated device; wherein the target power dedicated device is a power dedicated device in the power Internet of Things corresponding to the emergency event, and the reference power dedicated device is a power dedicated device with a response level at least one lower than the reference power dedicated device.

[0045] In the power Internet of Things, the emergency event can refer to a sudden situation that seriously threatens the safe and stable operation of the power system, reliable power supply, and normal power use of users, or has already produced a major impact.

[0046] Specifically, the target power dedicated device is determined, including: obtaining device operation abnormal data when the emergency event occurs in the power Internet of Things, and determining the target power dedicated device according to the device operation abnormal data; the device operation abnormal data at least includes data abnormality category, power dedicated device code and power dedicated device model.

[0047] S130, determine the resource allocation proportion corresponding to the reference power dedicated device, determine the reference kernel resource of the reference power dedicated device based on the resource allocation proportion corresponding to the reference power dedicated device, and allocate the reference kernel resource to the target power dedicated device to resolve the emergency event occurring in the power Internet of Things; the reference kernel resource is the product of the resource allocation proportion corresponding to the reference power dedicated device and the openEuler operating system kernel resource of the reference power dedicated device.

[0048] Specifically, the resource allocation proportion is used to describe the proportion of resources called from the openEuler operating system kernel resource of the power dedicated device, and the resource allocation proportion corresponding to the reference power dedicated device can be represented by the following formula:

[0049]

[0050] Wherein, P min represents the minimum value of the openEuler operating system kernel resource required to maintain the basic operation of the power dedicated device, P represents the openEuler operating system kernel resource allocated to the power dedicated device, and K represents the resource allocation proportion.

[0051] Further, the resource allocation proportion corresponding to the reference power dedicated device and the reference kernel resource have a resource allocation corresponding relationship; therefore, after determining the resource allocation proportion corresponding to the reference power dedicated device, the reference kernel resource of the reference power dedicated device can be found from the resource allocation corresponding relationship based on the resource allocation proportion corresponding to the reference power dedicated device.

[0052] In this embodiment, optionally, after resolving the emergency event occurring in the power Internet of Things, the openEuler operating system kernel optimization method comprises: obtaining resource information of the reference kernel resource in the emergency event, determining an emergency plan corresponding to the emergency event according to the resource information, so as to automatically call the emergency plan corresponding to the emergency event when the emergency event occurs again; wherein, the resource information at least includes the reference power dedicated device and the resource allocation proportion corresponding to the reference power dedicated device, and the emergency plan is the matching relationship between the emergency event and the resource information.

[0053] Specifically, when a circuit breaking emergency occurs in the power dedicated device with the response level of three, the openEuler operating system schedules the resources of the power dedicated device with the response level of two for the power dedicated device with the response level of three, and then gives the scheduled resources to the power dedicated device with the response level of three to remove the circuit breaking emergency of the power dedicated device with the response level of three, and collects the proportion of the resources of the power dedicated device with the response level of two scheduled in the process of removing the circuit breaking emergency of the power dedicated device with the response level of three, for example, in the process of removing the circuit breaking emergency of the power dedicated device with the response level of three, 80% of the resources of the power dedicated device with the response level of two are scheduled in total, then 80% of the resources of the power dedicated device with the response level of two are scheduled to the power dedicated device with the response level of three as the emergency solution for removing the circuit breaking emergency of the power dedicated device with the response level of three, so as to ensure that the power dedicated device with the response level of three which is more important than the power dedicated device with the response level of two has sufficient resources to deal with the emergency when the emergency occurs, thereby providing a strong guarantee for the stable operation of the power system.

[0054] In this embodiment, by acquiring the resource information of the reference kernel resource in the emergency event in the power Internet of Things, the emergency solution corresponding to the emergency event is determined according to the resource information, so as to automatically call the emergency solution corresponding to the emergency event when the emergency event occurs again, save the operation time of the openEuler operating system, and further improve the working efficiency of the openEuler operating system kernel.

[0055] The technical scheme of the embodiment of the present application is used to describe the influence degree of the power special device in the power internet of things on the stable operation of the power system, the response level corresponding to the power special device with a higher importance degree is higher, the response level of the power special device is determined based on the importance degree of the power special device in the power internet of things, and the corresponding openEuler operating system kernel resource is allocated according to the response level of the power special device, that is, the openEuler operating system kernel resource is allocated to the power special device with a higher importance degree, so as to ensure the high reliability of the power internet of things. The target power special device is the power special device in the power internet of things corresponding to the emergency event, the reference power special device is the power special device with a response level at least one response level lower than that of the reference power special device, when the emergency event occurs in the power internet of things, the target power special device and the reference power special device corresponding to the target power special device are determined, the resource allocation proportion corresponding to the reference power special device is further determined, the reference kernel resource of the reference power special device is determined based on the resource allocation proportion corresponding to the reference power special device, and the reference kernel resource is allocated to the target power special device to eliminate the emergency event occurring in the power internet of things, so as to ensure that more openEuler operating system kernel resources respond to the emergency event, thereby accelerating the response speed of the power internet of things, and making the openEuler operating system kernel work efficiency very high.

[0056] Embodiment two

[0057] Figure 2 The flowchart of another openEuler operating system kernel optimization method provided by the embodiment of the present application, the technical scheme of the present embodiment further optimizes the process of calling the reference kernel resource in the foregoing embodiment on the basis of the foregoing embodiment, and the present embodiment can be combined with each optional scheme in one or more of the foregoing embodiments.

[0058] As Figure 2 shown, the openEuler operating system kernel optimization method of the present application includes the following processes:

[0059] S210, based on the importance degree of the power special device in the power internet of things, determine the response level of the power special device, and allocate the corresponding openEuler operating system kernel resource according to the response level of the power special device; the importance degree is used to describe the influence degree of the power special device in the power internet of things on the stable operation of the power system, and the response level corresponding to the power special device with a higher importance degree is higher.

[0060] S220, when an emergency event occurs in the power Internet of Things, determining a target power special device and a reference power special device corresponding to the target power special device; wherein the target power special device is a power special device in the power Internet of Things corresponding to the emergency event, and the reference power special device is a power special device with a response level at least one level lower than that of the reference power special device.

[0061] S230, determining a resource allocation ratio corresponding to each power special device, determining a candidate kernel resource of each power special device based on the resource allocation ratio, and taking a sum of the candidate kernel resources of each power special device as a second kernel resource amount; the candidate kernel resource is a product of the resource allocation ratio corresponding to the power special device and the openEuler operating system kernel resource of the reference power special device.

[0062] Specifically, the second kernel resource amount E can be represented by the following formula:

[0063]

[0064] Wherein, μ n is the resource allocation ratio, R n represents the openEuler operating system kernel resource corresponding to the nth response level of the power special device, N represents the response level of the power special device where the emergency event occurs, and n is a positive integer, 1≤n≤N.

[0065] Correspondingly, determining the resource allocation ratio corresponding to each power special device comprises: using the following formula:

[0066]

[0067] Wherein, P min represents the minimum value of the openEuler operating system kernel resource required for the power special device to maintain basic operation, P represents the openEuler operating system kernel resource allocated to the power special device, and K represents the resource allocation ratio.

[0068] S240, determining a first kernel resource amount required to resolve the emergency event, and determining whether the first kernel resource amount is greater than the second kernel resource amount.

[0069] The first kernel resource amount required to resolve the emergency event is determined according to the resource amount required by the target power special device to recover normally.

[0070] S250, if the first kernel resource amount is greater than the second kernel resource amount, a warning signal is sent.

[0071] Specifically, when the first kernel resource amount δ is greater than the second kernel resource amount E, it is determined that the openEuler operating system kernel resource amount required to resolve the emergency event exceeds the total amount of openEuler operating system kernel resources scheduled from all response level power dedicated devices in the power Internet of Things, i.e. It is necessary to issue a warning signal to remind the staff.

[0072] S260, if the first kernel resource amount is less than or equal to the second kernel resource amount, determine the reference kernel resource of the reference power dedicated device based on the resource allocation ratio corresponding to the reference power dedicated device, and allocate the reference kernel resource to the target power dedicated device to resolve the emergency event in the power Internet of Things.

[0073] In this embodiment, optionally, the openEuler operating system kernel optimization method comprises: obtaining a data change range of power Internet of Things operation data in the process of resolving the emergency event in the power Internet of Things; evaluating the safety level of the openEuler operating system kernel according to the data change range; the safety level and the data change range have a correlation relationship, the smaller the data change range, the higher the safety level, and the data change range is used to describe the proportion of the changed operation data in the total operation data in the power Internet of Things operation data.

[0074] Specifically, the safety level can include a first safety level, a second safety level and a third safety level, the first safety level is higher than the second safety level, and the second safety level is higher than the third safety level; the first preset value is greater than the second preset value, and the second preset value is greater than the third preset value; the first preset value, the second preset value and the third preset value can be set according to the actual situation of the power Internet of Things, for example, the first preset value is 3 / 5, the second preset value is 2 / 5, and the third preset value is 1 / 5.

[0075] Correspondingly, evaluating the safety level of the openEuler operating system kernel according to the data change range comprises: when the data change range is greater than the first preset value, the safety level of the openEuler operating system kernel is the third safety level; when the data change range is greater than the second preset value, the safety level of the openEuler operating system kernel is the second safety level; when the data change range is greater than the third preset value, the safety level of the openEuler operating system kernel is the first safety level.

[0076] In this embodiment, in the process of resolving the emergency event in the power Internet of Things, the safety level of the openEuler operating system kernel is evaluated according to the data change range, which provides strong guarantee for the safety performance of the openEuler operating system kernel.

[0077] The technical scheme of the embodiment of the present application determines the response level of the power special device based on the importance of the power special device in the power Internet of Things, and allocates corresponding openEuler operating system kernel resources according to the response level of the power special device; when an emergency event occurs in the power Internet of Things, a target power special device and a reference power special device corresponding to the target power special device are determined. Further, the resource allocation proportion corresponding to each power special device is determined, the candidate kernel resources of each power special device are determined based on the resource allocation proportion, the sum of the candidate kernel resources of each power special device is taken as the second kernel resource amount, the first kernel resource amount required for resolving the emergency event is determined, and it is further judged whether the first kernel resource amount is greater than the second kernel resource amount, so as to determine whether the emergency event can be resolved by dividing the reference kernel resources of the reference power special device, thereby improving the kernel working efficiency of the openEuler operating system.

[0078] Embodiment three

[0079] Figure 3 A structural schematic diagram of an openEuler operating system kernel optimization device provided by the embodiment of the present application, the embodiment can be applicable to the case of reasonably allocating openEuler operating system kernel resources when an emergency event occurs in the power Internet of Things. The openEuler operating system kernel optimization device can be realized in the form of hardware and / or software, and the openEuler operating system kernel optimization device can be configured in any electronic device with network communication function.

[0080] As shown in Figure 3 , the openEuler operating system kernel optimization device of the present application comprises:

[0081] The resource allocation module 310 is configured to determine the response level of the power special device based on the importance of the power special device in the power Internet of Things, and allocate corresponding openEuler operating system kernel resources according to the response level of the power special device. The importance is used to describe the influence degree of the power special device in the power Internet of Things on the stable operation of the power system, and the higher the importance of the power special device, the higher the corresponding response level;

[0082] The device determination module 320 is configured to determine a target power special device and a reference power special device corresponding to the target power special device when an emergency event occurs in the power Internet of Things. The target power special device is the power special device in the power Internet of Things corresponding to the emergency event, and the reference power special device is a power special device with a response level at least one response level lower than that of the reference power special device;

[0083] The resource allocation module 330 is used to determine the resource allocation ratio corresponding to the reference power dedicated equipment, determine the reference kernel resource of the reference power dedicated equipment based on the resource allocation ratio corresponding to the reference power dedicated equipment, and allocate the reference kernel resource to the target power dedicated equipment to resolve the emergency event that occurs in the power Internet of Things; the reference kernel resource is the product of the resource allocation ratio corresponding to the reference power dedicated equipment and the openEuler operating system kernel resource of the reference power dedicated equipment.

[0084] Based on the above embodiments, optionally, the resource allocation module includes a judgment unit, which is used to determine the resource allocation ratio corresponding to each of the dedicated power devices, determine the candidate kernel resources of each of the dedicated power devices based on the resource allocation ratio, and take the sum of the candidate kernel resources of each of the dedicated power devices as the second kernel resource quantity; the candidate kernel resource is the product of the resource allocation ratio corresponding to the dedicated power device and the openEuler operating system kernel resource of the reference dedicated power device; determine the first kernel resource quantity required to resolve the emergency event, and determine whether the first kernel resource quantity is greater than the second kernel resource quantity; if the first kernel resource quantity is greater than the second kernel resource quantity, then issue a warning signal; if the first kernel resource quantity is less than or equal to the second kernel resource quantity, then determine the reference kernel resource of the reference dedicated power device based on the resource allocation ratio corresponding to the reference dedicated power device, and allocate the reference kernel resource to the target dedicated power device.

[0085] Based on the above embodiments, optionally, determining the resource allocation ratio corresponding to each of the dedicated power equipment includes: expressing it using the following formula:

[0086]

[0087] Among them, P min P represents the minimum amount of openEuler operating system kernel resources required for the basic operation of dedicated power equipment, and K represents the resource allocation ratio.

[0088] Based on the above embodiments, optionally, the device determination module includes a target power-specific equipment determination unit, used to: acquire device operation anomaly data when an emergency occurs in the power Internet of Things, and determine the target power-specific equipment based on the device operation anomaly data; the device operation anomaly data includes at least a data anomaly category, a power-specific equipment code, and a power-specific equipment model.

[0089] On the basis of the above-mentioned embodiments, optionally, the resource calling module further comprises a scheme generation unit, the scheme generation unit is configured to: acquire resource information of the reference kernel resource in the process of resolving the emergency event occurring in the power internet of things, determine an emergency scheme corresponding to the emergency event according to the resource information, and automatically call the emergency scheme corresponding to the emergency event when the emergency event occurs again; wherein the resource information at least includes a reference power special device and a resource allocation ratio corresponding to the reference power special device, and the emergency scheme is a matching relationship between the emergency event and the resource information.

[0090] On the basis of the above-mentioned embodiments, optionally, the device further comprises:

[0091] a data acquisition unit configured to acquire a data change range of the power internet of things operation data in the process of resolving the emergency event occurring in the power internet of things;

[0092] a security level determination unit configured to evaluate a security level of the openEuler operating system kernel according to the data change range; the security level and the data change range have a correlation relationship, the security level is higher when the data change range is smaller, and the data change range is used to describe a proportion of changed operation data in total operation data in the power internet of things operation data.

[0093] On the basis of the above-mentioned embodiments, optionally, the security level comprises a first security level, a second security level and a third security level, the first security level is higher than the second security level, and the second security level is higher than the third security level.

[0094] Correspondingly, the security level determination unit is further configured to: when the data change range is greater than a first preset value, the security level of the openEuler operating system kernel is the third security level; when the data change range is greater than a second preset value, the security level of the openEuler operating system kernel is the second security level; and when the data change range is greater than a third preset value, the security level of the openEuler operating system kernel is the first security level; the first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.

[0095] The openEuler operating system kernel optimization device provided in the embodiments can execute the openEuler operating system kernel optimization method provided in any of the embodiments, and has the corresponding function modules and beneficial effects of the execution method.

[0096] Embodiment four

[0097] According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0098] Figure 4 A structural schematic diagram of an electronic device that can be used to implement the openEuler operating system kernel optimization method of embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application described and / or claimed in this document.

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

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

[0101] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, and the like. The processor 11 performs various methods and processes described above, such as the openEuler operating system kernel optimization method.

[0102] In some embodiments, the openEuler operating system kernel optimization method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded onto the RAM 13 and executed by the processor 11, one or more steps of the openEuler operating system kernel optimization method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the openEuler operating system kernel optimization method by any other appropriate means, such as by means of firmware.

[0103] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0104] Computer programs used to implement the methods of the application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the computer program, when executed by the processor of the machine, implements the functions / acts specified in the flowcharts and / or block diagrams. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, and partially on a machine or a remote machine or a server.

[0105] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store computer programs for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal form, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

[0107] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), blockchain network, and the Internet.

[0108] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.

[0109] It should be understood that the various forms of flow shown above can be used to reorder, add or delete steps. For example, each step described in the present application can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which is not limited herein.

[0110] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An openEuler operating system kernel optimization method, characterized in that, The method comprises: determining the response level of the power special device based on the importance of the power special device in the power Internet of Things, and allocating the corresponding openEuler operating system kernel resource according to the response level of the power special device; the importance is used to describe the influence degree of the power special device in the power Internet of Things on the stable operation of the power system, and the higher the importance of the power special device, the higher the corresponding response level; When an emergency event occurs in the power Internet of Things, determine the target power special device and the reference power special device corresponding to the target power special device; wherein the target power special device is the power special device in the power Internet of Things corresponding to the emergency event, and the reference power special device is a power special device whose response level is at least one response level lower than that of the reference power special device; determine the resource allocation proportion corresponding to the reference power special device, determine the reference kernel resource of the reference power special device based on the resource allocation proportion corresponding to the reference power special device, and allocate the reference kernel resource to the target power special device to resolve the emergency event occurring in the power Internet of Things; the reference kernel resource is the product of the resource allocation proportion corresponding to the reference power special device and the openEuler operating system kernel resource of the reference power special device.

2. The method of claim 1, wherein, Before determining the reference kernel resource of the reference power special device based on the resource allocation proportion corresponding to the reference power special device and allocating the reference kernel resource to the target power special device, the method comprises: determine the resource allocation proportion corresponding to each power special device, determine the candidate kernel resource of each power special device based on the resource allocation proportion, and take the sum of the candidate kernel resource of each power special device as the second kernel resource amount; the candidate kernel resource is the product of the resource allocation proportion corresponding to the power special device and the openEuler operating system kernel resource of the reference power special device; determine the first kernel resource amount required to resolve the emergency event, and determine whether the first kernel resource amount is greater than the second kernel resource amount; if the first kernel resource amount is greater than the second kernel resource amount, a warning signal is sent; if the first kernel resource amount is less than or equal to the second kernel resource amount, determine the reference kernel resource of the reference power special device based on the resource allocation proportion corresponding to the reference power special device, and allocate the reference kernel resource to the target power special device.

3. The method of claim 2, wherein, determining the resource allocation proportion corresponding to each power special device comprises: using the following formula: Wherein, P min represents the minimum value of the openEuler operating system kernel resources required for the power special equipment to maintain basic operation, P represents the openEuler operating system kernel resources allocated to the power special equipment, and K represents the resource allocation ratio.

4. The method of claim 1, wherein, determining the target power special device comprises: obtaining device running abnormal data when an emergency event occurs in the power Internet of Things, and determining the target power special device according to the device running abnormal data; the device running abnormal data at least includes data abnormality category, power special device code and power special device model.

5. The method of claim 1, wherein, After resolving the emergency event occurring in the power Internet of Things, the method comprises: Obtaining resource information of the reference kernel resource in the emergency in the power Internet of Things, determining an emergency scheme corresponding to the emergency according to the resource information, so as to automatically call the emergency scheme corresponding to the emergency when the emergency occurs again; wherein the resource information at least includes reference power special equipment and resource allocation proportion corresponding to the reference power special equipment, and the emergency scheme is a matching relationship between the emergency and the resource information.

6. The method of claim 1, wherein, The method comprises: In the process of eliminating the emergency in the power Internet of Things, obtaining the data change amplitude of the power Internet of Things operation data; According to the data change amplitude, the safety level of the openEuler operating system kernel is evaluated; the safety level and the data change amplitude have a correlation relationship, the smaller the data change amplitude, the higher the safety level, and the data change amplitude is used to describe the proportion of the changed operation data in the total operation data in the power Internet of Things operation data.

7. The method of claim 6, wherein, The safety level includes first, second and third safety levels, the first safety level is higher than the second safety level, and the second safety level is higher than the third safety level; Accordingly, according to the data change amplitude, the safety level of the openEuler operating system kernel is evaluated, which comprises: When the data change amplitude is greater than a first preset value, the safety level of the openEuler operating system kernel is the third safety level; When the data change amplitude is greater than a second preset value, the safety level of the openEuler operating system kernel is the second safety level; When the data change amplitude is greater than a third preset value, the safety level of the openEuler operating system kernel is the first safety level; the first preset value is greater than the second preset value, and the second preset value is greater than the third preset value.

8. An openEuler operating system kernel optimization apparatus characterized in that, The device comprises: A resource allocation module is configured to determine the response level of the power special equipment based on the importance of the power special equipment in the power Internet of Things, and allocate the corresponding openEuler operating system kernel resource according to the response level of the power special equipment; the importance is used to describe the influence of the power special equipment on the stable operation of the power system in the power Internet of Things, and the higher the importance of the power special equipment, the higher the corresponding response level; A device determination module is configured to determine a target power special equipment and a reference power special equipment corresponding to the target power special equipment when an emergency occurs in the power Internet of Things; wherein the target power special equipment is the power special equipment in the power Internet of Things corresponding to the emergency, and the reference power special equipment is a power special equipment whose response level is at least one response level lower than that of the reference power special equipment. The resource calling module is configured to determine a resource allocation proportion corresponding to the reference power special device, determine a reference kernel resource of the reference power special device based on the resource allocation proportion corresponding to the reference power special device, and allocate the reference kernel resource to the target power special device to resolve the emergency event in the power Internet of Things. The reference kernel resource is a product of the resource allocation proportion corresponding to the reference power special device and an openEuler operating system kernel resource of the reference power special device.

9. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the openEuler operating system kernel optimization method of any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing the processor to execute the openEuler operating system kernel optimization method of any one of claims 1-7 when executed.

Citation Information

Patent Citations

  • Automatic synchronization method for core parameters among different Linux operating systems

    CN115408070A

  • Task response method, device and equipment under microkernel operating system

    CN117149402A