CN112527506B - Device resource processing method, device, electronic device and storage medium - Google Patents
Device resource processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN112527506B CN112527506B CN202011507117.0A CN202011507117A CN112527506B CN 112527506 B CN112527506 B CN 112527506B CN 202011507117 A CN202011507117 A CN 202011507117A CN 112527506 B CN112527506 B CN 112527506B
- Authority
- CN
- China
- Prior art keywords
- resource
- resource block
- amount
- block
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5061—Partitioning or combining of resources
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Biophysics (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biomedical Technology (AREA)
- Artificial Intelligence (AREA)
- Mathematical Physics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种设备资源的处理方法、装置、电子设备及存储介质,涉及人工智能技术领域,尤其涉及云计算、大数据、深度学习等技术领域。具体实现方案为:根据任一应用当前待处理数据的数据量,确定当前待为所述任一应用分配的目标资源量;在所述目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将所述任一第一资源块中与所述目标资源量匹配的目标资源分配给所述任一应用;更新所述预设的资源列表中包含的资源块标识。由此,在为任一应用进行资源分配时,优先将对应资源量少的资源块进行分配,从而可以在满足应用需求的情况下,最大限度的提高设备资源的利用率,更好地进行资源回收、利用。
The present application discloses a method, device, electronic device and storage medium for processing device resources, and relates to the technical field of artificial intelligence, in particular to the technical fields of cloud computing, big data, and deep learning. The specific implementation scheme is: according to the data amount of the current data to be processed by any application, determine the target resource amount to be allocated for any application; if the target resource amount is less than or equal to any one of the preset resource lists In the case of a resource amount corresponding to a resource block, allocating a target resource matching the target resource amount in any one of the first resource blocks to any of the applications; updating the resources included in the preset resource list Resource block identifier. Therefore, when allocating resources for any application, the resource blocks with less corresponding resources are allocated preferentially, so that the utilization rate of device resources can be maximized and the resources can be better implemented under the condition of satisfying the application requirements. recycle and re-use.
Description
技术领域technical field
本申请涉及人工智能技术领域,具体涉及云计算、大数据、深度学习等技术领域,尤其涉及一种设备资源的处理方法、装置、电子设备及存储介质。The present application relates to the technical field of artificial intelligence, in particular to the technical fields of cloud computing, big data, and deep learning, and in particular, to a method, device, electronic device, and storage medium for processing equipment resources.
背景技术Background technique
随着计算机技术的蓬勃发展,机器学习领域也得到了迅速发展,深度学习在各领域中的成效也越来越显著。各应用所需的资源也越来越多,如何既满足各应用的资源需求,又能提高资源利用率,显得至关重要。With the vigorous development of computer technology, the field of machine learning has also developed rapidly, and the effect of deep learning in various fields has become more and more significant. The resources required by each application are also increasing. How to meet the resource requirements of each application and improve the resource utilization rate is very important.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种设备资源的处理方法、装置、设备以及存储介质。The present application provides a method, apparatus, device, and storage medium for processing device resources.
根据本申请的一方面,提供了一种方法,包括:According to an aspect of the present application, a method is provided, comprising:
根据任一应用当前待处理数据的数据量,确定当前待为所述任一应用分配的目标资源量;According to the data amount of the current data to be processed by any application, determine the target resource amount currently to be allocated for the any application;
在所述目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将所述任一第一资源块中与所述目标资源量匹配的目标资源分配给所述任一应用;In the case that the target resource amount is less than or equal to the resource amount corresponding to any first resource block in the preset resource list, allocate the target resource matching the target resource amount in the any first resource block to any of said applications;
更新所述预设的资源列表中包含的资源块标识。The resource block identifier included in the preset resource list is updated.
根据本申请的另一方面,提供了一种装置,包括:According to another aspect of the present application, an apparatus is provided, comprising:
确定模块,用于根据任一应用当前待处理数据的数据量,确定当前待为所述任一应用分配的目标资源量;a determining module, configured to determine the target resource amount currently to be allocated for any application according to the data amount of the current data to be processed by any application;
第一分配模块,用于在所述目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将所述任一第一资源块中与所述目标资源量匹配的目标资源分配给所述任一应用;A first allocation module, configured to assign the target resource in any first resource block to the target resource when the target resource amount is less than or equal to the resource amount corresponding to any first resource block in the preset resource list A target resource whose resource amount matches is allocated to any of the applications;
更新模块,用于更新所述预设的资源列表中包含的资源块标识。An update module, configured to update the resource block identifier included in the preset resource list.
根据本申请的又一方面,提供了一种电子设备,包括:According to another aspect of the present application, an electronic device is provided, comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述一方面实施例所述的设备资源的处理方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the device resources according to the embodiments of the above aspect. Approach.
根据本申请的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其上存储有计算机程序,所述计算机指令用于使所述计算机执行上述一方面实施例所述的设备资源的处理方法。According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, and a computer program is stored thereon, and the computer instructions are used to cause the computer to execute the above-mentioned embodiments of the one aspect. The processing method of the device resource.
根据本申请的另一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现上述一方面实施例所述的设备资源的处理方法。According to another aspect of the present application, a computer program product is provided, including a computer program that, when executed by a processor, implements the method for processing device resources described in the embodiments of the foregoing aspect.
本申请提供的设备资源的处理方法、装置、电子设备及存储介质,存在如下有益效果:The method, device, electronic device and storage medium for processing equipment resources provided by this application have the following beneficial effects:
根据任一应用当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量,在目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将任一第一资源块中与目标资源量匹配的目标资源分配给任一应用,之后更新预设的资源列表中包含的资源块标识。由此,在为任一应用进行资源分配时,优先将对应资源量少的资源块进行分配,从而可使得预设的资源列表中的第一资源块尽可能的得到使用,可以在满足应用需求的情况下,最大限度的提高设备资源的利用率,可以更好地进行资源回收、利用。Determine the current target resource amount to be allocated for any application according to the data amount of the current data to be processed by any application. In the case where the target resource amount is less than or equal to the resource amount corresponding to any first resource block in the preset resource list Next, a target resource matching the target resource amount in any first resource block is allocated to any application, and then the resource block identifier included in the preset resource list is updated. Therefore, when allocating resources for any application, the resource blocks with less corresponding resources are allocated preferentially, so that the first resource block in the preset resource list can be used as much as possible, which can meet the application requirements. Under the circumstance, the utilization rate of equipment resources can be maximized, and resource recovery and utilization can be better carried out.
应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or critical features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本申请的限定。其中:The accompanying drawings are used for better understanding of the present solution, and do not constitute a limitation to the present application. in:
图1为本申请一实施例提供的一种设备资源的处理方法的流程示意图;FIG. 1 is a schematic flowchart of a method for processing device resources according to an embodiment of the present application;
图2为本申请另一实施例提供的一种设备资源的处理方法的流程示意图;FIG. 2 is a schematic flowchart of a method for processing device resources provided by another embodiment of the present application;
图3为本申请又一实施例提供的一种设备资源的处理方法的流程示意图;3 is a schematic flowchart of a method for processing device resources according to another embodiment of the present application;
图4为本申请一实施例提供的一种设备资源的处理装置的结构示意图;FIG. 4 is a schematic structural diagram of an apparatus for processing equipment resources according to an embodiment of the present application;
图5为本申请另一实施例提供的一种设备资源的处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a device resource processing apparatus provided by another embodiment of the present application;
图6为本申请又一实施例提供的一种设备资源的处理装置的结构示意图;FIG. 6 is a schematic structural diagram of an apparatus for processing device resources according to another embodiment of the present application;
图7是用来实现本申请实施例的设备资源的处理方法的电子设备的框图;7 is a block diagram of an electronic device used to implement the method for processing device resources according to an embodiment of the present application;
具体实施方式Detailed ways
以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
人工智能是研究使计算机来模拟人的某些思维过程和智能行为(如学习、推理、思考、规划等)的学科,既有硬件层面的技术也有软件层面的技术。人工智能硬件技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理等技术;人工智能软件技术主要包括计算机视觉技术、语音识别技术、自然语言处理技术以及机器学习、深度学习、大数据处理技术、知识图谱技术等几大方向。Artificial intelligence is the study of making computers to simulate certain thinking processes and intelligent behaviors of people (such as learning, reasoning, thinking, planning, etc.), both hardware-level technology and software-level technology. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, and machine learning, deep Learning, big data processing technology, knowledge graph technology and other major directions.
云计算指的是通过网络接入弹性可扩展的共享物理或虚拟资源池,资源可以包括服务器、操作系统、网络、软件、应用和存储设备等,并可以以按需、自服务的方式对资源进行部署和管理的技术体系,通过云计算技术,可以为人工智能、区块链等技术应用、模型训练提供高效强大的数据处理能力。Cloud computing refers to accessing elastically scalable shared physical or virtual resource pools through the network. Resources can include servers, operating systems, networks, software, applications, and storage devices, etc., and can be used on-demand and self-service. The technical system for deployment and management, through cloud computing technology, can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence, blockchain, and model training.
大数据技术是指通过多种渠道实现对大量数据的采集,并通过使用云计算技术来实现对数据的深度挖掘和分析,确保能够及时的找出数据之间的规律和特点,总结和归纳出数据所存在的价值。大数据技术对于了解数据特征,预测发展趋势具有十分重要的意义。Big data technology refers to the collection of large amounts of data through various channels, and the use of cloud computing technology to achieve in-depth data mining and analysis to ensure that the laws and characteristics between data can be found in time, and summarized and summarized. The value of data. Big data technology is of great significance for understanding data characteristics and predicting development trends.
深度学习是指多层的人工神经网络和训练它的方法。一层神经网络会把大量矩阵数字作为输入,通过非线性激活方法取权重,再产生另一个数据集合作为输出。通过合适的矩阵数量,多层组织链接一起,形成神经网络“大脑”进行精准复杂的处理,就像人们识别物体标注图片一样。Deep learning refers to a multi-layered artificial neural network and the method of training it. A layer of neural network will take a large number of matrix numbers as input, take weights through nonlinear activation method, and then generate another data set as output. Through the appropriate number of matrices, multiple layers of organizations are linked together to form a neural network "brain" for precise and complex processing, just like people identify objects and annotate pictures.
下面参考附图描述本申请实施例的设备资源的处理方法、装置、及电子设备。The following describes a method, an apparatus, and an electronic device for processing device resources according to the embodiments of the present application with reference to the accompanying drawings.
本申请实施例的设备资源的处理方法,可由本申请实施例提供的设备资源的处理装置执行,该装置可配置于电子设备中。The method for processing device resources in the embodiments of the present application may be executed by the device resource processing apparatus provided in the embodiments of the present application, and the device may be configured in an electronic device.
本申请实施例中的设备资源,可以为设备的内存资源,也可以为显存资源,或者为任何可用于给设备中运行或加载的应用分配、使用的任意资源,本申请对此不做限定。The device resources in the embodiments of the present application may be memory resources of the device, video memory resources, or any resources that can be allocated and used for applications running or loaded in the device, which are not limited in this application.
为方便说明,本申请以下各实施例均以资源为内存资源为例进行展开说明。For the convenience of description, the following embodiments of the present application are described by taking the resource as a memory resource as an example for description.
另外,本申请实施例中的任一应用,可以为电子设备中的可以提供任意业务服务的应用程序,比如可以为任一可实现语音、图像、文字处理类的应用程序。In addition, any application in the embodiments of the present application may be an application program in an electronic device that can provide any business service, for example, any application program that can implement voice, image, and word processing.
图1为本申请实施例提供的一种设备资源的处理方法的流程示意图。FIG. 1 is a schematic flowchart of a method for processing device resources according to an embodiment of the present application.
如图1所示,该设备资源的处理方法包括:As shown in Figure 1, the processing method of the device resource includes:
步骤101,根据任一应用当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量。Step 101: Determine the target resource amount currently to be allocated for any application according to the data amount of the data to be processed currently by any application.
其中,目标资源量,可以为用来存储待处理数据的内存资源。The target resource amount may be a memory resource used to store data to be processed.
步骤102,目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将任一第一资源块中与目标资源量匹配的目标资源分配给任一应用。
其中,预设的资源列表中包含的各个资源块分别对应的资源量小于设定值,其中,该设定值可以根据需要设置。The resource amount corresponding to each resource block included in the preset resource list is smaller than a set value, wherein the set value can be set as required.
另外,资源块,可以为包含任意内存资源量的内存块。In addition, the resource block may be a memory block containing any amount of memory resources.
需要说明的是,电子设备中除包含上述预设的资源列表外,还包含资源池,其中,该资源池中包含的各个资源块分别对应的资源量大于或等于设定值。从而,当根据任一应用当前待处理数据的数据量确定出的当前待为任一应用分配的目标资源量较小时,可以直接从预设的资源列表中为该任一应用分配相应的目标资源,而不必从资源池中分配较大的资源量,从而可以使较小的资源块得到充分利用,不会造成资源浪费,便于管理与回收。It should be noted that, in addition to the above-mentioned preset resource list, the electronic device also includes a resource pool, wherein the resource amount corresponding to each resource block included in the resource pool is greater than or equal to a set value. Therefore, when the amount of target resources currently to be allocated to any application determined according to the data volume of the current data to be processed by any application is small, the corresponding target resources can be allocated to any application directly from the preset resource list , instead of allocating a large amount of resources from the resource pool, so that small resource blocks can be fully utilized, no resource waste is caused, and management and recycling are facilitated.
可以理解的是,将资源分块管理,便于回收和利用,可以使同一业务对应的资源尽量关联,从而可以实现对一整块资源的处理。It can be understood that managing resources in blocks is convenient for recycling and utilization, and resources corresponding to the same service can be associated as much as possible, thereby realizing the processing of a whole block of resources.
举例来说,目标资源量为100M,预设的资源列表中的各个第一资源块大小分别为150M、160M、170M,目标资源量小于预设的资源列表中的任一第一资源块对应的资源量的大小,此时可以将任一第一资源块分配给任一应用。For example, the target resource amount is 100M, the size of each first resource block in the preset resource list is 150M, 160M, and 170M, respectively, and the target resource amount is smaller than the corresponding first resource block in the preset resource list. The size of the resource amount, at this time, any first resource block can be allocated to any application.
或者,目标资源量为100M,预设的资源列表中的各个第一资源块大小分别为100M、70M、50M,目标资源量与预设的资源列表中的一个第一资源块对应的资源量相等,此时可以将对应资源量为100M的第一资源块分配给任一应用。Or, the target resource amount is 100M, the size of each first resource block in the preset resource list is 100M, 70M, and 50M respectively, and the target resource amount is equal to the resource amount corresponding to a first resource block in the preset resource list , at this time, the first resource block with the corresponding resource amount of 100M can be allocated to any application.
需要说明的是,上述目标资源量大小、第一资源块大小及数量只是举例说明,不能作为对本申请实施例中将任一第一资源块中与目标资源量匹配的目标资源分配给任一应用的限定。It should be noted that the above-mentioned size of the target resource amount, the size and quantity of the first resource block are only examples, and cannot be used as a reference for allocating the target resource matching the target resource amount in any first resource block to any application in the embodiments of the present application. limit.
步骤103,更新预设的资源列表中包含的资源块标识。Step 103: Update the resource block identifier included in the preset resource list.
其中,资源块标识,可以为内存块在内存中的地址,或者是用来定位其在内存中的具体位置的任意其他的信息等,本申请对此不做限定。The resource block identifier may be the address of the memory block in the memory, or any other information used to locate its specific location in the memory, etc., which is not limited in this application.
本申请实施例中,在将预设的资源列表中任一第一资源块中与目标资源量匹配的目标资源分配给任一应用后,为了保证预设的资源列表的准确性,可以及时对该预设的资源列表进行更新,从而可使得从预设的资源列表中给任一应用分配的资源都是准确的。In this embodiment of the present application, after allocating a target resource matching the target resource amount in any first resource block in the preset resource list to any application, in order to ensure the accuracy of the preset resource list, the The preset resource list is updated, so that the resources allocated to any application from the preset resource list are accurate.
举例来说,原来预设的资源列表中的资源块标识分别为资源块A、资源块B、资源块C,将资源块C分配给任一应用,之后对该资源列表进行更新,因资源块C已经被分配出去,故更新后的资源列表中包含的资源块标识可以为资源块A、资源块B。For example, the resource block identifiers in the original preset resource list are respectively resource block A, resource block B, and resource block C, and resource block C is allocated to any application, and then the resource list is updated. C has been allocated, so the resource block identifiers included in the updated resource list may be resource block A and resource block B.
需要说明的是,上述更新资源列表的方式、资源块标识及资源块的分配只是举例说明,不能作为对本申请实施例中更新预设的资源列表中包含的资源块标识的限定。It should be noted that the above manner of updating the resource list, resource block identifiers, and resource block allocation are only examples, and cannot be used as limitations for updating the resource block identifiers included in the preset resource list in this embodiment of the present application.
本申请实施例,根据任一应用当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量,在目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将任一第一资源块中与目标资源量匹配的目标资源分配给任一应用,之后更新预设的资源列表中包含的资源块标识。由此,在为任一应用进行资源分配时,优先将对应资源量少的资源块进行分配,从而可使得预设的资源列表中的第一资源块尽可能的得到使用,可以在满足应用需求的情况下,最大限度的提高设备资源的利用率,可以更好地进行资源回收、利用。In this embodiment of the present application, the target resource amount to be allocated for any application is determined according to the data amount of the current data to be processed by any application, and the target resource amount is less than or equal to the preset resource list corresponding to any first resource block. In the case of the amount of resources, the target resource matching the target resource amount in any first resource block is allocated to any application, and then the resource block identifier included in the preset resource list is updated. Therefore, when allocating resources for any application, the resource blocks with less corresponding resources are allocated preferentially, so that the first resource block in the preset resource list can be used as much as possible, which can meet the application requirements. Under the circumstance, the utilization rate of equipment resources can be maximized, and resource recovery and utilization can be better carried out.
上述实施例,根据当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量,当目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量时,可以直接将该任一第一资源块分配给该任一应用。在实际使用时,目标资源量可能会大于预设的资源列表中每个资源块对应的资源量、或者预设的资源列表中的多个资源块对应的资源量均大于目标资源量,下面结合图2对上述情况进行详细说明。In the above embodiment, the target resource amount to be allocated for any application is determined according to the data amount of the current data to be processed. When the target resource amount is less than or equal to the resource amount corresponding to any first resource block in the preset resource list , any one of the first resource blocks can be directly allocated to any of the applications. In actual use, the target resource amount may be larger than the resource amount corresponding to each resource block in the preset resource list, or the resource amount corresponding to multiple resource blocks in the preset resource list is larger than the target resource amount. The following combination Figure 2 illustrates the above situation in detail.
步骤201,根据任一应用当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量。Step 201: Determine the target resource amount currently to be allocated for any application according to the data amount of the data to be processed currently by any application.
步骤202,目标资源量小于或等于预设的资源列表中至少两个第一资源块分别对应的资源量,确定当前为任一应用已分配的各资源块标识。
举例来说,目标资源量为100M,预设的资源列表中各个第一资源块对应的资源量分别为70M、120M、300M,其中有两个第一资源块对应的资源量大于目标资源量,此时可以先确定出为上述任一应用已分配的资源块标识,比如,为该任一应用已分配的资源块标识为A。For example, the target resource amount is 100M, the resource amounts corresponding to each first resource block in the preset resource list are 70M, 120M, and 300M respectively, and the resource amounts corresponding to two first resource blocks are greater than the target resource amount. In this case, the identifier of the resource block that has been allocated for any of the above applications may be determined first, for example, the identifier of the resource block that has been allocated for any of the applications is A.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中目标资源量的大小、第一资源块大小、数量、资源块标识的限定。It should be noted that the above examples are only examples, and cannot be used as limitations on the size of the target resource amount, the size, quantity, and resource block identifiers of the first resource block in the embodiments of the present application.
步骤203,根据各资源块标识对应的各资源块间的位置关系,将至少两个第一资源块中与已分配的各资源块标识距离最短的第一资源块分配给任一应用。Step 203: Allocate, to any application, the first resource block with the shortest distance from the allocated resource block identifiers among the at least two first resource blocks according to the positional relationship between the resource blocks corresponding to the resource block identifiers.
举例来说,为任一应用已分配的资源块为资源块A,预设的资源列表中对应的资源量大于目标资源量的第一资源块有两个,其对应的资源量分别为100M、120M,大小为100M的第一资源块与资源块A相邻,大小为120M的第一资源块距离资源块A较远,可以将大小为100M的第一资源块分配给该任一应用,即优先为应用分配相邻的资源,避免资源浪费,从而在回收时,可以对相邻资源进行大批量回收,提高资源的利用率。For example, the resource block allocated for any application is resource block A, and there are two first resource blocks in the preset resource list whose corresponding resource amount is greater than the target resource amount, and the corresponding resource amounts are 100M, 120M, the first resource block with a size of 100M is adjacent to the resource block A, and the first resource block with a size of 120M is far from the resource block A, and the first resource block with a size of 100M can be allocated to any application, namely Priority is given to allocating adjacent resources to applications to avoid wasting resources, so that when recycling, adjacent resources can be recycled in large batches to improve resource utilization.
或者,为任一应用已分配的资源块为资源块A和资源块B,预设的资源列表中对应的资源量大于目标资源量的第一资源块有三个,其对应的资源量分别为100M、120M、200M,位置顺序依次为:大小为100M的第一资源块、资源块A、大小为120M的第一资源块、资源块B、大小为200M的第一资源块,其中,大小为120M的第一资源块在资源块A和资源块B之间,其距离资源块A、资源块B最近,从而可以将其分配给该任一应用,即优先为应用分配相邻的资源,从而可以避免资源浪费。Or, the resource blocks allocated for any application are resource block A and resource block B, and the preset resource list has three first resource blocks whose corresponding resource amount is greater than the target resource amount, and the corresponding resource amounts are 100M respectively. , 120M, 200M, the order of positions is: the first resource block with a size of 100M, resource block A, the first resource block with a size of 120M, resource block B, and the first resource block with a size of 200M, wherein the size is 120M The first resource block is between resource block A and resource block B, and it is the closest to resource block A and resource block B, so that it can be allocated to any application, that is, the application is preferentially allocated adjacent resources, so that it can be Avoid wasting resources.
或者,为任一应用已分配的资源块为资源块A和资源块B,预设的资源列表中对应的资源量大于目标资源量的第一资源块有两个,其对应的资源量分别为100M、300M,位置顺序依次为:大小为100M的第一资源块、资源块A、资源块B、大小为300M的第一资源块。其中,大小为100M的第一资源块在资源块A之前,资源块A和资源块B相邻,大小为300M的第一资源块在资源块B之后,两个第一资源块距离资源块A、资源块B的距离相同。为了减少资源浪费,可以优先选择与目标资源量最接近的第一资源块,若目标资源量为80M,从而可以将大小为100M的第一资源块分配给该应用,即优先为应用分配相邻的、与目标资源量接近的资源块,从而可以避免资源浪费。Or, the resource blocks that have been allocated for any application are resource block A and resource block B, and there are two first resource blocks in the preset resource list whose corresponding resource amount is greater than the target resource amount, and the corresponding resource amounts are respectively 100M, 300M, the order of positions is: the first resource block with a size of 100M, resource block A, resource block B, and the first resource block with a size of 300M. The first resource block with a size of 100M is before resource block A, resource block A and resource block B are adjacent, and the first resource block with a size of 300M is after resource block B, and the two first resource blocks are far from resource block A. , the distance of resource block B is the same. In order to reduce the waste of resources, the first resource block closest to the target resource amount can be preferentially selected. If the target resource amount is 80M, the first resource block with a size of 100M can be allocated to the application, that is, the application is preferentially allocated adjacent The resource blocks that are close to the target resource amount can avoid resource waste.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中资源块标识、第一资源块大小、数量、位置等的限定。It should be noted that the above examples are only examples, and cannot be used as limitations on resource block identifiers, the size, quantity, and location of the first resource block in the embodiments of the present application.
步骤204,在目标资源量小于任一第一资源块对应的资源量的情况下,确定任一第一资源块中除目标资源外的剩余资源块对应的新资源块标识及资源量。
步骤205,将新资源块标识及资源量,存入预设的资源列表。Step 205: Store the new resource block identifier and resource amount in a preset resource list.
步骤206,将任一第一资源块的标识及对应的资源量从预设的资源列表中删除。Step 206: Delete the identifier of any first resource block and the corresponding resource amount from the preset resource list.
举例来说,目标资源量为60M,第一资源块A对应的资源量为100M,第一资源块中除目标资源外的剩余资源块即为新资源块,新资源块的标识可以为B,对应的资源量为40M,从而可以将资源块B、资源量40M存入预设的资源列表,将第一资源块A、资源量100M从预设的资源列表中删除,从而可以使资源列表及时得到更新,保证其准确性。For example, the target resource amount is 60M, the resource amount corresponding to the first resource block A is 100M, the remaining resource blocks in the first resource block except the target resource are new resource blocks, and the identifier of the new resource block can be B, The corresponding resource amount is 40M, so that the resource block B and the resource amount of 40M can be stored in the preset resource list, and the first resource block A and the resource amount of 100M can be deleted from the preset resource list, so that the resource list can be made in time. be updated to guarantee its accuracy.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中更新预设的资源列表中包含的资源块标识的限定。It should be noted that the above examples are merely illustrative, and cannot be used as limitations on the resource block identifiers included in the update preset resource list in the embodiment of the present application.
步骤207,在目标资源量等于任一第一资源块对应的资源量的情况下,将任一第一资源块的标识及对应的资源量从预设的资源列表中删除。
举例来说,目标资源量为30M,第一资源块A对应的资源量为30M,目标资源量与第一资源块A对应的资源量相等,可以直接从预设的资源列表中删除第一资源块A、资源量为30M,便于管理与操作。For example, if the target resource amount is 30M, the resource amount corresponding to the first resource block A is 30M, and the target resource amount is equal to the resource amount corresponding to the first resource block A, the first resource can be directly deleted from the preset resource list. Block A, the amount of resources is 30M, which is easy to manage and operate.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中将任一第一资源块的标识及对应的资源量从预设的资源列表中删除的限定。It should be noted that the above example is only an example, and cannot be used as a limitation for deleting the identifier of any first resource block and the corresponding resource amount from the preset resource list in the embodiment of the present application.
步骤208,在目标资源量大于预设的资源列表中每个资源块对应的资源量的情况下,将资源池的任一第二资源块中与目标资源量匹配的目标资源分配给任一应用。
其中,第二资源块,可以为资源池中的任一资源块,该资源池中包含的各个资源块分别对应的资源量大于或等于设定值,其中,设定值可以根据需要进行设定。Wherein, the second resource block can be any resource block in the resource pool, and the resource amount corresponding to each resource block included in the resource pool is greater than or equal to a set value, wherein the set value can be set as required .
举例来说,设定值为1G,资源池中包含的各个资源块分别对应的资源量均大于或等于1G,预设的资源列表中的各个资源块均小于1G。For example, if the set value is 1G, the resource amount corresponding to each resource block included in the resource pool is greater than or equal to 1G, and each resource block in the preset resource list is less than 1G.
需要说明的是,上述设定值只是举例说明,实际使用时,设定值可以根据需要进行设置。It should be noted that the above setting values are only examples, and in actual use, the setting values can be set as required.
本申请实施例中,目标资源量大于预设的资源列表中每个资源块对应的资源量时,表明预设的资源列表中没有足够大的资源块可以满足当前待处理数据的数据量,此时可以从资源池中选择与目标资源量匹配的第二资源块,并将其分配给应用。In the embodiment of the present application, when the target resource amount is greater than the resource amount corresponding to each resource block in the preset resource list, it indicates that there is no resource block large enough in the preset resource list to satisfy the current data amount of data to be processed. At the same time, a second resource block that matches the target resource amount can be selected from the resource pool and allocated to the application.
举例来说,目标资源量为200M,预设的资源列表中的各个第一资源块大小分别为50M、60M、70M,目标资源量均大于预设的资源列表中的三个资源块大小,此时为了能够满足目标资源量,可以从资源池中选择匹配的第二资源块。For example, the target resource amount is 200M, the size of each first resource block in the preset resource list is 50M, 60M, and 70M respectively, and the target resource amount is larger than the three resource block sizes in the preset resource list. In order to satisfy the target resource amount, a matching second resource block may be selected from the resource pool.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中目标资源量大小、预设的资源列表中资源块大小、数量的限定。It should be noted that the above examples are only illustrative, and cannot be used as limitations on the size of the target resource amount, the size and the number of resource blocks in the preset resource list in the embodiment of the present application.
另外,为了尽量减小获取目标资源块时的耗时,提高目标资源块的获取效率,在一种可能的实现方式中,还可以在目标资源量大于或等于阈值的情况下,从资源池中获取与目标资源量匹配的目标资源块。In addition, in order to minimize the time-consuming acquisition of the target resource block and improve the acquisition efficiency of the target resource block, in a possible implementation manner, when the target resource amount is greater than or equal to the threshold, the Get the target resource block that matches the target resource amount.
其中,阈值,可以为预先设定好的、任意大小的数值。The threshold value may be a preset value of any size.
举例来说,设定的阈值大小为300M,目标资源量为400M,此时为了更快速地进行资源分配,可以直接从资源池中获取与目标资源量匹配的目标资源块,而不必再将目标资源量与预设的资源列表中的各个资源块对应的资源量进行比较,从而可以提高为应用分配目标资源的效率。For example, the set threshold size is 300M, and the target resource amount is 400M. In this case, in order to allocate resources more quickly, you can directly obtain the target resource block that matches the target resource amount from the resource pool, without adding the target resource block. The resource amount is compared with the resource amount corresponding to each resource block in the preset resource list, so that the efficiency of allocating target resources to the application can be improved.
需要说明的是,上述示例只是举例说明,而不能作为对本申请实施例中从资源池中获取与目标资源量匹配的目标资源块。It should be noted that the above examples are only examples, and cannot be used as a reference to obtaining a target resource block matching the target resource amount from the resource pool in the embodiment of the present application.
本申请实施例中,当目标资源量大于或等于阈值时,可以直接从资源池中获取与目标资源量匹配的目标资源块,从而不需要再将目标资源量与预设的资源列表中各个资源块进行比较,节约了时间,提高了获取目标资源块的效率。In the embodiment of the present application, when the target resource amount is greater than or equal to the threshold, the target resource block matching the target resource amount can be directly obtained from the resource pool, so that it is unnecessary to compare the target resource amount with each resource in the preset resource list. The blocks are compared, which saves time and improves the efficiency of acquiring target resource blocks.
步骤209,将任一第二资源块中除目标资源外的剩余资源对应的第一资源块标识及第一资源量,存入预设的资源列表。Step 209: Store the first resource block identifier and the first resource amount corresponding to the remaining resources except the target resource in any second resource block into a preset resource list.
举例来说,第二资源块大小为500M,目标资源对应的资源量为400M,第二资源块中除目标资源外的剩余资源为100M,即第一资源块标识为资源块A、第一资源量为100M,从而可以将资源块A、第一资源量100M存入预设的资源列表。For example, the size of the second resource block is 500M, the amount of resources corresponding to the target resource is 400M, and the remaining resources in the second resource block except the target resource are 100M, that is, the first resource block is identified as resource block A, the first resource The amount is 100M, so that the resource block A and the first resource amount of 100M can be stored in the preset resource list.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中将第一资源块标识及第一资源量存入预设的资源列表的限定。It should be noted that the above examples are merely illustrative, and cannot be used as limitations on storing the first resource block identifier and the first resource amount in the preset resource list in this embodiment of the present application.
本申请实施例,在给任一应用进行资源分配时,优先从预设的资源列表中查找满足目标资源量的第一资源块,若预设的资源列表中没有可以满足目标资源量的第一资源块,则从资源池中查找满足目标资源量的第二资源块,并将其分配给该应用,之后更新预设的资源列表中包含的资源块标识。由此,在进行资源分配时,既可以使得较小的资源块得到充分利用,也可以从资源池中获取资源块以满足较大的目标资源量,从而既可以快速合理地进行资源分配,又能提高设备资源的利用率。In this embodiment of the present application, when allocating resources to any application, the first resource block that meets the target resource amount is preferentially searched from the preset resource list. If there is no first resource block that can meet the target resource amount in the preset resource list resource block, search for a second resource block satisfying the target resource amount from the resource pool, allocate it to the application, and then update the resource block identifier included in the preset resource list. Therefore, during resource allocation, it is possible to make full use of small resource blocks, and to obtain resource blocks from the resource pool to meet a large target resource amount, so that resource allocation can be performed quickly and reasonably, and the It can improve the utilization rate of equipment resources.
各个应用在执行过程中或者退出使用时,使用的资源量会发生变化,为了对资源进行动态的、实时的管理,可以对每个应用使用的资源进行监控、回收。下面结合图3对资源的监控、回收这一过程进行详细描述。The amount of resources used by each application will change during the execution process or when it is out of use. In order to manage resources dynamically and in real time, the resources used by each application can be monitored and recycled. The process of resource monitoring and recovery will be described in detail below with reference to FIG. 3 .
步骤301,监控每个应用对应的各已分配资源块的使用状态。Step 301: Monitor the usage status of each allocated resource block corresponding to each application.
其中,各已分配资源块的使用状态,可以为正在使用中,或者也可以为空闲状态,本申请对此不做限定。The use state of each allocated resource block may be in use or idle state, which is not limited in this application.
举例来说,监控到的应用1中各已分配资源块的使用状态,分别为资源块A正在使用,资源块B正在使用,资源块C处于空闲状态。For example, the monitored usage status of each allocated resource block in application 1 is that resource block A is in use, resource block B is in use, and resource block C is in an idle state.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中各已分配资源块的使用状态的限定。It should be noted that the above examples are only examples, and cannot be used as limitations on the usage states of the allocated resource blocks in the embodiments of the present application.
步骤302,在任一应用对应的至少一个已分配资源块处于空闲状态的情况下,解除任一应用对至少一个已分配资源块的占用。
举例来说,应用1中各已分配资源块的使用状态,分别为资源块A正在使用,资源块B正在使用,资源块C处于空闲状态,可以解除应用1对资源块C的占用,从而可以对资源块进行及时的回收,减少资源闲置。For example, the usage status of each allocated resource block in application 1 is that resource block A is in use, resource block B is in use, and resource block C is in an idle state, so the occupation of resource block C by application 1 can be released. Recycle resource blocks in a timely manner to reduce idle resources.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中解除任一应用对已分配资源块的占用的限定。It should be noted that the above examples are only examples, and cannot be used as a limitation on releasing the occupation of the allocated resource blocks by any application in the embodiments of the present application.
可以理解的是,在具体使用时,可以根据至少一个已分配资源块对应的资源量,确定至少一个已分配资源块的回收模式。It can be understood that, during specific use, the recycling mode of the at least one allocated resource block can be determined according to the resource amount corresponding to the at least one allocated resource block.
举例来说,在至少一个已分配资源块对应的资源量小于阈值的情况下,确定将至少一个已分配资源块回收至预设的资源列表。For example, in the case that the resource amount corresponding to at least one allocated resource block is less than the threshold, it is determined to reclaim at least one allocated resource block to the preset resource list.
或者,在至少一个已分配资源块对应的资源量大于或等于阈值的情况下,确定将至少一个已分配资源块回收至资源池。Alternatively, in the case that the resource amount corresponding to at least one allocated resource block is greater than or equal to the threshold, it is determined to reclaim at least one allocated resource block to the resource pool.
其中,阈值,可以为设定的、任意大小的数值,本申请对此不做限定。The threshold value may be a set value of any size, which is not limited in this application.
比如说,设定的阈值为200M,已分配资源块对应的资源量为100M,小于阈值,可以将其回收至预设的资源列表中。或者,已分配资源块对应的资源量为200M时,其等于设定的阈值,可以将其回收至资源池。或者,已分配资源块对应的资源量为500M时,其大于设定的阈值,可以将其回收至资源池。For example, if the set threshold is 200M, and the resource amount corresponding to the allocated resource block is 100M, which is less than the threshold, it can be recycled to the preset resource list. Or, when the resource amount corresponding to the allocated resource block is 200M, which is equal to the set threshold, it can be recycled to the resource pool. Or, when the resource amount corresponding to the allocated resource block is 500M, which is greater than the set threshold, it can be recycled to the resource pool.
需要说明的是,上述示例只是举例说明,不能作为对本申请中阈值、已分配资源块的回收模式的限定。It should be noted that the above examples are only examples, and cannot be used as limitations on the threshold value and the recovery mode of allocated resource blocks in this application.
另外,在对任意空闲状态的已分配资源进行回收时,为了尽可能的增加回收的资源量,在一种可能的实现方式中,还可以先确定与处于空闲状态的至少一个已分配资源块相邻的资源块当前的使用状态;在任一相邻的资源块当前处于空闲状态的情况下,将任一相邻的资源块与至少一个已分配资源块进行资源合并,以生成新的资源块;根据新的资源块对应的资源量,确定新的资源块的回收模式。In addition, when reclaiming the allocated resources in any idle state, in order to increase the amount of resources to be reclaimed as much as possible, in a possible implementation manner, it is also possible to first determine the resource blocks that are in the idle state with at least one allocated resource block. The current state of use of the adjacent resource blocks; when any adjacent resource block is currently in an idle state, any adjacent resource block is combined with at least one allocated resource block to generate a new resource block; The recycling mode of the new resource block is determined according to the resource amount corresponding to the new resource block.
举例来说,处于空闲状态的、已分配的资源块B,对应的资源量为100M,与其相邻的资源块A仍在使用中,在资源块B之后的资源块C处于空闲状态,对应的资源量为60M,从而可以将资源块B和资源块C进行资源合并,生成新的资源块D、资源量160M。若设定好的阈值为100M,新的资源块D对应的资源量160M大于设定好的阈值,从而可以将新的资源块回收至回收池。或者,若设定好的阈值为200M时,新的资源块D对应的资源量160M小于设定好的阈值,可以将该新资源块回收至预设的资源列表,从而可以将相邻的、均处于空闲状态的资源块进行回收,提高资源利用率。For example, the allocated resource block B in the idle state has a corresponding resource amount of 100M, the adjacent resource block A is still in use, and the resource block C after the resource block B is in the idle state, the corresponding resource block A is still in use. The resource amount is 60M, so that resource block B and resource block C can be combined to generate a new resource block D with a resource amount of 160M. If the set threshold is 100M, the resource amount 160M corresponding to the new resource block D is greater than the set threshold, so that the new resource block can be recycled to the recycling pool. Or, if the set threshold is 200M, and the resource amount 160M corresponding to the new resource block D is less than the set threshold, the new resource block can be recycled to the preset resource list, so that adjacent, Resource blocks that are all in an idle state are recycled to improve resource utilization.
或者,处于空闲状态的、已分配的资源块B,对应的资源量为100M,与其相邻的资源块A仍在使用中,位于资源块B之后的资源块C处于空闲状态,对应的资源量为150M,在资源块C之后存在处于空闲状态的资源块D,对应的资源量60M,从而可以将资源块B、资源块C和资源块D进行资源合并,生成新的资源块M、资源量310M。若设定好的阈值为200M,新的资源块M的资源量310M大于设定好的阈值,从而可以将新的资源块回收至回收池。或者,若设定好的阈值为500M,新的资源块M的资源量310M小于设定好的阈值,可以将该新的资源块回收至预设的资源列表,从而可以尽可能的增加回收的资源量,提高资源的利用率。Or, the allocated resource block B in an idle state has a corresponding resource amount of 100M, the adjacent resource block A is still in use, and the resource block C located after the resource block B is in an idle state, and the corresponding resource amount is 150M, there is an idle resource block D after resource block C, and the corresponding resource amount is 60M, so that resource block B, resource block C and resource block D can be combined to generate new resource block M, resource amount 310M. If the set threshold is 200M, the resource amount 310M of the new resource block M is greater than the set threshold, so that the new resource block can be recycled to the recycling pool. Or, if the set threshold is 500M, and the resource amount of the new resource block M is 310M less than the set threshold, the new resource block can be recycled to the preset resource list, so as to increase the number of recycled resources as much as possible. resources and improve the utilization of resources.
需要说明的是,上述示例只是举例说明,不能作为对本申请实施例中对处于空闲状态的已分配资源回收的限定。It should be noted that the above example is only an example, and cannot be used as a limitation on the recovery of allocated resources in an idle state in the embodiments of the present application.
举例来说,任一应用为语音处理类应用,当其在进行语音处理的时候,不同时刻接收到的待处理的语音数据的长度可能不同,当处理较长语音数据时,设备可能给其分配较大的资源,在处理较短语音数据的时候,其所使用的资源可能也较少,从而可以将多余的空闲资源进行释放,以尽量满足更多的资源需求,从而提高了资源的利用率。For example, any application is a speech processing application. When it is processing speech, the length of the speech data to be processed may be different. When processing longer speech data, the device may allocate Larger resources may use fewer resources when processing short voice data, so that redundant idle resources can be released to meet more resource requirements as much as possible, thereby improving resource utilization. .
比如说,待处理的语音数据1可以为“今天天气真好呀,我们一起去公园玩吧”,时长为5秒,此时设备可能给应用分配了500M的资源以处理语音数据,待处理的语音数据2可以为“好呀”,时长为10毫秒,其实际使用的资源可能为100M,此时为了减少资源闲置,可以释放剩余的400M资源,从而可以有效提高资源利用率。For example, the voice data 1 to be processed can be "The weather is so nice today, let's go to the park to play together", and the duration is 5 seconds. At this time, the device may allocate 500M resources to the application to process the voice data. The voice data 2 can be "OK", the duration is 10 milliseconds, and the actual resources used may be 100M. In this case, in order to reduce idle resources, the remaining 400M resources can be released, thereby effectively improving resource utilization.
或者,任一应用为图片处理类应用,当其在进行图片处理的时候,不同时刻接收到的待处理的图片数据可能不同,当处理较大图片时,设备可能给其分配较大的资源,在处理较小图片时,其所使用的资源可能也较少,从而可以将多余的空闲资源进行释放,能够提高资源利用率。Or, any application is a picture processing application. When it is processing pictures, the received picture data to be processed at different times may be different. When processing larger pictures, the device may allocate larger resources to it. When processing a smaller picture, it may also use less resources, so that redundant idle resources can be released, which can improve resource utilization.
比如说,待处理的图片1的大小为200M,此时设备可能给应用分配了300M的资源以处理图片,待处理的图片2的大小为50M,此时为了减少资源闲置,可以释放剩余的250M资源,从而可以有效提高资源利用率。For example, the size of picture 1 to be processed is 200M, and the device may allocate 300M of resources to the application to process the picture, and the size of picture 2 to be processed is 50M. In this case, in order to reduce idle resources, the remaining 250M can be released. resources, which can effectively improve resource utilization.
需要说明的是,上述示例只是举例说明,不能作为对本申请任一应用处理业务的限定。It should be noted that the above examples are only examples, and cannot be used as limitations on the business processing of any application in this application.
本申请实施例中,可以监控每个应用对应的各已分配资源块的使用状态,在任一应用对应的至少一个已分配资源块处于空闲状态的情况下,解除任一应用对至少一个已分配资源块的占用。由此,通过对资源进行动态的、实时的管理,可以及时将处于空闲状态的已分配资源块解除占用,避免资源浪费,提高资源利用率,进而提高整体的运行效率。In this embodiment of the present application, the usage status of each allocated resource block corresponding to each application can be monitored, and in the case that at least one allocated resource block corresponding to any application is in an idle state, any application is released from the at least one allocated resource block occupancy. In this way, through dynamic and real-time management of resources, allocated resource blocks that are in an idle state can be released from occupation in a timely manner, thereby avoiding resource waste, improving resource utilization, and further improving overall operation efficiency.
为了实现上述实施例,本申请实施例还提出一种设备资源的处理装置。图4为本申请实施例提供的一种设备资源的处理装置的结构示意图。In order to implement the above-mentioned embodiments, an embodiment of the present application further proposes an apparatus for processing device resources. FIG. 4 is a schematic structural diagram of a device resource processing apparatus provided by an embodiment of the present application.
如图4所示,该设备资源的处理装置400包括:确定模块410、第一分配模块420、及更新模块430。As shown in FIG. 4 , the device
其中,确定模块410,用于根据任一应用当前待处理数据的数据量,确定当前待为所述任一应用分配的目标资源量。Wherein, the determining
第一分配模块420,用于在所述目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将所述任一第一资源块中与所述目标资源量匹配的目标资源分配给所述任一应用。The
更新模块430,用于更新所述预设的资源列表中包含的资源块标识。The updating
需要说明的是,前述设备资源的处理方法实施例的解释说明,也适用于该实施例的设备资源的处理装置,故在此不再赘述。It should be noted that, the explanations of the foregoing embodiments of the method for processing device resources are also applicable to the apparatus for processing device resources in this embodiment, and thus are not repeated here.
本申请实施例的设备资源的处理装置,根据任一应用当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量,在目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将任一第一资源块中与目标资源量匹配的目标资源分配给任一应用,之后更新预设的资源列表中包含的资源块标识。由此,在为任一应用进行资源分配时,优先将对应资源量少的资源块进行分配,从而可使得预设的资源列表中的第一资源块尽可能的得到使用,可以在满足应用需求的情况下,最大限度的提高设备资源的利用率,可以更好地进行资源回收、利用。The device resource processing apparatus according to the embodiment of the present application determines the target resource amount to be allocated for any application according to the data amount of the data to be processed currently by any application, and the target resource amount is less than or equal to any preset resource list. In the case of a resource amount corresponding to a first resource block, a target resource matching the target resource amount in any first resource block is allocated to any application, and then the resource block identifier included in the preset resource list is updated. Therefore, when allocating resources for any application, the resource blocks with less corresponding resources are allocated preferentially, so that the first resource block in the preset resource list can be used as much as possible, which can meet the application requirements. Under the circumstance, the utilization rate of equipment resources can be maximized, and resource recovery and utilization can be better carried out.
图5为本申请另一实施例提供的一种设备资源的处理装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for processing device resources according to another embodiment of the present application.
如图5所示,该设备资源的处理装置500包括:确定模块510、第一分配模块520、更新模块530、第二分配模块540、存储模块550、获取模块560。As shown in FIG. 5 , the device
其中,确定模块510,用于根据任一应用当前待处理数据的数据量,确定当前待为所述任一应用分配的目标资源量。Wherein, the determining
可以理解的是,本实施例中的确定模块510,与上述实施例中的确定模块410,可以具有相同的功能和结构。It can be understood that, the
第一分配模块520,可具体用于确定当前为所述任一应用已分配的各资源块标识;还用于根据各资源块标识对应的各资源块间的位置关系,将所述至少两个第一资源块中与所述已分配的各资源块标识距离最短的第一资源块分配给所述任一应用。The
可以理解的是,本实施例中的第一分配模块520,与上述实施例中的第一分配模块420,可以具有相同的功能和结构。It can be understood that, the
更新模块530,具体用于在所述目标资源量等于所述任一第一资源块对应的资源量的情况下,将所述任一第一资源块的标识及对应的资源量从所述预设的资源列表中删除。The updating
在一种可能的实现方式中,更新模块530,还可以包括:In a possible implementation manner, the
第一确定单元5310,用于在所述目标资源量小于所述任一第一资源块对应的资源量的情况下,确定所述任一第一资源块中除所述目标资源外的剩余资源块对应的新资源块标识及资源量;A first determining
存储单元5320,用于将所述新资源块标识及资源量,存入所述预设的资源列表;a
删除单元5330,用于将所述任一第一资源块的标识及对应的资源量从所述预设的资源列表中删除。The
可以理解的是,本实施例中的更新模块530,与上述实施例中的更新模块430,可以具有相同的功能和结构。It can be understood that, the
第二分配模块540,用于在所述目标资源量大于所述预设的资源列表中每个资源块对应的资源量的情况下,将资源池的任一第二资源块中与所述目标资源量匹配的目标资源分配给所述任一应用。The second allocating
存储模块550,用于将所述任一第二资源块中除所述目标资源外的剩余资源对应的第一资源块标识及第一资源量,存入所述预设的资源列表。The
获取模块560,用于在所述目标资源量大于或等于阈值的情况下,从资源池中获取与所述目标资源量匹配的目标资源块。The obtaining
需要说明的是,前述设备资源的处理方法实施例的解释说明,也适用于该实施例的设备资源的处理装置,故在此不再赘述。It should be noted that, the explanations of the foregoing embodiments of the method for processing device resources are also applicable to the apparatus for processing device resources in this embodiment, and thus are not repeated here.
本申请实施例的设备资源的处理装置,在给任一应用进行资源分配时,优先从预设的资源列表中查找满足目标资源量的第一资源块,若预设的资源列表中没有可以满足目标资源量的第一资源块,则从资源池中查找满足目标资源量的第二资源块,并将其分配给该应用,之后更新预设的资源列表中包含的资源块标识。由此,在进行资源分配时,既可以使得较小的资源块得到充分利用,也可以从资源池中获取资源块以满足较大的目标资源量,从而既可以快速合理地进行资源分配,又能提高设备资源的利用率。The apparatus for processing device resources according to the embodiment of the present application, when allocating resources to any application, preferentially searches for a first resource block that satisfies the target resource amount from a preset resource list. For the first resource block of the target resource amount, search for the second resource block that meets the target resource amount from the resource pool, allocate it to the application, and then update the resource block identifier included in the preset resource list. Therefore, during resource allocation, it is possible to make full use of small resource blocks, and to obtain resource blocks from the resource pool to meet a large target resource amount, so that resource allocation can be performed quickly and reasonably, and the It can improve the utilization rate of equipment resources.
图6为本申请又一实施例提供的一种设备资源的处理装置的结构示意图。FIG. 6 is a schematic structural diagram of an apparatus for processing device resources according to another embodiment of the present application.
如图6所示,该设备资源的处理装置600包括:监控模块610、解除模块620。As shown in FIG. 6 , the device
其中,监控模块610,用于监控每个应用对应的各已分配资源块的使用状态。The
解除模块620,用于在任一应用对应的至少一个已分配资源块处于空闲状态的情况下,解除所述任一应用对所述至少一个已分配资源块的占用。The
在一种可能的实现方式中,解除模块620,包括:In a possible implementation manner, the
第二确定单元6210,用于根据所述至少一个已分配资源块对应的资源量,确定所述至少一个已分配资源块的回收模式。The second determining
在一种可能的实现方式中,第二确定单元6210,具体用于在所述至少一个已分配资源块对应的资源量小于阈值的情况下,确定将所述至少一个已分配资源块回收至所述预设的资源列表;或者,还具体用于在所述至少一个已分配资源块对应的资源量大于或等于所述阈值的情况下,确定将所述至少一个已分配资源块回收至资源池。In a possible implementation manner, the second determining
在一种可能的实现方式中,解除模块620,还包括:In a possible implementation manner, the
第三确定单元6220,用于确定与所述处于空闲状态的至少一个已分配资源块相邻的资源块当前的使用状态。The third determining
生成单元6230,用于在任一相邻的资源块当前处于空闲状态的情况下,将所述任一相邻的资源块与所述至少一个已分配资源块进行资源合并,以生成新的资源块。A
第四确定单元6240,用于根据所述新的资源块对应的资源量,确定所述新的资源块的回收模式。The fourth determining
需要说明的是,前述设备资源的处理方法实施例的解释说明,也适用于该实施例的设备资源的处理装置,故在此不再赘述。It should be noted that, the explanations of the foregoing embodiments of the method for processing device resources are also applicable to the apparatus for processing device resources in this embodiment, and thus are not repeated here.
本申请实施例的设备资源的处理装置,监控每个应用对应的各已分配资源块的使用状态,在任一应用对应的至少一个已分配资源块处于空闲状态的情况下,解除任一应用对至少一个已分配资源块的占用。由此,通过对资源进行动态的、实时的管理,可以及时将处于空闲状态的已分配资源块解除占用,避免资源浪费,提高资源利用率,进而提高整体的运行效率。The device resource processing apparatus according to the embodiment of the present application monitors the usage status of each allocated resource block corresponding to each application, and in the case that at least one allocated resource block corresponding to any application is in an idle state, cancels any application from at least one allocated resource block. Occupancy of an allocated resource block. In this way, through dynamic and real-time management of resources, allocated resource blocks that are in an idle state can be released from occupation in a timely manner, thereby avoiding resource waste, improving resource utilization, and further improving overall operation efficiency.
根据本申请的实施例,本申请还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present application, the present application further provides an electronic device, a readable storage medium, and a computer program product.
图7示出了可以用来实施本申请的实施例的示例电子设备700的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。FIG. 7 shows a schematic block diagram of an example
如图7所示,设备700包括计算单元701,其可以根据存储在只读存储器(ROM)702中的计算机程序或者从存储单元708加载到随机访问存储器(RAM)703中的计算机程序,来执行各种适当的动作和处理。在RAM 703中,还可存储设备700操作所需的各种程序和数据。计算单元701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7 , the
设备700中的多个部件连接至I/O接口705,包括:输入单元706,例如键盘、鼠标等;输出单元707,例如各种类型的显示器、扬声器等;存储单元708,例如磁盘、光盘等;以及通信单元709,例如网卡、调制解调器、无线通信收发机等。通信单元709允许设备700通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Various components in the
计算单元701可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元701的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(A I)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元701执行上文所描述的各个方法和处理,例如设备资源的处理方法。例如,在一些实施例中,设备资源的处理方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元708。在一些实施例中,计算机程序的部分或者全部可以经由ROM 702和/或通信单元709而被载入和/或安装到设备700上。当计算机程序加载到RAM 703并由计算单元701执行时,可以执行上文描述的设备资源的处理方法的一个或多个步骤。备选地,在其他实施例中,计算单元701可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行设备资源的处理方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(AS I C)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), on-chip The system is implemented in a system of systems (SOC), a load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
用于实施本申请的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.
在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this application, a machine-readable medium may be a tangible medium that may contain or store the program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、互联网和区块链网络。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), the Internet, and blockchain networks.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as a cloud computing server or a cloud host. It is a host product in the cloud computing service system to solve the traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). , there are the defects of difficult management and weak business expansion. The server can also be a server of a distributed system, or a server combined with a blockchain.
本申请的技术方案,根据任一应用当前待处理数据的数据量,确定当前待为任一应用分配的目标资源量,在目标资源量小于或等于预设的资源列表中任一第一资源块对应的资源量的情况下,将任一第一资源块中与目标资源量匹配的目标资源分配给任一应用,之后更新预设的资源列表中包含的资源块标识。由此,在为任一应用进行资源分配时,优先将对应资源量少的资源块进行分配,从而可使得预设的资源列表中的第一资源块尽可能的得到使用,可以在满足应用需求的情况下,最大限度的提高设备资源的利用率,可以更好地进行资源回收、利用。According to the technical solution of the present application, the target resource amount to be allocated for any application is determined according to the data amount of the current data to be processed by any application, and the target resource amount is less than or equal to any first resource block in the preset resource list. In the case of the corresponding resource amount, a target resource matching the target resource amount in any first resource block is allocated to any application, and then the resource block identifier included in the preset resource list is updated. Therefore, when allocating resources for any application, the resource blocks with less corresponding resources are allocated preferentially, so that the first resource block in the preset resource list can be used as much as possible, which can meet the application requirements. Under the circumstance, the utilization rate of equipment resources can be maximized, and resource recovery and utilization can be better carried out.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present application can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011507117.0A CN112527506B (en) | 2020-12-18 | 2020-12-18 | Device resource processing method, device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202011507117.0A CN112527506B (en) | 2020-12-18 | 2020-12-18 | Device resource processing method, device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112527506A CN112527506A (en) | 2021-03-19 |
| CN112527506B true CN112527506B (en) | 2022-09-23 |
Family
ID=75001612
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202011507117.0A Active CN112527506B (en) | 2020-12-18 | 2020-12-18 | Device resource processing method, device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112527506B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113807711B (en) * | 2021-05-21 | 2024-09-24 | 深圳市海柔创新科技有限公司 | Method, apparatus, device, storage medium and program product for resource allocation |
| CN113225830B (en) * | 2021-06-07 | 2023-05-26 | 维沃移动通信有限公司 | Data network uplink scheduling method and device and electronic equipment |
| CN113626191B (en) * | 2021-08-04 | 2025-08-19 | 北京沃东天骏信息技术有限公司 | Resource processing method, device, equipment and storage medium |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8578047B2 (en) * | 2008-03-07 | 2013-11-05 | Industrial Technology Research Institute | Methods and systems for resource allocation |
| CN104679592A (en) * | 2013-12-02 | 2015-06-03 | 北京兆易创新科技股份有限公司 | Method and system for dynamically distributing resources in microcontroller unit MCU |
| CN104714845B (en) * | 2013-12-17 | 2018-06-26 | 华为技术有限公司 | Resource dynamic regulation method, device and more kernel operating systems |
| CN104580194B (en) * | 2014-12-31 | 2017-11-24 | 北京四达时代软件技术股份有限公司 | Towards the virtual resources management method and device of Video Applications |
| CN106681835B (en) * | 2016-12-28 | 2019-04-05 | 华为技术有限公司 | The method and resource manager of resource allocation |
| CN109471727B (en) * | 2018-10-29 | 2021-01-22 | 北京金山云网络技术有限公司 | Task processing method, device and system |
| CN110780823B (en) * | 2019-11-06 | 2023-09-12 | 广东三维家信息科技有限公司 | Small object memory management method, small object memory management device, electronic equipment and computer readable medium |
| CN111459648B (en) * | 2020-06-17 | 2020-09-11 | 北京机电工程研究所 | Heterogeneous multi-core platform resource optimization method and device for application program |
-
2020
- 2020-12-18 CN CN202011507117.0A patent/CN112527506B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN112527506A (en) | 2021-03-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112559007B (en) | Parameter update method, device and electronic device for multi-task model | |
| CN112527506B (en) | Device resource processing method, device, electronic device and storage medium | |
| CN105677250B (en) | The update method and updating device of object data in object storage system | |
| CN112784734A (en) | Video identification method and device, electronic equipment and storage medium | |
| CN113656179B (en) | Scheduling method and device of cloud computing resources, electronic equipment and storage medium | |
| EP4394662A1 (en) | Training method, apparatus and system for deep learning model, and device and medium | |
| CN113407649A (en) | Data warehouse modeling method and device, electronic equipment and storage medium | |
| CN111198745A (en) | Scheduling method, device, medium and electronic equipment for container creation | |
| CN110706148A (en) | Face image processing method, device, equipment and storage medium | |
| CN119473633B (en) | A question-answering method, device, equipment and storage medium for a large intelligent question-answering model | |
| US12007965B2 (en) | Method, device and storage medium for deduplicating entity nodes in graph database | |
| CN112667403A (en) | Server scheduling method and device and electronic equipment | |
| CN112560936A (en) | Model parallel training method, device, equipment, storage medium and program product | |
| KR101400499B1 (en) | Apparatus and method of parallel processing of linked big data | |
| CN114968967A (en) | File management method, device, equipment and storage medium | |
| CN113344074A (en) | Model training method, device, equipment and storage medium | |
| CN112988932A (en) | High-precision map labeling method, device, equipment, readable storage medium and product | |
| CN116610725B (en) | An entity-enhanced rule mining method and device applied to big data | |
| CN114185661A (en) | Task processing method, device, equipment and storage medium | |
| CN115794742A (en) | File path data processing method, device, equipment and storage medium | |
| CN113254993B (en) | Data protection methods, devices, equipment, storage media and program products | |
| CN119336841B (en) | Data synchronization method, device, electronic device and storage medium | |
| CN116594764B (en) | Application program updating method, device, electronic device and storage medium | |
| CN116244063A (en) | Resource pool creation and data processing method and device | |
| CN116187014A (en) | Heterogeneous-based parameter template generation method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |