Dynamic hierarchical scheduling method and device for remote sensing image processing resources
By classifying and dismantling remote sensing image processing tasks and analyzing meta-task requirements, a scenario-based hierarchical task scheduling strategy was adopted to solve the problem of resource allocation mismatch in the existing technology and improve the resource utilization efficiency and processing performance of remote sensing image processing. .
Patent Information
- Application Number
- CN202410885386.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing cloud computing resource scheduling algorithms fail to effectively consider the characteristic attributes of remote sensing image processing tasks, resulting in resource allocation mismatch, inability to fully utilize computing resources, and affecting processing efficiency.
By obtaining remote sensing image processing task information, we conduct classification and disassembly and meta-task requirement analysis, and introduce a scenario-based task hierarchical scheduling strategy to achieve refined evaluation and dynamic allocation of computing resources.
It improves the computing resource utilization efficiency of remote sensing image processing under limited resource conditions, and achieves more efficient resource scheduling and processing performance.
Smart Images

Figure CN118860596A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote sensing image processing and application technology, and in particular to a remote sensing image processing resource dynamic hierarchical scheduling method and device. Background Art
[0002] With the widespread application of cloud computing technology in various fields, the scale and application scenarios of cloud computing are becoming increasingly larger and more complex, and resource scheduling issues have also become a key issue in the application of cloud computing technology. Resource scheduling in a cloud environment mainly includes scheduling of computing resources, storage resources, network resources, etc. The goal is to achieve efficient resource utilization and optimize performance to meet user needs and service level agreement requirements. Its performance will directly affect the services of the entire cloud platform. In computing-intensive application fields, CPUs have unique advantages in memory reading, processing serial work, and complex process control; compared with CPUs, GPUs have the characteristics of fine thread granularity, less cache requirements, a large number of computing cores, and strong floating-point computing capabilities, and are better at parallel computing of large-scale data. The computing power consumed by the remote sensing image processing process mainly includes general computing resources such as CPU, GPU, and memory, but the computing power requirements of various processing processes are different. Existing cloud computing resource scheduling algorithms mainly include priority-based scheduling algorithms, queue-based scheduling algorithms, load balancing-based scheduling algorithms, and heuristic algorithm-based scheduling algorithms. Usually, general virtualization resources such as CPU and memory are used as the main resources to design resource allocation algorithms, and different resource scheduling strategies are given with the maximum resource utilization as the optimization goal. The characteristic attributes of remote sensing image processing tasks are not considered comprehensively, which does not match the particularity of computing resources and actual application scenarios of remote sensing image processing. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method and device for dynamic hierarchical scheduling of remote sensing image processing resources, which realizes dynamic hierarchical scheduling of remote sensing image processing resources based on meta-task demand assessment. The core of this method is to realize refined evaluation of computing resources by classifying and disassembling image processing processes and analyzing meta-task requirements for actual application scenarios of remote sensing image processing, and introduce a scenario-based task hierarchical scheduling strategy on this basis to realize dynamic scheduling and allocation of resources for remote sensing image processing scenarios. This method overcomes the shortcomings of the existing technology, improves the utilization efficiency of remote sensing image processing computing resources, and has engineering practice application significance.
[0004] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a method for dynamic hierarchical scheduling of remote sensing image processing resources, the method comprising:
[0005] S1, obtaining remote sensing image processing task information; the remote sensing image processing task information includes sensor type, working mode, working time, data reception start time, data reception end time and remote sensing image processing task priority information;
[0006] S2, processing the remote sensing image processing task information to obtain the number of image processing tasks that the ground system needs to complete within the time period τ;
[0007] S3, mapping remote sensing image processing tasks to obtain a remote sensing image processing algorithm set;
[0008] The remote sensing image processing algorithm set includes N meta-tasks, where N is a positive integer;
[0009] The remote sensing image processing algorithm set includes a preprocessing process algorithm set Y, a data cataloging process algorithm set S, an image correction process algorithm set T and a model training process algorithm set Z; the processing software or plug-in in each processing process in the remote sensing image processing algorithm set is regarded as a meta-task;
[0010] S4, processing the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task; the computing resource consumption information of each meta-task includes the number of CPUs, memory size, and the number of GPUs;
[0011] S5, according to the computing resource consumption information of each meta-task, the number of image processing tasks that need to be completed by the ground system within the time period τ is processed to obtain resource requirement information for the system to execute a single remote sensing image processing task and resource requirement information for the remote sensing image processing tasks that need to be executed by the system;
[0012] S6, performing dynamic hierarchical resource scheduling for the remote sensing image processing tasks to be processed according to the priority of the remote sensing image processing tasks, the resource requirement information of the system to execute a single remote sensing image processing task, and the resource requirement information of the remote sensing image processing tasks to be executed by the system.
[0013] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the remote sensing image processing task information is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ, including:
[0014] S21, processing the remote sensing image processing task information to obtain a single image processing task;
[0015] S22, processing the single image processing task to obtain the number of image processing tasks that need to be completed by the ground system at time t;
[0016] S23, processing the number of image processing tasks that need to be completed by the ground system at the time t to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ.
[0017] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the single image processing task expression is:
[0018] rtask={Sensor,Mode,Period,St,Et}
[0019] Among them, rtask is a single image processing task, Sensor is the sensor type, Mode is the working mode, Period is the working duration, St is the start time of data reception, and Et is the end time of data reception.
[0020] As an optional implementation, in the first aspect of the embodiment of the present invention, the number of image processing tasks that the ground system needs to complete at time t is expressed as:
[0021]
[0022] Among them, f(t) is the number of image processing tasks that the ground system needs to complete at time t, rtask i is the i-th image processing task, St i is the start time of receiving data for the i-th image processing task, Et i The data receiving end time of the i-th image processing task.
[0023] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the number of image processing tasks that need to be completed by the ground system at the time t is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ, including:
[0024] Using the image processing task calculation model, the number of image processing tasks that need to be completed by the ground system at the time t is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ;
[0025] The image processing task calculation model expression is:
[0026]
[0027] Where F(τ) is the number of image processing tasks that the ground system needs to complete within the period τ, f(t) is the number of image processing tasks that the ground system needs to complete at time t, h(t) is the processing response function, and t0 is the reference time for the start of calculation. Represents convolution.
[0028] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the remote sensing image processing task is mapped to obtain a remote sensing image processing algorithm set, including:
[0029] Using the remote sensing image processing task mapping model, the remote sensing image processing tasks are mapped to obtain the remote sensing image processing algorithm set;
[0030] The remote sensing image processing task mapping model expression is:
[0031] f:rtask i →E i (Y i ,S i ,T i ,Z i )
[0032] Among them, f represents the mapping relationship, rtask i is the i-th image processing task, Y i =(y1,y2,…,y m ) is the i-th preprocessing algorithm set, is the i1th element in the i-th preprocessing algorithm set, i1=1,2,…,m, m is the number of elements in the i-th preprocessing algorithm set, S i =(s1,s2,…,s n ) is the algorithm set of the i-th data cataloguing process, is the i2th element in the i-th data cataloging process algorithm set, i2=1,2,…,n, n is the number of elements in the i-th data cataloging process algorithm set, T i =(t1,t2,…,t p ) is the i-th image correction process algorithm set, is the i3th element in the i-th image correction process algorithm set, i3=1,2,…,p, p is the number of elements in the i-th image correction process algorithm set, Z i =(z1,z2,…,z q ) is the algorithm set of the i-th model training process, is the i4th element in the i-th model training process algorithm set, i4=1,2,…,q, q is the number of elements in the i-th model training process algorithm set, the values of m, n, p, q are related to the actual business system and can be directly obtained from the system configuration, the remote sensing image processing algorithm set includes N meta-tasks, N is a positive integer, a processing software or a plug-in in the preprocessing process algorithm set Y, the data cataloging process algorithm set S, the image correction process algorithm set T and the model training process algorithm set Z is regarded as a meta-task, E i is the i-th remote sensing image processing algorithm set.
[0033] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the processing of the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task includes:
[0034] Perform statistical analysis on the historical running status of each meta-task to obtain the computing resource consumption information of each meta-task;
[0035] The computing resource consumption information expression of each meta-task is:
[0036]
[0037] in, is the computing resource consumption information of the i-th meta-task, zycpu represents CPU, Tci is the number of CPUs of the i-th meta-task, zygpu represents GPU, Tgi is the number of GPUs of the i-th meta-task, zymem represents memory, and Tmi is the memory size of the i-th meta-task.
[0038] As an optional implementation, in the first aspect of the embodiment of the present invention, the resource requirement information expression of the remote sensing image processing task to be performed by the system is:
[0039]
[0040] Among them, ZY(τ) is the resource demand information of the remote sensing image processing task that the system needs to perform within the period τ, t0 is the reference time for the start of calculation, represents convolution, H(t) is the mapping between tasks and resource consumption, is the computing resource consumption information of the ith meta-task, zycpu represents CPU, Tci is the number of CPUs of the ith meta-task, zygpu represents GPU, Tgi is the number of GPUs of the ith meta-task, zymem represents memory, Tmi is the memory size of the ith meta-task, rtask i is the i-th image processing task.
[0041] A second aspect of an embodiment of the present invention discloses a remote sensing image processing resource dynamic hierarchical scheduling device, the device comprising:
[0042] An information acquisition module is used to acquire remote sensing image processing task information; the remote sensing image processing task information includes sensor type, working mode, working time, data reception start time, data reception end time and remote sensing image processing task priority information;
[0043] An information processing module is used to process the remote sensing image processing task information to obtain the number of image processing tasks that need to be completed by the ground system within a time period τ;
[0044] The task mapping module is used to map the remote sensing image processing tasks and obtain the remote sensing image processing algorithm set;
[0045] The remote sensing image processing algorithm set includes N meta-tasks, where N is a positive integer;
[0046] The remote sensing image processing algorithm set includes a preprocessing process algorithm set Y, a data cataloging process algorithm set S, an image correction process algorithm set T and a model training process algorithm set Z; the processing software or plug-in in each processing process in the remote sensing image processing algorithm set is regarded as a meta-task;
[0047] A meta-task processing module, used to process the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task; the computing resource consumption information of each meta-task includes the number of CPUs, memory size, and the number of GPUs;
[0048] A resource requirement calculation module is used to process the number of image processing tasks that the ground system needs to complete within the time period τ according to the computing resource consumption information of each meta-task, and obtain the resource requirement information of the system executing a single remote sensing image processing task and the resource requirement information of the remote sensing image processing tasks that the system needs to execute;
[0049] The hierarchical scheduling module is used to dynamically schedule resources for the remote sensing image processing tasks to be processed according to the priority of the remote sensing image processing tasks, the resource requirement information of the system to execute a single remote sensing image processing task, and the resource requirement information of the remote sensing image processing tasks to be executed by the system.
[0050] As an optional implementation, in the second aspect of the embodiment of the present invention, the remote sensing image processing task information is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ, including:
[0051] S21, processing the remote sensing image processing task information to obtain a single image processing task;
[0052] S22, processing the single image processing task to obtain the number of image processing tasks that need to be completed by the ground system at time t;
[0053] S23, processing the number of image processing tasks that need to be completed by the ground system at the time t to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ.
[0054] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the single image processing task expression is:
[0055] rtask={Sensor,Mode,Period,St,Et}
[0056] Among them, rtask is a single image processing task, Sensor is the sensor type, Mode is the working mode, Period is the working duration, St is the start time of data reception, and Et is the end time of data reception.
[0057] As an optional implementation, in the second aspect of the embodiment of the present invention, the number of image processing tasks that the ground system needs to complete at time t is expressed as:
[0058]
[0059] Among them, f(t) is the number of image processing tasks that the ground system needs to complete at time t, rtask i is the i-th image processing task, St i is the start time of receiving data for the i-th image processing task, Et i The data receiving end time of the i-th image processing task.
[0060] As an optional implementation, in the second aspect of the embodiment of the present invention, the number of image processing tasks that need to be completed by the ground system at the time t is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ, including:
[0061] Using the image processing task calculation model, the number of image processing tasks that need to be completed by the ground system at the time t is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ;
[0062] The image processing task calculation model expression is:
[0063]
[0064] Where F(τ) is the number of image processing tasks that the ground system needs to complete within the period τ, f(t) is the number of image processing tasks that the ground system needs to complete at time t, h(t) is the processing response function, and t0 is the reference time for the start of calculation. Represents convolution.
[0065] As an optional implementation, in the second aspect of the embodiment of the present invention, the remote sensing image processing task is mapped to obtain a remote sensing image processing algorithm set, including:
[0066] Using the remote sensing image processing task mapping model, the remote sensing image processing tasks are mapped to obtain the remote sensing image processing algorithm set;
[0067] The remote sensing image processing task mapping model expression is:
[0068] f:rtaski →E i (Y i ,S i ,T i ,Z i )
[0069] Among them, f represents the mapping relationship, rtask i is the i-th image processing task, Y i =(y1,y2,…,y m ) is the i-th preprocessing algorithm set, is the i1th element in the i-th preprocessing algorithm set, i1=1,2,...,m, m is the number of elements in the i-th preprocessing algorithm set, S i =(s1,s2,...,s n ) is the algorithm set of the i-th data cataloguing process, is the i2th element in the i-th data cataloging process algorithm set, i2=1,2,…,n, n is the number of elements in the i-th data cataloging process algorithm set, T i =(t1,t2,…,t p ) is the i-th image correction process algorithm set, is the i3th element in the i-th image correction process algorithm set, i3=1,2,…,p, p is the number of elements in the i-th image correction process algorithm set, Z i =(z1,z2,...,z q ) is the algorithm set of the i-th model training process, is the i4th element in the i-th model training process algorithm set, i4=1,2,…,q, q is the number of elements in the i-th model training process algorithm set, the values of m, n, p, q are related to the actual business system and can be directly obtained from the system configuration, the remote sensing image processing algorithm set includes N meta-tasks, N is a positive integer, a processing software or a plug-in in the preprocessing process algorithm set Y, the data cataloging process algorithm set S, the image correction process algorithm set T and the model training process algorithm set Z is regarded as a meta-task, E i is the i-th remote sensing image processing algorithm set.
[0070] As an optional implementation manner, in the second aspect of the embodiment of the present invention, the processing of the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task includes:
[0071] Perform statistical analysis on the historical running status of each meta-task to obtain the computing resource consumption information of each meta-task;
[0072] The computing resource consumption information expression of each meta-task is:
[0073]
[0074] in, is the computing resource consumption information of the i-th meta-task, zycpu represents CPU, Tci is the number of CPUs of the i-th meta-task, zygpu represents GPU, Tgi is the number of GPUs of the i-th meta-task, zymem represents memory, and Tmi is the memory size of the i-th meta-task.
[0075] As an optional implementation, in the second aspect of the embodiment of the present invention, the resource requirement information expression of the remote sensing image processing task to be performed by the system is:
[0076]
[0077] Among them, ZY(τ) is the resource demand information of the remote sensing image processing task that the system needs to perform within the period τ, t0 is the reference time for the start of calculation, represents convolution, H(t) is the mapping between tasks and resource consumption, H(t): is the computing resource consumption information of the ith meta-task, zycpu represents CPU, Tci is the number of CPUs of the ith meta-task, zygpu represents GPU, Tgi is the number of GPUs of the ith meta-task, zymem represents memory, Tmi is the memory size of the ith meta-task, rtask i is the i-th image processing task.
[0078] The third aspect of the present invention discloses another remote sensing image processing resource dynamic hierarchical scheduling device, the device comprising:
[0079] A memory storing executable program code;
[0080] a processor coupled to the memory;
[0081] The processor calls the executable program code stored in the memory to execute part or all of the steps in a method for dynamic hierarchical scheduling of remote sensing image processing resources disclosed in the first aspect of an embodiment of the present invention.
[0082] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0083] The present invention discloses a remote sensing image processing resource dynamic hierarchical scheduling method, which realizes refined evaluation of computing power resources based on the classification and disassembly of image processing flow and meta-task demand analysis, and realizes dynamic scheduling and allocation of resources for actual remote sensing image processing scenarios by introducing a task hierarchical scheduling strategy, thereby improving the utilization efficiency of remote sensing image processing computing power resources under limited resource conditions, having a major breakthrough in practicability, and can be extended to fields related to remote sensing image processing and applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0085] Figure 1 It is a flow chart of a method for dynamic hierarchical scheduling of remote sensing image processing resources disclosed in an embodiment of the present invention;
[0086] Figure 2 It is a flow chart of another method for dynamic hierarchical scheduling of remote sensing image processing resources disclosed in an embodiment of the present invention;
[0087] Figure 3 is a schematic diagram comparing the number of remote sensing image data receiving tasks and meta-tasks disclosed in an embodiment of the present invention;
[0088] Figure 4 is a schematic diagram comparing consumption of various types of processing resources disclosed in an embodiment of the present invention;
[0089] Figure 5 It is a structural schematic diagram of a remote sensing image processing resource dynamic hierarchical scheduling device disclosed in an embodiment of the present invention;
[0090] Figure 6 It is a structural schematic diagram of another remote sensing image processing resource dynamic hierarchical scheduling device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0091] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0092] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0093] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0094] The present invention discloses a remote sensing image processing resource dynamic hierarchical scheduling method and device, the method comprising: acquiring remote sensing image processing task information; processing the remote sensing image processing task information to obtain the number of image processing tasks that need to be completed by the ground system within a time period τ; mapping the remote sensing image processing tasks to obtain a remote sensing image processing algorithm set; processing the remote sensing image processing algorithm set to obtain the computing resource consumption information of each meta-task; processing the number of image processing tasks that need to be completed by the ground system within the time period τ according to the computing resource consumption information of each meta-task to obtain the resource requirement information of the system executing a single remote sensing image processing task and the resource requirement information of the remote sensing image processing tasks that the system needs to execute; performing dynamic hierarchical resource scheduling on the remote sensing image processing tasks to be processed according to the remote sensing image processing task priority, the resource requirement information of the system executing a single remote sensing image processing task and the resource requirement information of the remote sensing image processing tasks that the system needs to execute. The following are detailed descriptions respectively.
[0095] Embodiment 1
[0096] See also Figure 1 , Figure 1 : is a flow chart of a method for dynamically scheduling remote sensing image processing resources according to an embodiment of the present invention. Figure 1 The remote sensing image processing resource dynamic hierarchical scheduling method described is applied to the remote sensing image processing and application fields to improve the utilization efficiency of remote sensing image processing computing resources under limited resource conditions, which is not limited in the embodiments of the present invention. Figure 1 As shown, the remote sensing image processing resource dynamic hierarchical scheduling method may include the following operations:
[0097] S1, obtaining remote sensing image processing task information; the remote sensing image processing task information includes sensor type, working mode, working time, data reception start time, data reception end time and remote sensing image processing task priority information;
[0098] S2, processing the remote sensing image processing task information to obtain the number of image processing tasks that the ground system needs to complete within the time period τ;
[0099] S3, mapping remote sensing image processing tasks to obtain a remote sensing image processing algorithm set;
[0100] The remote sensing image processing algorithm set includes N meta-tasks, where N is a positive integer;
[0101] The remote sensing image processing algorithm set includes a preprocessing process algorithm set Y, a data cataloging process algorithm set S, an image correction process algorithm set T and a model training process algorithm set Z; the processing software or plug-in in each processing process in the remote sensing image processing algorithm set is regarded as a meta-task;
[0102] S4, processing the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task; the computing resource consumption information of each meta-task includes the number of CPUs, memory size, and the number of GPUs;
[0103] S5, according to the computing resource consumption information of each meta-task, the number of image processing tasks that need to be completed by the ground system within the time period τ is processed to obtain resource requirement information for the system to execute a single remote sensing image processing task and resource requirement information for the remote sensing image processing tasks that need to be executed by the system;
[0104] S6, performing dynamic hierarchical resource scheduling for the remote sensing image processing tasks to be processed according to the priority of the remote sensing image processing tasks, the resource requirement information of the system to execute a single remote sensing image processing task, and the resource requirement information of the remote sensing image processing tasks to be executed by the system.
[0105] Optionally, the remote sensing image processing task information is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ, including:
[0106] S21, processing the remote sensing image processing task information to obtain a single image processing task;
[0107] S22, processing the single image processing task to obtain the number of image processing tasks that need to be completed by the ground system at time t;
[0108] S23, processing the number of image processing tasks that need to be completed by the ground system at the time t to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ.
[0109] Optionally, the single image processing task expression is:
[0110] rtask={Sensor,Mode,Period,St,Et}
[0111] Among them, rtask is a single image processing task, Sensor is the sensor type, Mode is the working mode, Period is the working duration, St is the start time of data reception, and Et is the end time of data reception.
[0112] Optionally, the number of image processing tasks that the ground system needs to complete at the time t is expressed as:
[0113]
[0114] Among them, f(t) is the number of image processing tasks that the ground system needs to complete at time t, rtask i is the i-th image processing task, St i is the start time of receiving data for the i-th image processing task, Et i The data receiving end time of the i-th image processing task.
[0115] Optionally, the processing of the number of image processing tasks that need to be completed by the ground system at the time t to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ includes:
[0116] Using the image processing task calculation model, the number of image processing tasks that need to be completed by the ground system at the time t is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ;
[0117] The image processing task calculation model expression is:
[0118]
[0119] Where F(τ) is the number of image processing tasks that the ground system needs to complete within the period τ, f(t) is the number of image processing tasks that the ground system needs to complete at time t, h(t) is the processing response function, and t0 is the reference time for the start of calculation. Represents convolution.
[0120] Optionally, mapping the remote sensing image processing tasks to obtain a remote sensing image processing algorithm set includes:
[0121] Using the remote sensing image processing task mapping model, the remote sensing image processing tasks are mapped to obtain the remote sensing image processing algorithm set;
[0122] The remote sensing image processing task mapping model expression is:
[0123] f:rtask i →E i (Y i ,S i ,T i ,Z i )
[0124] Among them, f represents the mapping relationship, rtask i is the i-th image processing task, Y i =(y1,y2,…,y m ) is the i-th preprocessing algorithm set, is the i1th element in the i-th preprocessing algorithm set, i1=1,2,...,m, m is the number of elements in the i-th preprocessing algorithm set, S i =(s1,s2,...,s n ) is the algorithm set of the i-th data cataloguing process, is the i2th element in the i-th data cataloging process algorithm set, i2=1,2,…,n, n is the number of elements in the i-th data cataloging process algorithm set, T i =(t1,t2,…,t p ) is the i-th image correction process algorithm set, is the i3th element in the i-th image correction process algorithm set, i3=1,2,…,p, p is the number of elements in the i-th image correction process algorithm set, Z i =(z1,z2,…,z q ) is the algorithm set of the i-th model training process, is the i4th element in the i-th model training process algorithm set, i4=1,2,…,q, q is the number of elements in the i-th model training process algorithm set, the values of m, n, p, q are related to the actual business system and can be directly obtained from the system configuration, the remote sensing image processing algorithm set includes N meta-tasks, N is a positive integer, a processing software or a plug-in in the preprocessing process algorithm set Y, the data cataloging process algorithm set S, the image correction process algorithm set T and the model training process algorithm set Z is regarded as a meta-task, E i is the i-th remote sensing image processing algorithm set.
[0125] Optionally, the processing of the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task includes:
[0126] Perform statistical analysis on the historical running status of each meta-task to obtain the computing resource consumption information of each meta-task;
[0127] The computing resource consumption information expression of each meta-task is:
[0128]
[0129] in, is the computing resource consumption information of the i-th meta-task, zycpu represents CPU, Tci is the number of CPUs of the i-th meta-task, zygpu represents GPU, Tgi is the number of GPUs of the i-th meta-task, zymem represents memory, and Tmi is the memory size of the i-th meta-task.
[0130] Optionally, the resource requirement information expression of the remote sensing image processing task to be performed by the system is:
[0131]
[0132] Among them, ZY(τ) is the resource requirement information of the remote sensing image processing task that the system needs to perform within the time period τ, zy(t) is the resource requirement information of the system performing a single remote sensing image processing task (obtained by classifying and accumulating the resource consumption of the meta-tasks corresponding to a single task, a single processing task (such as a data reception) can be decomposed into multiple meta-tasks, and the resource requirement of a single processing task can be obtained by classifying and accumulating the corresponding cloud task resource requirements, which is not limited in this embodiment), t0 is the reference time for the start of calculation, represents convolution, is the computing resource consumption information of the ith meta-task, H(t) is the mapping between tasks and resource consumption, H(t): zycpu represents CPU, Tci is the number of CPUs in the ith meta-task, zygpu represents GPU, Tgi is the number of GPUs in the ith meta-task, zymem represents memory, Tmi is the memory size of the ith meta-task, rtask i is the i-th image processing task.
[0133] It can be seen that the method for dynamic hierarchical scheduling of remote sensing image processing resources in the present invention realizes refined evaluation of computing resources based on the classification and decomposition of image processing processes and meta-task demand analysis, and realizes dynamic scheduling and allocation of resources for actual scenarios of remote sensing image processing by introducing a task hierarchical scheduling strategy, thereby improving the utilization efficiency of remote sensing image processing computing resources under limited resource conditions, having a major breakthrough in practicality, and can be extended to fields related to remote sensing image processing and applications.
[0134] Embodiment 2
[0135] See also Figure 2 , Figure 2 1 is a flow chart of another method for dynamically scheduling remote sensing image processing resources according to an embodiment of the present invention. Figure 2The remote sensing image processing resource dynamic hierarchical scheduling method described is applied to the remote sensing image processing and application fields to improve the utilization efficiency of remote sensing image processing computing resources under limited resource conditions, which is not limited in the embodiments of the present invention. Figure 2 As shown, the remote sensing image processing resource dynamic hierarchical scheduling method may include the following operations:
[0136] Step 1: Get task information
[0137] Get detailed information about remote sensing image processing tasks, including sensor type, working mode, working duration, data reception start time, data reception end time, task priority information, etc. A single image processing task rtask is described as a function of sensor type Sensor, working mode Mode, working duration Period, data reception start time St and end time Et:
[0138] rtask={Sensor,Mode,Period,St,Et} (1)
[0139] For a certain time t, the number of image processing tasks f(t) that the ground system needs to complete can be preliminarily calculated through the sensor work plan:
[0140]
[0141] Furthermore, it can be calculated that the number of image processing tasks F(τ) that the ground system needs to complete within any period τ is the convolution of the processing task and the processing response function h(t). Among them, the processing response function h(t) is a function of the actual receiving time of the system with respect to the planned processing task time, which represents the data transmission time delay in actual situations and can be obtained by statistical system historical information or actual testing.
[0142]
[0143] Step 2: Process splitting
[0144] According to the characteristics of computing resource requirements in remote sensing image processing, the remote sensing image processing process is classified into four processing processes: preprocessing, data cataloging, image correction, and model training. The processing software or plug-in in each processing process is regarded as a meta-task. i , the image processing task can be further mapped into an image processing algorithm set according to the image processing process classification, namely, the preprocessing process algorithm set Y, the data cataloging process algorithm set S, the image correction process algorithm set T, and the model training process algorithm set Z. Each algorithm set represents the set of processing algorithms that the ground system actually needs to call to complete the image processing task:
[0145]
[0146] In formula 4, the values of m, n, p, and q are related to the actual business system and can be directly obtained from the system configuration.
[0147] Step 3: Meta-task requirements analysis
[0148] According to the historical running status of the software or plug-in corresponding to each meta-task, the amount of CPU, memory, and GPU consumed by each meta-task is obtained. i By making a preliminary assessment of the resource requirements of each processing algorithm, the resource requirements corresponding to each processing algorithm can be obtained. i , according to the image processing computing power analysis, resource requirements res i Mainly including three types of requirements: CPU, memory, and GPU:
[0149]
[0150] Among them, Tc, Tg, and Tm correspond to the consumption time of CPU, GPU, and memory respectively.
[0151] Step 4: Calculate resource requirements
[0152] According to the resource consumption of each meta-task, calculate the resource demand zy(t) of a single remote sensing image processing task that the system needs to execute (obtained by the classification and accumulation of the meta-task resource consumption corresponding to a single task. A single processing task (such as a data reception) can be decomposed into multiple meta-tasks. The resource demand of a single processing task can be obtained by the classification and accumulation of the corresponding cloud task resource demand) and the resource demand of the remote sensing image processing task that the system needs to execute. Based on step 3, the total resource demand ZY(τ) corresponding to the image processing task F(τ) that the ground system needs to complete within any period τ is:
[0153]
[0154] Among them, H(t) is the mapping between processing tasks and resource consumption, which represents the delay between the actual resource consumption duration of the system and the evaluation duration, and can be obtained by statistically analyzing the historical processing information of the system or actual testing.
[0155]
[0156] Step 5: Task hierarchical scheduling
[0157] Dynamic resource scheduling is performed based on the priority of remote sensing image processing tasks and the resource requirements of a single remote sensing image processing task. High-priority tasks are executed first through resource reservation and preemption, and tasks with the same priority are queued and executed in order. Without loss of generality, remote sensing image processing tasks can be divided into three categories: "urgent, important, and general", and the processing flow can be further classified and refined according to specific application requirements. The following factors should also be considered when scheduling resources based on priority: 1) The computing resources for urgent and important tasks are relatively abundant to ensure the success rate; 2) Tasks of the same priority should be scheduled and allocated from the perspective of the overall benefits of resources; 3) From the perspective of system robustness, the frequency of secondary or higher resource scheduling and allocation should be minimized. Based on the above factors, three resource conflict handling methods are set, namely reservation, preemption, and queuing. The specific implementation process is as follows:
[0158] 1) Set up task queues according to task attribute classification: task_yj, task_zy, task_yb;
[0159] 2) At time T0, query the tasks that are currently being executed and will be executed within (T1-T0) time and their priority attributes, recorded as task_tmp;
[0160] 3) When task_tmp is empty, the system goes to sleep (T1-T0), otherwise execute steps 4-6;
[0161] 4) When the task attribute in task_tmp = yj, execute step 5, otherwise jump to step 7;
[0162] 5) Calculate resource requirement res_n and compare with existing resource res_k. If res_n<=res_k, reserve processing resources. Otherwise, execute step 6.
[0163] 6) If task_tmp is not empty, end the currently executing task in the task_yb queue and jump to step 4; if task_tmp is empty, set task_tmp->task_yj.
[0164] 7) When the task attribute in task_tmp = zy, execute step 8, otherwise jump to step X;
[0165] 8) Calculate resource requirement res_n and compare with existing resource res_k. If res_n<=res_k, reserve processing resources. Otherwise, execute step 9.
[0166] 9) If task_tmp is not empty, end the currently executing task in the task_yb queue and jump to step 7; if task_tmp is empty, queue task_tmp->task_zy.
[0167] 10) Jump to step 1 and repeat.
[0168] In this example, in order to avoid frequent adjustments to resource conditions, only general tasks are preempted. You can set the resource preemption of important tasks by emergency tasks based on actual task conditions. Figure 3 is a schematic diagram comparing the number of remote sensing image data receiving tasks and meta-tasks disclosed in an embodiment of the present invention; Figure 4 It is a schematic diagram comparing consumption of various types of processing resources disclosed in an embodiment of the present invention.
[0169] Embodiment 3
[0170] See also Figure 5 , Figure 5 Schematic diagram of a remote sensing image processing resource dynamic hierarchical scheduling device disclosed in an embodiment of the present invention. Figure 5 The remote sensing image processing resource dynamic hierarchical scheduling device described is applied to the remote sensing image processing and application fields to improve the utilization efficiency of remote sensing image processing computing resources under limited resource conditions, which is not limited in the embodiments of the present invention. Figure 5 As shown, the remote sensing image processing resource dynamic hierarchical scheduling device may include the following operations:
[0171] S301, an information acquisition module, used to acquire remote sensing image processing task information; the remote sensing image processing task information includes sensor type, working mode, working time, data reception start time, data reception end time and remote sensing image processing task priority information;
[0172] S302, an information processing module is used to process the remote sensing image processing task information to obtain the number of image processing tasks that need to be completed by the ground system within a time period τ;
[0173] S303, a task mapping module, used to map the remote sensing image processing tasks to obtain a remote sensing image processing algorithm set;
[0174] The remote sensing image processing algorithm set includes N meta-tasks, where N is a positive integer;
[0175] The remote sensing image processing algorithm set includes a preprocessing process algorithm set Y, a data cataloging process algorithm set S, an image correction process algorithm set T and a model training process algorithm set Z;
[0176] S304, a meta-task processing module, used to process the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task; the computing requirement information of each meta-task includes the number of CPUs, memory size, and the number of GPUs;
[0177] S305, a resource requirement calculation module is used to process the number of image processing tasks that need to be completed by the ground system within the time period τ according to the computing resource consumption information of each meta-task, and obtain resource requirement information for the system to execute a single remote sensing image processing task and resource requirement information for the remote sensing image processing tasks that the system needs to execute;
[0178] S306, a hierarchical scheduling module is used to perform dynamic hierarchical resource scheduling for the remote sensing image processing tasks to be processed according to the priority of the remote sensing image processing tasks, the resource requirement information of the system to execute a single remote sensing image processing task, and the resource requirement information of the remote sensing image processing tasks to be executed by the system.
[0179] Embodiment 4
[0180] See also Figure 6 , Figure 6 Schematic diagram of another remote sensing image processing resource dynamic hierarchical scheduling device disclosed in an embodiment of the present invention. Figure 6 The remote sensing image processing resource dynamic hierarchical scheduling device described is applied to the remote sensing image processing and application fields to improve the utilization efficiency of remote sensing image processing computing resources under limited resource conditions, which is not limited in the embodiments of the present invention. Figure 6 As shown, the remote sensing image processing resource dynamic hierarchical scheduling device may include the following operations:
[0181] A memory 401 storing executable program codes;
[0182] a processor 402 coupled to the memory 401;
[0183] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the remote sensing image processing resource dynamic hierarchical scheduling method described in the first and second embodiments.
[0184] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0185] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0186] Finally, it should be noted that the method and device for dynamic hierarchical scheduling of remote sensing image processing resources disclosed in the embodiments of the present invention only disclose the preferred embodiments of the present invention, which are only used to illustrate the technical scheme of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical schemes described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical schemes from the spirit and scope of the technical schemes of the embodiments of the present invention.
Claims
1. A remote sensing image processing resource dynamic hierarchical scheduling method, characterized in that: The method comprises: S1, obtaining remote sensing image processing task information; the remote sensing image processing task information includes sensor type, working mode, working time, data reception start time, data reception end time and remote sensing image processing task priority information; S2, processing the remote sensing image processing task information to obtain the number of image processing tasks that the ground system needs to complete within the time period τ; S3, mapping remote sensing image processing tasks to obtain a remote sensing image processing algorithm set; The remote sensing image processing algorithm set includes N meta-tasks, where N is a positive integer; The remote sensing image processing algorithm set includes a preprocessing process algorithm set Y, a data cataloging process algorithm set S, an image correction process algorithm set T and a model training process algorithm set Z; the processing software or plug-in in each processing process in the remote sensing image processing algorithm set is regarded as a meta-task; S4, processing the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task; the computing resource consumption information of each meta-task includes the number of CPUs, memory size, and the number of GPUs; S5, according to the computing resource consumption information of each meta-task, the number of image processing tasks that need to be completed by the ground system within the time period τ is processed to obtain resource requirement information for the system to execute a single remote sensing image processing task and resource requirement information for the remote sensing image processing tasks that need to be executed by the system; S6, performing dynamic hierarchical resource scheduling for the remote sensing image processing tasks to be processed according to the priority of the remote sensing image processing tasks, the resource requirement information of the system to execute a single remote sensing image processing task, and the resource requirement information of the remote sensing image processing tasks to be executed by the system.
2. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 1, characterized in that: The remote sensing image processing task information is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ, including: S21, processing the remote sensing image processing task information to obtain a single image processing task; S22, processing the single image processing task to obtain the number of image processing tasks that need to be completed by the ground system at time t; S23, processing the number of image processing tasks that need to be completed by the ground system at the time t to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ.
3. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 2, characterized in that: The single image processing task expression is: rtask={Sensor,Mode,Period,St,Et} Among them, rtask is a single image processing task, Sensor is the sensor type, Mode is the working mode, Period is the working duration, St is the start time of data reception, and Et is the end time of data reception.
4. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 2, characterized in that: The number of image processing tasks that the ground system needs to complete at the time t is expressed as: Among them, f(t) is the number of image processing tasks that the ground system needs to complete at time t, rtask i is the i-th image processing task, St i is the start time of receiving data for the i-th image processing task, Et i The data receiving end time of the i-th image processing task.
5. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 2, characterized in that: The processing of the number of image processing tasks that need to be completed by the ground system at the time t to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ includes: Using the image processing task calculation model, the number of image processing tasks that need to be completed by the ground system at the time t is processed to obtain the number of image processing tasks that need to be completed by the ground system within the time period τ; The image processing task calculation model expression is: Where F(τ) is the number of image processing tasks that the ground system needs to complete within the period τ, f(t) is the number of image processing tasks that the ground system needs to complete at time t, h(t) is the processing response function, and t0 is the reference time for the start of calculation. Represents convolution.
6. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 1, characterized in that: The remote sensing image processing tasks are mapped to obtain a remote sensing image processing algorithm set, including: Using the remote sensing image processing task mapping model, the remote sensing image processing tasks are mapped to obtain the remote sensing image processing algorithm set; The remote sensing image processing task mapping model expression is: f:rtask i →E i (Y i ,S i ,T i ,Z i ) Among them, f represents the mapping relationship, rtask i is the i-th image processing task, Yi=(y1,y2,…,ym) is the i-th preprocessing algorithm set, is the i1th element in the i-th preprocessing algorithm set, i1=1,2,…,m, m is the number of elements in the i-th preprocessing algorithm set, S i =(s1,s2,…,s n ) is the algorithm set of the i-th data cataloguing process, is the i2th element in the i-th data cataloging process algorithm set, i2=1,2,…,n, n is the number of elements in the i-th data cataloging process algorithm set, T i =(t1,t2,…,t p ) is the algorithm set of the i-th image correction process, is the i3th element in the i-th image correction process algorithm set, i3=1,2,…,p, p is the number of elements in the i-th image correction process algorithm set, Z i =(z1,z2,…,z q ) is the algorithm set of the i-th model training process, is the i4th element in the i-th model training process algorithm set, i4=1,2,…,q, q is the number of elements in the i-th model training process algorithm set, the values of m, n, p, q are related to the actual business system and can be directly obtained from the system configuration, the remote sensing image processing algorithm set includes N meta-tasks, N is a positive integer, a processing software or a plug-in in the preprocessing process algorithm set Y, the data cataloging process algorithm set S, the image correction process algorithm set T and the model training process algorithm set Z is regarded as a meta-task, E i is the i-th remote sensing image processing algorithm set.
7. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 1, characterized in that: The processing of the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task includes: Perform statistical analysis on the historical running status of each meta-task to obtain the computing resource consumption information of each meta-task; The computing resource consumption information expression of each meta-task is: in, is the computing resource consumption information of the i-th meta-task, zycpu represents CPU, Tci is the number of CPUs of the i-th meta-task, zygpu represents GPU, Tgi is the number of GPUs of the i-th meta-task, zymem represents memory, and Tmi is the memory size of the i-th meta-task.
8. The remote sensing image processing resource dynamic hierarchical scheduling method according to claim 1, characterized in that: The resource requirement information expression of the remote sensing image processing task to be performed by the system is: Among them, ZY(τ) is the resource demand information of the remote sensing image processing task that the system needs to perform within the period τ, t0 is the reference time for the start of calculation, represents convolution, H(t) is the mapping between tasks and resource consumption, is the computing resource consumption information of the ith meta-task, zycpu represents CPU, Tci is the number of CPUs of the ith meta-task, zygpu represents GPU, Tgi is the number of GPUs of the ith meta-task, zymem represents memory, Tmi is the memory size of the ith meta-task, rtask i is the i-th image processing task.
9. A remote sensing image processing resource dynamic hierarchical scheduling device, characterized in that: The device comprises: An information acquisition module is used to acquire remote sensing image processing task information; the remote sensing image processing task information includes sensor type, working mode, working time, data reception start time, data reception end time and remote sensing image processing task priority information; An information processing module is used to process the remote sensing image processing task information to obtain the number of image processing tasks that need to be completed by the ground system within a time period τ; The task mapping module is used to map the remote sensing image processing tasks and obtain the remote sensing image processing algorithm set; The remote sensing image processing algorithm set includes N meta-tasks, where N is a positive integer; The remote sensing image processing algorithm set includes a preprocessing process algorithm set Y, a data cataloging process algorithm set S, an image correction process algorithm set T and a model training process algorithm set Z; A meta-task processing module is used to process the remote sensing image processing algorithm set to obtain computing resource consumption information of each meta-task; the computing requirement information of each meta-task includes the number of CPUs, memory size, and number of GPUs; A resource requirement calculation module is used to process the number of image processing tasks that the ground system needs to complete within the time period τ according to the computing resource consumption information of each meta-task, and obtain the resource requirement information of the system executing a single remote sensing image processing task and the resource requirement information of the remote sensing image processing tasks that the system needs to execute; The hierarchical scheduling module is used to dynamically schedule resources for the remote sensing image processing tasks to be processed according to the priority of the remote sensing image processing tasks, the resource requirement information of the system to execute a single remote sensing image processing task, and the resource requirement information of the remote sensing image processing tasks to be executed by the system.
10. A remote sensing image processing resource dynamic hierarchical scheduling device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the remote sensing image processing resource dynamic hierarchical scheduling method as described in any one of claims 1-8.
Citation Information
Patent Citations
A coandor task mapping method of a remote sensing image processing Docker cluster
CN109614219A
A cloud platform resource constrained remote sensing big data rapid processing task scheduling method
CN109684088A
Background Docker task mapping method of remote sensing image visualization editor
CN109857462A
Remote sensing image parallel cluster processing scheduling strategy suitable for Internet scene
CN112114960A
Dynamic scheduling platform for automated computing tasks
US20240045713A1
Cited By
Satellite remote sensing image processing adaptive optimization method and system based on resource constraint
CN120125417A
Adaptive optimization method and system for onboard remote sensing image processing based on resource constraints
CN120125417B
