A resource scheduling and control method and system for embedded devices

By building embedded device program operation task execution requirements and resource scheduling schemes, optimizing resource allocation of operating system instances, solving the problem of resource allocation difficulties in embedded device groups, and achieving efficient data processing effects.

CN120123104BActive Publication Date: 2025-07-18GHOSTCLOUD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510603297.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-07-18
Estimated Expiration
2045-05-12

AI Technical Summary

Technical Problem

In large industrial parks, different embedded devices in the embedded device group are configured with different hardware resources, and different operating system instances under each device are allocated different hardware resources, which makes it difficult to improve the rationality and efficiency of data processing tasks, especially when the data processing period and operating system instance requirements do not match, resulting in resource allocation difficulties.

Method used

By building embedded device program running task execution requirements, querying operating system instance resource requirements information, generating resource scheduling schemes, and using virtual machine manager to allocate resources, optimizing resource information set and task execution of each operating system instance, realizing intelligent resource scheduling of embedded devices.

Benefits of technology

It improves the rationality of resource scheduling and scientific task execution of operating system instances in embedded device groups, and improves the data processing efficiency of production equipment within a regional scope.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120123104B_ABST
    Figure CN120123104B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of resource management for embedded devices, and discloses a resource scheduling and control method and system for embedded devices. By comprehensively analyzing the program running tasks of the embedded devices, the execution requirements of the program running tasks of the embedded devices are constructed. Then, by querying the resource information sets allocated to each operating system instance in each embedded device, a resource allocation optimization is constructed with the resource information sets occupied by each operating system instance as the constraint conditions and the resource allocation stability of the operating system instances of each embedded device as the optimization goal. Thus, the allocation optimization of the resource information sets of each operating system instance and the program running tasks of each embedded device is executed. Finally, by controlling the virtual machine manager to allocate the resources of each operating system instance in each embedded device and the program running tasks of each embedded device, the intelligent scheduling control of the resources of the embedded devices and the efficient processing of production data are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of embedded device resource management, and particularly to a resource scheduling and control method and system for embedded devices. Background Art

[0002] Embedded systems are widely used in various fields. However, due to the limited resources and high real-time requirements, there are certain challenges in directly running multiple operating system instances on embedded devices. The hardware resources of embedded devices (such as CPU, memory, peripheral interfaces, interrupt controllers, etc.) are limited. When multiple operating system instances (such as real-time operating system RTOS, Linux, etc.) run simultaneously, problems such as CPU resource competition, memory access conflict, peripheral exclusive issue, or interrupt handling conflict may occur, affecting the running stability and quality of embedded devices. The prior art proposes a solution that uses a virtual machine manager to virtualize the hardware resources of embedded devices, which can pre-allocate fixed resources for each operating system instance through static resource allocation to avoid dynamic competition during operation. However, the application of this method still has limitations in some scenarios.

[0003] Specifically, in some large industrial parks, a centralized data processing operation mode may be adopted, that is, when the local processing load of a large amount of operation data in the large industrial park is large, it will be transferred to a group of embedded devices pre-equipped on the edge side for centralized processing. On the one hand, it reduces the data processing load pressure of a single operating device and the operation control cost, and on the other hand, the functional modular configuration and layout within the industrial park can improve the convenience and efficiency of park production management. In this scenario, different embedded devices in the embedded device group are configured with different hardware resources, and different operating system instances under each embedded device are allocated different hardware resource requirements. When the operation data of a large number of different operating devices is allocated to different embedded devices, different operating system instances may be needed for data processing. Therefore, it is necessary to consider the output period of the operation data, the operating system instance required when the operation data is processed, and the hardware resources occupied by each operating system instance, which brings great difficulty to the fixed resource allocation of the operating system instance of each embedded device and also poses higher rationality requirements for the allocation of data processing tasks.

[0004] Therefore, how to improve the rationality and scientificity of the hardware resource scheduling and task execution allocation of each operating system instance in different embedded devices under an embedded device group while enhancing the data processing efficiency of production devices within a regional scope is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] The main objective of the present invention is to provide a resource scheduling control method and system for embedded devices, aiming to solve at least one of the above technical problems.

[0006] To achieve the above objective, the present invention provides a resource scheduling control method for embedded devices, and the method includes the following steps:

[0007] Receive a number of embedded device program running tasks executed in a target operation cycle; wherein, each embedded device program running task includes a program running period and a program running type;

[0008] Utilize the program running type to query the historical program running database, analyze the operating system instance resource requirement information of each embedded device program running task, and construct the execution requirement of the embedded device program running task by using the operating system instance resource requirement information and the program running period.

[0009] Query the embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate an embedded device resource scheduling plan based on the operating system instance resource allocation information and the execution requirement of the embedded device program running task.

[0010] Execute the resource scheduling of the embedded device by using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling plan.

[0011] Optionally, the step of receiving a number of embedded device program running tasks executed in a target operation cycle specifically includes:

[0012] Receive each embedded device resource call request, and extract the request user identifier and call requirement description information in the embedded device resource call request;

[0013] Extract the resource call running program and the resource call period in each call requirement description information, use the type of the resource call running program as the program running type, and use the resource call period as the program running period to construct the embedded device program running task of each embedded device resource call request executed in the target operation cycle.

[0014] Optionally, the step of extracting the resource call running program and the resource call period in each call requirement description information specifically includes:

[0015] Use natural language processing tools to perform word segmentation, part-of-speech analysis, and keyword extraction on each call requirement description information to obtain a number of keywords of each call requirement description information;

[0016] Call the expression word array of the resource call running program and the resource call period, calculate the similarity between each expression word in each expression word array and the keyword, and when there is an expression word with a similarity higher than the preset threshold, output the keyword as the resource call running program or the resource call period.

[0017] Optionally, using the program running type, query the historical program running database, and analyze the operating system instance resource requirement information steps for each embedded device program running task, specifically including:

[0018] Using the program running type, query the historical program running database, and extract the historical program running data corresponding to each program running type;

[0019] Among them, the historical program running data includes the resource information set occupied by each embedded device when executing a program of each program running type under different operating system instances;

[0020] From the historical program running data, match the resource information set required by each embedded device program running task for each program running type of program under different operating system instances, and generate the operating system instance resource requirement information for each embedded device program running task.

[0021] Optionally, the resource information set includes at least one or a combination of multiple of the CPU time slice occupancy ratio, memory occupancy size, peripheral occupancy type, and interrupt controller number.

[0022] Optionally, using the operating system instance resource requirement information and the program running period, construct the execution requirements for the embedded device program running task, specifically including:

[0023] Extract the resource information set required by each embedded device program running task in the operating system instance resource requirement information under different operating system instances, and map and store the resource information sets required under different operating system instances according to different program running types;

[0024] According to the program running period of each embedded device program running task, establish a program execution order list according to the program running period, and write each embedded device program running task and the resource information set required by this embedded device program running task under different operating system instances into the established program execution order list to generate the execution requirements for the embedded device program running task.

[0025] Optionally, query the embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate an embedded device resource scheduling scheme based on the operating system instance resource allocation information and the execution requirements of the embedded device program running tasks. The specific steps include:

[0026] Query the embedded device resource library; wherein, the embedded device resource library records the operating system instance resource allocation information of each embedded device in the previous operating cycle;

[0027] Extract the resource information set allocated to each operating system instance in the operating system instance resource allocation information, consider the resource information set allocated to each operating system instance, the resource information set required by each embedded device program running task, and the program running time period, and construct an optimization algorithm model with the resource information set occupied by each operating system instance as the constraint condition and the resource allocation stability of the operating system instance of each embedded device as the optimization goal to optimize and solve the embedded device resource scheduling scheme;

[0028] Wherein, the embedded device resource scheduling scheme is configured to perform the resource information set allocation for each operating system instance in each minimum scheduling time period in the target operating cycle and the allocation of each embedded device program running task to the corresponding embedded device.

[0029] Optionally, consider the resource information set allocated to each operating system instance, the resource information set required by each embedded device program running task, and the program running time period, and construct an optimization algorithm model with the resource information set occupied by each operating system instance as the constraint condition and the resource allocation stability of the operating system instance of each embedded device as the optimization goal to optimize and solve the embedded device resource scheduling scheme. The specific steps include:

[0030] Consider the resource information set allocated to each operating system instance, the resource information set required by each embedded device program running task, and the program running time period;

[0031] Take the resource information set allocated to each operating system instance in each minimum scheduling time period in the target operating cycle to meet the resource information set required by each embedded device running program running task allocated to this minimum scheduling time period as the constraint condition, and take the sum of the resource allocation adjustment times between several adjacent minimum scheduling time periods of all operating system instances of each embedded device in the target operating cycle as the optimization goal to construct an optimization algorithm model;

[0032] Use the optimization algorithm model to perform the optimization of the resource information set allocation for each operating system instance in each minimum scheduling time period in the target operating cycle and the allocation of each embedded device program running task to the corresponding embedded device, and generate an embedded device resource scheduling scheme.

[0033] Optionally, using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling scheme, perform the resource scheduling steps of the embedded device, specifically including:

[0034] Using the operating system instance resource allocation instruction in the embedded device resource scheduling scheme, drive the virtual machine manager on the embedded device to perform the allocation of the resource information set for each minimum scheduling period of each operating system instance in the target operating cycle;

[0035] Using the embedded device program running task allocation instruction in the embedded device resource scheduling scheme, control each received embedded device program running task to run during the corresponding program running period on the allocated embedded device.

[0036] In addition, to achieve the above object, the present invention also provides a resource scheduling control system for an embedded device, including:

[0037] A receiving module, configured to receive a plurality of embedded device program running tasks executed in the target operating cycle; wherein, each embedded device program running task includes a program running period and a program running type;

[0038] An analysis module, configured to use the program running type to query the historical program running database, analyze the operating system instance resource requirement information of each embedded device program running task, and construct the execution requirement of the embedded device program running task by using the operating system instance resource requirement information and the program running period;

[0039] An extraction module, configured to query the embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate an embedded device resource scheduling scheme based on the operating system instance resource allocation information and the execution requirement of the embedded device program running task;

[0040] An execution module, configured to use the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling scheme to perform the resource scheduling of the embedded device.

[0041] The beneficial effects of the present invention are as follows: A resource scheduling control method and system for embedded devices are proposed. By comprehensively analyzing the program running tasks of embedded devices, the execution requirements of the program running tasks of embedded devices are constructed. Then, by querying the resource information sets allocated to each operating system instance in each embedded device, a resource allocation optimization is constructed with the resource information sets occupied by each operating system instance as the constraint conditions and the resource allocation stability of the operating system instances of each embedded device as the optimization goal. Thus, the resource information sets of each operating system instance and the allocation optimization of the program running tasks of each embedded device are executed. Finally, by controlling the virtual machine manager to allocate the resources of each operating system instance in each embedded device and the program running tasks of each embedded device, the intelligent scheduling control of the resources of the embedded device and the efficient processing of production data are realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flowchart of the resource scheduling control method for embedded devices according to the present invention;

[0043] Figure 2 is a structural diagram of the resource scheduling control system for embedded devices according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0044] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0045] An embodiment of the present invention provides a resource scheduling control method for embedded devices. Refer to Figure 1 , Figure 1 is a schematic flowchart of an embodiment of the resource scheduling control method for embedded devices according to the present invention.

[0046] In this embodiment, a resource scheduling control method for embedded devices includes the following steps:

[0047] S100: Receive a plurality of program running tasks of embedded devices executed in a target running cycle; wherein, each program running task of an embedded device includes a program running period and a program running type;

[0048] S200: Use the program running type to query the historical program running database, analyze the resource requirement information of the operating system instance of each program running task of the embedded device, and use the resource requirement information of the operating system instance and the program running period to construct the execution requirement of the program running task of the embedded device;

[0049] S300: Query the embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate an embedded device resource scheduling plan based on the operating system instance resource allocation information and the execution requirements of the embedded device program running tasks;

[0050] S400: Use the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling plan to perform resource scheduling of the embedded device.

[0051] It should be noted that in some large industrial parks, a centralized data processing operation mode may be adopted, that is, when the local processing load of a large amount of operation data in the large industrial park is large, it will be transferred to the embedded device group pre-equipped on the edge side for centralized processing. On the one hand, it reduces the data processing load pressure of a single operating device and reduces the operation control cost. On the other hand, the functional modular configuration and layout in the industrial park can improve the convenience and efficiency of park production management. In this scenario, different embedded devices in the embedded device group are configured with different hardware resources, and different operating system instances under each embedded device are allocated different hardware resource requirements. When a large amount of operation data of different operating devices is allocated to different embedded devices, different operating system instances may be needed for data processing. Therefore, it is necessary to consider the output time period of the operation data, the operating system instance required when the operation data is processed, and the hardware resources occupied by each operating system instance, which brings great difficulties to the fixed resource allocation of the operating system instance of each embedded device and also puts forward higher rationality requirements for the allocation of data processing tasks.

[0052] To solve the above problems, in this embodiment, by comprehensively analyzing the embedded device program running tasks, the execution requirements of the embedded device program running tasks are constructed. Then, by querying the resource information set allocated to each operating system instance in each embedded device, a resource information set occupied by each operating system instance is used as a constraint condition and the resource allocation stability of the operating system instance of each embedded device is used as an optimization goal, so as to perform the allocation optimization of the resource information set of each operating system instance and each embedded device program running task. Finally, by controlling the virtual machine manager, the resources of each operating system instance in each embedded device and each embedded device program running task are allocated, realizing the intelligent scheduling control of the resources of the embedded device and the efficient processing of production data.

[0053] In a preferred embodiment, the steps of receiving several embedded device program running tasks executed in a target operation cycle specifically include:

[0054] S110: Receive each embedded device resource call request, and extract the requesting user identification and the call requirement description information in the embedded device resource call request;

[0055] S120: Extract the resource call running program and the resource call time period in each call requirement description information. Use the type of the resource call running program as the program running type, and use the resource call time period as the program running time period to construct the embedded device program running tasks for each embedded device resource call request executed in the target running cycle.

[0056] Furthermore, the steps of extracting the resource call running program and the resource call time period in each call requirement description information specifically include:

[0057] S121: Use natural language processing tools to perform word segmentation, part-of-speech analysis, and keyword extraction on each call requirement description information to obtain several keywords of each call requirement description information;

[0058] S122: Call the expression word arrays of the resource call running program and the resource call time period, calculate the similarity between each expression word in each expression word array and the keywords. When there is an expression word with a similarity higher than the preset threshold, use this keyword as the resource call running program or the resource call time period for output.

[0059] In this embodiment, first, by receiving each embedded device resource call request, according to the call requirement description information in the request, natural language processing tools are used for keyword extraction and similarity calculation to analyze the resource call running program and the resource call time period, so as to construct the embedded device program running tasks for each embedded device resource call request executed in the target running cycle.

[0060] In a preferred embodiment, the steps of using the program running type to query the historical program running database and analyze the operating system instance resource requirement information of each embedded device program running task specifically include:

[0061] S210: Use the program running type to query the historical program running database and extract the historical program running data corresponding to each program running type;

[0062] Among them, the historical program running data includes the resource information sets occupied by each embedded device under different operating system instances when executing programs of each program running type;

[0063] S220: From the historical program running data, match the resource information sets required by each program of each program running type corresponding to each embedded device program running task under different operating system instances, and generate the operating system instance resource requirement information of each embedded device program running task.

[0064] In practical applications, the resource information set includes at least one or a combination of multiple types such as the CPU time slice occupancy ratio, the memory occupancy size, the peripheral occupancy type, and the number of interrupt controllers.

[0065] On this basis, steps for constructing the execution requirements of the embedded device program running tasks by using the operating system instance resource requirements information and the program running period specifically include:

[0066] S230: Extract the resource information set required for each embedded device program running task in different operating system instances from the operating system instance resource requirements information, and map and store the resource information sets required in different operating system instances according to different program running types;

[0067] S240: According to the program running period of each embedded device program running task, establish a program execution order list according to the program running period, and write each embedded device program running task and the resource information set required for this embedded device program running task in different operating system instances into the established program execution order list to generate the execution requirements of the embedded device program running task.

[0068] In this embodiment, according to the program running type obtained in the previous steps, a method of querying the historical program running database is adopted to obtain several groups of historical program running data of the same program running type. After that, the resource information set required for each embedded device program running task corresponding to each program running type in different operating system instances in several groups of historical program running data is extracted (the average occupancy of resource information under multiple program runs can be considered), and finally the operating system instance resource requirements information of each embedded device program running task is generated. In this way, the execution requirements of the embedded device program running task can be constructed by using the operating system instance resource requirements information and the program running period.

[0069] In a preferred embodiment, steps for generating an embedded device resource scheduling scheme by querying the embedded device resource library and extracting the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and based on the operating system instance resource allocation information and the execution requirements of the embedded device program running task specifically include:

[0070] S310: Query the embedded device resource library; wherein, the embedded device resource library records the operating system instance resource allocation information of each embedded device in the previous running cycle;

[0071] S320: Extract the resource information sets allocated to each operating system instance in the resource allocation information of the operating system instance. Considering the resource information sets allocated to each operating system instance, the resource information sets required for each embedded device program running task, and the program running period, construct an optimization algorithm model with the resource information sets occupied by each operating system instance as the constraint conditions and the resource allocation stability of the operating system instances of each embedded device as the optimization objective, and optimize and solve the resource scheduling scheme for the embedded device;

[0072] Among them, the resource scheduling scheme for the embedded device is configured to perform the allocation of the resource information sets for each operating system instance in each minimum scheduling period in the target operating cycle and the allocation of each embedded device program running task to the corresponding embedded device.

[0073] Furthermore, considering the resource information sets allocated to each operating system instance, the resource information sets required for each embedded device program running task, and the program running period, the steps of constructing an optimization algorithm model with the resource information sets occupied by each operating system instance as the constraint conditions and the resource allocation stability of the operating system instances of each embedded device as the optimization objective, and optimizing and solving the resource scheduling scheme for the embedded device specifically include:

[0074] S321: Consider the resource information sets allocated to each operating system instance, the resource information sets required for each embedded device program running task, and the program running period;

[0075] S322: With the resource information sets allocated to each operating system instance in each minimum scheduling period in the target operating cycle satisfying the resource information sets required for each embedded device running program running task allocated to this minimum scheduling period as the constraint conditions, and with the sum of the number of resource allocation adjustments between several adjacent minimum scheduling periods in the target operating cycle of all operating system instances of each embedded device being the smallest as the optimization objective, construct an optimization algorithm model;

[0076] S323: Use the optimization algorithm model to perform the optimization of the allocation of the resource information sets for each operating system instance in each minimum scheduling period in the target operating cycle and the allocation of each embedded device program running task to the corresponding embedded device, and generate a resource scheduling scheme for the embedded device.

[0077] In this embodiment, by comprehensively analyzing the embedded device program running tasks executed within the target operating cycle, according to the program running type and the program running time period, the execution requirements of the embedded device program running tasks are constructed to represent the resource information set and the program running time period required for each embedded device program running task. After querying the resource information sets allocated to each operating system instance in each embedded device, finally, by constructing a constraint condition based on the resource information set occupied by each operating system instance and an optimization goal based on the resource allocation stability of the operating system instances of each embedded device, the resource information set of each minimum scheduling time period of each operating system instance in the target operating cycle and the allocation optimization of each embedded device program running task to the corresponding embedded device are executed to generate an embedded device resource scheduling scheme. Finally, by controlling the virtual machine manager to allocate resources to each operating system instance in each embedded device and allocate each embedded device program running task, while improving the rationality and scientificity of the hardware resource scheduling and task execution allocation of each operating system instance in different embedded devices under the embedded device group, the data processing efficiency of production devices within the regional scope is enhanced.

[0078] In a preferred embodiment, using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling scheme, the resource scheduling steps of the embedded device are executed, specifically including:

[0079] S410: Using the operating system instance resource allocation instruction in the embedded device resource scheduling scheme, driving the virtual machine manager on the embedded device to execute the allocation of the resource information set of each minimum scheduling time period of each operating system instance in the target operating cycle;

[0080] S420: Using the embedded device program running task allocation instruction in the embedded device resource scheduling scheme, controlling each received embedded device program running task to run during the corresponding program running time period on the allocated embedded device.

[0081] In this embodiment, in the finally generated embedded device resource scheduling scheme, it includes an operating system instance resource allocation instruction for executing the resource allocation of the operating system instance and an embedded device program running task allocation instruction for executing the allocation of the embedded device program running task. Finally, using the above two instructions can realize the allocation of the resource information set and the program running allocation of each minimum scheduling time period in the target operating cycle, and realize the intelligent scheduling control of the resources of the embedded device and the efficient processing of production data.

[0082] Refer to Figure 2 , Figure 2 which is the structural block diagram of the embodiment of the resource scheduling control system for embedded devices of the present invention.

[0083] As Figure 2 shown, the resource scheduling control system for an embedded device proposed in an embodiment of the present invention includes:

[0084] A receiving module 10, configured to receive a plurality of embedded device program running tasks executed in a target operation cycle; wherein each embedded device program running task includes a program running period and a program running type;

[0085] An analysis module 20, configured to use the program running type to query a historical program running database, analyze the operating system instance resource requirement information of each embedded device program running task, and construct an execution requirement of the embedded device program running task by using the operating system instance resource requirement information and the program running period;

[0086] An extraction module 30, configured to query an embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate an embedded device resource scheduling scheme based on the operating system instance resource allocation information and the execution requirement of the embedded device program running task;

[0087] An execution module 40, configured to execute the resource scheduling of the embedded device by using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling scheme.

[0088] For other embodiments or specific implementation manners of the resource scheduling control system for an embedded device of the present invention, reference may be made to the above method embodiments, which will not be elaborated herein.

[0089] It can be understood that in the description of this specification, the descriptions with reference to terms such as "one embodiment", "another embodiment", "other embodiments", or "the first embodiment to the Nth embodiment" etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0090] It should be noted that in this text, the term "including", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent in such a process, method, article or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.

[0091] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.

Claims

1. A resource scheduling control method for an embedded device, characterized in that, The method includes the following steps: Receiving a plurality of embedded device program running tasks executed in a target running cycle; wherein, each embedded device program running task includes a program running period and a program running type; Using the program running type, querying a historical program running database, analyzing the operating system instance resource requirement information of each embedded device program running task, and using the operating system instance resource requirement information and the program running period to construct an execution requirement for the embedded device program running task; specifically including: Using the program running type, querying a historical program running database, and extracting historical program running data corresponding to each program running type; Wherein, the historical program running data includes a resource information set occupied by each embedded device when executing a program of each program running type under different operating system instances; From the historical program running data, matching the resource information sets required by each program running type of each embedded device program running task under different operating system instances, and generating the operating system instance resource requirement information of each embedded device program running task; Extracting the resource information sets required by each embedded device program running task in the operating system instance resource requirement information, and mapping and storing the resource information sets required under different operating system instances according to different program running types; According to the program running period of each embedded device program running task, establishing a program execution sequence list according to the program running period, and writing each embedded device program running task and the resource information sets required by the embedded device program running task under different operating system instances into the established program execution sequence list, generating an execution requirement for the embedded device program running task; Querying an embedded device resource library, extracting the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generating an embedded device resource scheduling scheme based on the operating system instance resource allocation information and the execution requirement of the embedded device program running task; Using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling scheme to perform resource scheduling of the embedded device.

2. The resource scheduling control method for an embedded device according to claim 1, characterized in that The step of receiving a plurality of embedded device program running tasks executed in a target running cycle specifically includes: Receiving each embedded device resource call request, and extracting the request user identification and the call requirement description information in the embedded device resource call request; Extracting the resource call running program and the resource call period in each call requirement description information, using the type of the resource call running program as the program running type, and using the resource call period as the program running period, to construct an embedded device program running task for each embedded device resource call request executed in the target running cycle.

3. The resource scheduling control method for an embedded device according to claim 2, wherein The step of extracting the resource call running program and the resource call period in each call requirement description information specifically includes: Use natural language processing tools to perform word segmentation, part-of-speech analysis, and keyword extraction on each call requirement description information, and obtain several keywords for each call requirement description information; Call the expression word arrays of the resource call running program and the resource call time period, calculate the similarity between each expression word in each expression word array and the keyword. When there is an expression word with a similarity higher than the preset threshold, use this keyword as the resource call running program or the resource call time period for output.

4. The resource scheduling control method for an embedded device according to claim 1, wherein The resource information set includes at least one or a combination of multiple ones among the CPU time slice occupancy ratio, memory occupancy size, peripheral occupancy type, and the number of interrupt controllers.

5. The resource scheduling control method for an embedded device according to claim 1, characterized in that, Query the embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate the steps of the embedded device resource scheduling scheme based on the operating system instance resource allocation information and the embedded device program running task execution requirements, specifically including: Query the embedded device resource library; wherein, the embedded device resource library records the operating system instance resource allocation information of each embedded device in the previous running cycle; Extract the resource information set allocated to each operating system instance in the operating system instance resource allocation information, consider the resource information set allocated to each operating system instance, the resource information set required by each embedded device program running task, and the program running time period, and construct an optimization algorithm model with the resource information set occupied by each operating system instance as the constraint condition and the resource allocation stability of the operating system instance of each embedded device as the optimization goal to optimize and solve the embedded device resource scheduling scheme; Wherein, the embedded device resource scheduling scheme is configured to perform the resource information set allocation for each operating system instance in each minimum scheduling time period in the target running cycle and the allocation of each embedded device program running task to the corresponding embedded device.

6. The resource scheduling control method for an embedded device according to claim 5, characterized in that, Consider the resource information set allocated to each operating system instance, the resource information set required by each embedded device program running task, and the program running time period, and construct an optimization algorithm model with the resource information set occupied by each operating system instance as the constraint condition and the resource allocation stability of the operating system instance of each embedded device as the optimization goal to optimize and solve the steps of the embedded device resource scheduling scheme, specifically including: Consider the resource information set allocated to each operating system instance, the resource information set required by each embedded device program running task, and the program running time period; With the resource information set allocated to each operating system instance in each minimum scheduling time period in the target running cycle satisfying the resource information set required by each embedded device running program running task allocated to this minimum scheduling time period as the constraint condition, and with the sum of the resource allocation adjustment times between several adjacent minimum scheduling time periods of all operating system instances of each embedded device in the target running cycle being the smallest as the optimization goal, construct an optimization algorithm model; Execute the optimization of resource information set allocation for each operating system instance in each minimum scheduling period during the target operation cycle and the allocation of each embedded device program running task to the corresponding embedded device by using the optimization algorithm model, and generate an embedded device resource scheduling scheme.

7. The resource scheduling control method for an embedded device according to claim 1, characterized in that, Execute the resource scheduling steps of the embedded device by using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling scheme, specifically including: Drive the virtual machine manager on the embedded device to execute the allocation of the resource information set for each operating system instance in each minimum scheduling period during the target operation cycle by using the operating system instance resource allocation instruction in the embedded device resource scheduling scheme; Control each received embedded device program running task to run during the corresponding program running period on the allocated embedded device by using the embedded device program running task allocation instruction in the embedded device resource scheduling scheme.

8. A resource scheduling control system for an embedded device, characterized in that, Including: A receiving module, configured to receive a plurality of embedded device program running tasks executed during the target operation cycle; wherein, each embedded device program running task includes a program running period and a program running type; An analysis module, configured to query the historical program running database by using the program running type, analyze the operating system instance resource requirement information of each embedded device program running task, and construct the execution requirement of the embedded device program running task by using the operating system instance resource requirement information and the program running period; specifically including: Query the historical program running database by using the program running type, and extract the historical program running data corresponding to each program running type; Wherein, the historical program running data includes the resource information set occupied by each embedded device when executing a program of each program running type under different operating system instances; Match the resource information set required by the program of each program running type corresponding to each embedded device program running task under different operating system instances from the historical program running data, and generate the operating system instance resource requirement information of each embedded device program running task; Extract the resource information set required by each embedded device program running task in the operating system instance resource requirement information under different operating system instances, and map and store the resource information sets required under different operating system instances according to different program running types; According to the program running period of each embedded device program running task, establish a program execution sequence list according to the program running period, write each embedded device program running task and the resource information set required by the embedded device program running task under different operating system instances into the established program execution sequence list, and generate the execution requirement of the embedded device program running task; An extraction module, configured to query the embedded device resource library, extract the operating system instance resource allocation information of each embedded device recorded in the embedded device resource library, and generate an embedded device resource scheduling scheme based on the operating system instance resource allocation information and the execution requirement of the embedded device program running task; An execution module, configured to perform resource scheduling of an embedded device by using the operating system instance resource allocation instruction and the embedded device program running task allocation instruction in the embedded device resource scheduling solution.

Citation Information

Patent Citations

  • Resource scheduling method, model generation method and device

    CN119512720A

  • Method for converting OCI mirror image and embedded mirror image in embedded environment

    CN119917223A