CN112308457A - Resource allocation method, device and computer readable storage medium - Google Patents

Resource allocation method, device and computer readable storage medium Download PDF

Info

Publication number
CN112308457A
CN112308457A CN202011318820.7A CN202011318820A CN112308457A CN 112308457 A CN112308457 A CN 112308457A CN 202011318820 A CN202011318820 A CN 202011318820A CN 112308457 A CN112308457 A CN 112308457A
Authority
CN
China
Prior art keywords
service
executed
resource
resources
electronic device
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.)
Withdrawn
Application number
CN202011318820.7A
Other languages
Chinese (zh)
Inventor
杨怀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202011318820.7A priority Critical patent/CN112308457A/en
Publication of CN112308457A publication Critical patent/CN112308457A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06315Needs-based resource requirements planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06393Score-carding, benchmarking or key performance indicator [KPI] analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • G06Q50/40

Abstract

The application provides a resource allocation method, a device and a computer readable storage medium, wherein the resource allocation method comprises the following steps: acquiring service attributes of each current service to be executed of the electronic device; determining resource demand indexes corresponding to the services to be executed based on the service attributes; and according to the resource demand index, slicing hardware resources and/or software resources of the electronic device and then distributing the sliced hardware resources and/or software resources to each service to be executed. Through the implementation of the scheme, the electronic device slices the resources independently, and then allocates the corresponding resources according to different services as required, so that the rationality of resource allocation can be effectively improved, the resource waste and the power consumption of the electronic device are reduced, and the service execution quality is ensured.

Description

Resource allocation method, device and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a resource allocation method, an apparatus, and a computer-readable storage medium.
Background
With the rapid development of terminal technology, electronic devices such as mobile phones and tablet computers are used more and more frequently in work and life of users, and the electronic devices satisfy actual use requirements of users by executing various services (such as game services, instant messaging services, video services, and the like).
In practical applications, the execution of the services depends on resources (e.g., software resources and/or hardware resources) allocated by the electronic device, and if the resources are not allocated properly for each service, on one hand, the resources of the electronic device are wasted or power consumption is increased, and on the other hand, the execution quality of the services is not guaranteed.
Disclosure of Invention
The embodiment of the application provides a resource allocation method, a resource allocation device and a computer-readable storage medium, which can at least solve the problems that a reasonable resource allocation mode cannot be provided in the related art, so that the resource waste or power consumption of an electronic device is increased, and the service execution quality cannot be guaranteed.
A first aspect of an embodiment of the present application provides a resource allocation method, including:
acquiring service attributes of each current service to be executed of the electronic device;
determining a resource demand index corresponding to each service to be executed based on the service attribute;
according to the resource demand index, slicing the resources of the electronic device and then distributing the slices to the services to be executed; wherein the resources comprise hardware resources and/or software resources.
A second aspect of the embodiments of the present application provides a resource allocation apparatus, including:
the acquisition module is used for acquiring the service attribute of each current service to be executed of the electronic device;
the determining module is used for determining the resource demand index corresponding to each service to be executed based on the service attribute;
the allocation module is used for slicing the resources of the electronic device and allocating the sliced resources to the services to be executed according to the resource demand indexes; wherein the resources comprise hardware resources and/or software resources.
A third aspect of embodiments of the present application provides an electronic apparatus, including: the resource allocation method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the resource allocation method provided in the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the resource allocation method provided in the first aspect of the embodiments of the present application.
In view of the above, according to the resource allocation method, device and computer-readable storage medium provided by the present application, the service attribute of each current service to be executed of the electronic device is obtained; determining resource demand indexes corresponding to the services to be executed based on the service attributes; and according to the resource demand index, slicing hardware resources and/or software resources of the electronic device and then distributing the sliced hardware resources and/or software resources to each service to be executed. Through the implementation of the scheme, the electronic device slices the resources independently, and then allocates the corresponding resources according to different services as required, so that the rationality of resource allocation can be effectively improved, the resource waste and the power consumption of the electronic device are reduced, and the service execution quality is ensured.
Drawings
Fig. 1 is a schematic basic flowchart of a resource allocation method according to a first embodiment of the present application;
fig. 2 is a system resource diagram of an electronic device according to a first embodiment of the present application;
fig. 3 is a schematic resource slice diagram according to a first embodiment of the present application;
fig. 4 is a flowchart illustrating a resource on-demand allocation method according to a first embodiment of the present application;
fig. 5 is a detailed flowchart of a resource allocation method according to a second embodiment of the present application;
fig. 6 is a schematic diagram of program modules of a resource allocation apparatus according to a third embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to solve the defects that a reasonable resource allocation manner cannot be provided in the related art, which results in resource waste or power consumption increase of an electronic device, and service execution quality cannot be guaranteed, a first embodiment of the present application provides a resource allocation method, for example, as shown in fig. 1, which is a basic flowchart of the resource allocation method provided in this embodiment, the resource allocation method includes the following steps:
step 101, obtaining service attributes of each current service to be executed of the electronic device.
Specifically, in this embodiment, the current service to be executed by the electronic device, that is, the service that is currently processed (that is, in a connected state) by the electronic device and needs to perform resource slice allocation, in practical application, the electronic device may concurrently process a plurality of services to be executed. It should be understood that the service attribute of the present embodiment is used to characterize service characteristics, and may include a service type, an application providing a service, and the like, for example, different services provided for a WeChat application, and the service type may include a voice service, a text service, and the like.
And 102, determining a resource demand index corresponding to each service to be executed based on the service attribute.
Specifically, in practical applications, resources required by different services are different, the resources of this embodiment include hardware resources and/or software resources, and the hardware resources include a transceiver, a radio frequency front end, an antenna, an application processor, and the like, as shown in fig. 2, a system resource diagram of an electronic device provided in this embodiment is provided, where an AP is used to represent the application processor, a Modem is used to represent the Modem, and in practical applications, the AP may be an 5/4/3/2G Modem, and in addition, a resource requirement index may include a required resource type and/or a required resource amount, and the like.
In some embodiments of this embodiment, determining a resource requirement index corresponding to each service to be executed based on the service attribute includes: determining service priority corresponding to each service to be executed based on the service attributes; and determining a corresponding resource demand index according to the service priority.
Specifically, the present embodiment may preset a mapping relationship between a service attribute and a service priority, and then query the preset mapping relationship through the service attribute of each service to be executed in practical application, that is, determine the corresponding service priority. In this embodiment, the service priority may be associated with the service importance, and the service priority is positively associated with the resource requirement index, that is, the higher the service priority is, the more resources need to be allocated to the service. It should be noted that, in practical applications, the mapping relationship between the service attribute and the service priority may be configured by default by the system, or may be configured by the user of the electronic device.
And 103, slicing the resources of the electronic device and distributing the sliced resources to each service to be executed according to the resource demand indexes.
Specifically, in this embodiment, the electronic device uses the resource requirement index of each service to be executed as a resource allocation reference factor, slices the remaining available resources, and then allocates the resources obtained by slicing to each service to be executed. In the embodiment, the electronic device slices the resources autonomously, and then allocates the corresponding resources according to different services as required, so that the rationality of resource allocation can be effectively improved, the resource waste and power consumption of the electronic device are reduced, and the service execution quality is ensured.
In some embodiments of this embodiment, slicing and allocating resources of an electronic device to each service to be executed according to a resource requirement index includes: dividing resources of the electronic device into different slicing channels, and dividing different slicing dimensions for each slicing channel; and distributing the resources of the electronic device corresponding to the slicing channel and the slicing dimension to each service to be executed according to the resource demand index.
Specifically, in this embodiment, software and hardware of the original terminal are combined together to implement a slicing channel in a communication system of the original terminal, for example, the software actively adjusts the self-generating capability with the network according to the capability of the actual requirements of the network side and the UE side and feeds back the capability to the hardware side, and finally, end-to-end slicing is implemented, and the slicing channel automatically decouples the difference between the network and the terminal by the terminal according to different scenarios to implement optimal power consumption and network resources. For the slicing channel, the slicing at the Modem end, the slicing at the transceiver, the slicing at the radio frequency end, and the slicing at the antenna end may be refined, wherein the final control right of all the slicing channels is controlled by the Modem system, that is, the Modem performs uniform allocation management on the resources of the electronic device, and for the slicing dimension, the slicing channel may be refined to a plurality of dimensions such as modulation bandwidth, modulation mode, communication bandwidth, RB configuration, and the like.
Fig. 3 is a schematic view of resource slicing provided by this embodiment, wherein a vertical axis of a coordinate axis represents different resource types, that is, the slicing channel, and a horizontal axis of the coordinate axis represents each dimension of the resource, where each frame can be included in a slicing manner, for example, an antenna end only has a debug bandwidth, and a radio frequency band includes a slicing manner in which a plurality of dimensions are configured by a modulation manner, a communication bandwidth, and an RB. Therefore, system resources are further refined to specific slicing dimensions, and the method is different from a resource slicing mode of a single dimension, so that more fine power consumption optimization and network optimization can be realized.
As shown in fig. 4, which is a flowchart illustrating a resource on-demand allocation method provided in this embodiment, in some embodiments of this embodiment, when slicing and allocating resources of an electronic device to each service to be executed according to a resource demand indicator, the method specifically includes the following steps:
step 401, acquiring a current operation performance index of an electronic device;
step 402, determining corresponding distributable resource attributes according to the operation performance indexes;
and 403, according to the resource demand index, distributing the resource slices corresponding to the distributable resource attributes of the electronic device to each service to be executed.
Specifically, in this embodiment, before the resource of the electronic apparatus is allocated, the current operation performance of the electronic apparatus is obtained to sense the current operation condition of the electronic apparatus, where the operation performance index may include a power consumption level, a heat generation level, a processor smoothness level, and the like, and the allocable resource attribute may include a resource type and/or a resource amount, and the like. In this embodiment, the resource type and/or the resource amount of the currently allocated resource are determined according to the operation performance index, for example, when the current operation condition of the electronic device is good, the resource amount of the allocable resource is higher in the remaining resource amount, and otherwise, only relatively few resources are called from the remaining resource amount as the allocable resource. Therefore, the compromise between the running performance of the electronic device and the service execution quality is achieved. In practical application, a corresponding relationship between the operation performance index and the assignable resource attribute may be configured in advance, and then the assignable resource attribute corresponding to the current operation performance index may be determined according to the corresponding relationship.
In some embodiments of this embodiment, according to the resource requirement index, slicing and then allocating the resources of the electronic device to each service to be executed, further includes: acquiring the service execution quality of a service to be executed in a historical time period; and comparing the service execution quality with the standard service execution quality. Correspondingly, when the service execution quality reaches the standard, the step of slicing the resources of the electronic device and then distributing the sliced resources to each service to be executed is executed according to the resource demand index.
Specifically, in practical applications, under the influence of objective factors, such as software upgrade or system upgrade, a resource requirement index pre-configured for each service attribute may deviate from an actual resource requirement index, so that the resource requirement index may not accurately reflect the current service requirement by still referring to a pre-configured resource requirement index mapping relationship. Therefore, in the embodiment, the service execution quality after the service to be executed allocates resources according to the preset resource demand index in the historical time period is determined, and if the resources allocated according to the resource demand index before can ensure that the service to be executed is executed smoothly, the preset resource demand index is determined to be an effective index, and then the index can be continuously used for resource allocation.
Further, in some embodiments of this embodiment, after comparing the service execution quality with the standard service execution quality, the method further includes: and when the service execution quality does not meet the standard, determining the corresponding resource demand index adjustment amount according to the difference between the service execution quality and the standard service execution quality. Correspondingly, according to the resource demand index, allocating the resource of the electronic device to each service to be executed, further comprising: adjusting the resource demand index by referring to the resource demand index adjustment amount; and according to the adjusted resource demand index, slicing the resources of the electronic device and then distributing the slices to each service to be executed.
Specifically, if the resources allocated according to the preset resource demand index cannot guarantee smooth execution of the service to be executed, it indicates that the preset resource demand index is currently an invalid index and cannot be continuously used, in this embodiment, a corresponding resource demand index adjustment amount is further determined according to a difference between the service execution quality that does not reach the standard and the standard service execution quality, and then, on the basis of the preset resource demand index, index adjustment is performed with reference to the resource demand index adjustment amount, so that the adjusted resource demand index can accurately reflect the current actual resource demand of the service to be executed, and then, resource allocation is performed based on the adjusted resource demand index, thereby improving the accuracy and effectiveness of resource allocation.
In some embodiments of this embodiment, after slicing and allocating resources of the electronic device to each service to be executed according to the resource demand indicator, the method further includes: monitoring the service execution state of each service to be executed; when the service to be executed is in the execution completion state, the resource slice released by the service to be executed in the execution completion state is redistributed to the service to be executed in the execution state according to the resource demand index of the service to be executed in the execution state.
Specifically, in practical applications, when a plurality of services to be executed are concurrently processed, the service execution progress is different, that is, when a part of the services to be executed are still in an execution state, a part of the services to be executed are already in an execution completion state, and resources occupied by the executed services to be executed before are released.
Based on the technical scheme of the embodiment of the application, the service attribute of each current service to be executed of the electronic device is obtained; determining resource demand indexes corresponding to the services to be executed based on the service attributes; and according to the resource demand index, distributing the hardware resource and/or the software resource of the electronic device to each service to be executed. Through the implementation of the scheme, the electronic device slices the resources independently, and then allocates the corresponding resources according to different services as required, so that the rationality of resource allocation can be effectively improved, the resource waste and the power consumption of the electronic device are reduced, and the service execution quality is ensured.
The method in fig. 5 is a refined resource allocation method provided in the second embodiment of the present application, where the resource allocation method includes:
step 501, obtaining service attributes of each service to be executed currently of the electronic device.
Specifically, in this embodiment, the service to be executed currently executed by the electronic apparatus, that is, the service to be executed currently processed by the electronic apparatus and in a connected state, and the service attribute is used to represent a service characteristic, and may include a service type, an application providing the service, and the like.
Step 502, determining the service priority corresponding to each service to be executed based on the service attribute.
Step 503, determining the corresponding resource demand index according to the service priority.
Specifically, the present embodiment may preset a mapping relationship between a service attribute and a service priority, and then query the preset mapping relationship through the service attribute of each service to be executed in practical application, that is, determine the corresponding service priority.
Step 504, dividing resources of the electronic device into different slice channels, and dividing different slice dimensions for each slice channel.
Specifically, in this embodiment, for the slicing channel, slices at the Modem end, slices at the transceiver end, slices at the radio frequency end, and slices at the antenna end may be refined; for the slice dimension, the dimension can be refined to a plurality of dimensions such as modulation bandwidth, modulation mode, communication bandwidth, RB configuration and the like.
And 505, determining the corresponding allocable resources according to the current operation performance index of the electronic device.
Step 506, according to the resource requirement index, allocating allocable resources of the slice channel and the slice dimension corresponding to the electronic device to each service to be executed.
Specifically, in this embodiment, before the resource of the electronic device is allocated, the current operation performance of the electronic device is obtained to sense the current operation condition of the electronic device itself, and then the resource type and/or the resource amount and the like currently available for resource allocation are determined according to the operation performance index, so as to ensure the rationality of resource allocation and achieve the compromise between the operation performance of the electronic device and the service execution quality.
And 507, monitoring the service execution state of each service to be executed.
And step 508, when the service to be executed is in the execution completion state, reallocating the resource released by the service to be executed in the execution completion state to the service to be executed in the execution state according to the resource requirement index of the service to be executed in the execution state.
Specifically, the present embodiment may refer to the resource requirement index of the to-be-executed service still in the execution state, and further reallocate the resource released by the executed to-be-executed service to the to-be-executed service still in the execution state, so as to improve the resource utilization rate and improve the service execution quality
It should be understood that, the size of the serial number of each step in this embodiment does not mean the execution sequence of the step, and the execution sequence of each step should be determined by its function and inherent logic, and should not be limited uniquely to the implementation process of the embodiment of the present application.
The embodiment of the application discloses a resource allocation method, which comprises the steps of obtaining the service attribute of each current service to be executed of an electronic device; determining resource demand indexes corresponding to the services to be executed based on the service attributes; and according to the resource demand index, slicing hardware resources and/or software resources of the electronic device and then distributing the sliced hardware resources and/or software resources to each service to be executed. By implementing the scheme, the electronic device slices the resources autonomously, and allocates the corresponding resources according to different services, so that the rationality of resource allocation can be effectively improved, the resource waste and power consumption of the electronic device are reduced, and the service execution quality is ensured; in addition, the system resources are further refined to a specific slicing dimension, and the method is different from a resource slicing mode of a single dimension, so that more fine power consumption optimization and network optimization can be realized.
Fig. 6 is a resource allocation apparatus according to a third embodiment of the present application. The resource allocation apparatus can be used to implement the resource allocation method in the foregoing embodiments. As shown in fig. 6, the resource allocation apparatus mainly includes:
an obtaining module 601, configured to obtain a service attribute of each current service to be executed of the electronic device;
a determining module 602, configured to determine a resource requirement indicator corresponding to each service to be executed based on the service attribute;
the allocating module 603 is configured to slice resources of the electronic device and allocate the sliced resources to each service to be executed according to the resource demand index; wherein the resources include hardware resources and/or software resources.
In some embodiments of this embodiment, the determining module 602 is specifically configured to: determining service priority corresponding to each service to be executed based on the service attributes; and determining a corresponding resource demand index according to the service priority.
In some embodiments of this embodiment, the allocating module 603 is specifically configured to: dividing resources of the electronic device into different slicing channels, and dividing different slicing dimensions for each slicing channel; and distributing the resources of the electronic device corresponding to the slicing channel and the slicing dimension to each service to be executed according to the resource demand index.
In other embodiments of this embodiment, the allocating module 603 is specifically configured to: acquiring a current operation performance index of the electronic device; determining corresponding distributable resource attributes according to the operation performance indexes; and according to the resource demand index, distributing the electronic device to each service to be executed after corresponding to the resource slice with the resource attribute capable of being distributed.
In some embodiments of this embodiment, the resource allocation apparatus of this embodiment further includes: the comparison module is used for acquiring the service execution quality of the service to be executed in a historical time period before slicing the resources of the electronic device and distributing the sliced resources to each service to be executed according to the resource demand indexes; and comparing the service execution quality with the standard service execution quality. Correspondingly, the allocating module 603 is specifically configured to: and when the service execution quality reaches the standard, slicing the resources of the electronic device and then distributing the slices to each service to be executed according to the resource demand indexes.
Further, in some implementations of the present embodiment, the determining module 602 is further configured to: and after the service execution quality is compared with the standard service execution quality, when the service execution quality does not meet the standard, determining the corresponding resource demand index adjustment amount according to the difference between the service execution quality and the standard service execution quality. Correspondingly, the allocating module 603 is specifically configured to: adjusting the resource demand index by referring to the resource demand index adjustment amount; and according to the adjusted resource demand index, slicing the resources of the electronic device and then distributing the slices to each service to be executed.
In some embodiments of this embodiment, the resource allocation apparatus of this embodiment further includes: and the monitoring module is used for monitoring the service execution state of each service to be executed after the resources of the electronic device are sliced and distributed to each service to be executed according to the resource demand indexes. Correspondingly, the allocating module 603 is further configured to: when the service to be executed is in the execution completion state, the resource slice released by the service to be executed in the execution completion state is redistributed to the service to be executed in the execution state according to the resource demand index of the service to be executed in the execution state.
It should be noted that, the resource allocation methods in the first and second embodiments can be implemented based on the resource allocation apparatus provided in this embodiment, and it can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working process of the resource allocation apparatus described in this embodiment may refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
According to the resource allocation device provided by the embodiment, the service attribute of each current service to be executed of the electronic device is acquired; determining resource demand indexes corresponding to the services to be executed based on the service attributes; and according to the resource demand index, slicing hardware resources and/or software resources of the electronic device and then distributing the sliced hardware resources and/or software resources to each service to be executed. Through the implementation of the scheme, the electronic device slices the resources independently, and then allocates the corresponding resources according to different services as required, so that the rationality of resource allocation can be effectively improved, the resource waste and the power consumption of the electronic device are reduced, and the service execution quality is ensured.
Referring to fig. 7, fig. 7 is an electronic device according to a fourth embodiment of the present disclosure. The electronic device can be used for implementing the resource allocation method in the foregoing embodiments. As shown in fig. 7, the electronic device mainly includes:
a memory 701, a processor 702, a bus 703 and a computer program stored on the memory 701 and executable on the processor 702, the memory 701 and the processor 702 being connected by the bus 703. The processor 702, when executing the computer program, implements the resource allocation method in the foregoing embodiments. Wherein the number of processors may be one or more.
The Memory 701 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 701 is used for storing executable program code, and the processor 702 is coupled with the memory 701.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 7.
The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the resource allocation method in the foregoing embodiments. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the resource allocation method, apparatus and computer-readable storage medium provided by the present application, those skilled in the art will recognize that there are variations in the embodiments and applications of the concept of the present application, and therefore the present disclosure should not be construed as limiting the present application.

Claims (10)

1. A method for resource allocation, comprising:
acquiring service attributes of each current service to be executed of the electronic device;
determining a resource demand index corresponding to each service to be executed based on the service attribute;
according to the resource demand index, slicing the resources of the electronic device and then distributing the slices to the services to be executed; wherein the resources comprise hardware resources and/or software resources.
2. The method according to claim 1, wherein the determining the resource requirement indicator corresponding to each service to be executed based on the service attribute comprises:
determining the service priority corresponding to each service to be executed based on the service attribute;
and determining a corresponding resource demand index according to the service priority.
3. The method of claim 1, wherein the slicing and allocating the resources of the electronic device to the services to be executed according to the resource requirement indicator comprises:
dividing resources of the electronic device into different slice channels, and dividing different slice dimensions for each slice channel;
and distributing the resources of the slice channels and the slice dimensions corresponding to the electronic device to the services to be executed according to the resource demand indexes.
4. The method of claim 1, wherein the slicing and allocating the resources of the electronic device to the services to be executed according to the resource requirement indicator comprises:
acquiring a current operation performance index of the electronic device;
determining corresponding distributable resource attributes according to the operation performance indexes;
and according to the resource demand index, distributing the resource slices of the electronic device corresponding to the distributable resource attributes to the to-be-executed services.
5. The method according to claim 1, wherein the slicing and allocating the resources of the electronic device to the services to be executed according to the resource requirement index further comprises:
acquiring the service execution quality of the service to be executed in a historical time period;
comparing the service execution quality with a standard service execution quality;
and when the service execution quality reaches the standard, executing the step of slicing and then distributing the resources of the electronic device to each service to be executed according to the resource demand index.
6. The method of claim 5, wherein after comparing the service performance quality with a standard service performance quality, the method further comprises:
when the service execution quality does not meet the standard, determining a corresponding resource demand index adjustment amount according to the difference between the service execution quality and the standard service execution quality;
the slicing and allocating the resources of the electronic device to the to-be-executed services according to the resource demand indicators further includes:
adjusting the resource demand indicator with reference to the resource demand indicator adjustment amount;
and slicing the resources of the electronic device and distributing the slices to the services to be executed according to the adjusted resource demand indexes.
7. The method according to any one of claims 1 to 6, wherein the slicing and allocating the resources of the electronic device to the services to be executed according to the resource requirement index further comprises:
monitoring the service execution state of each service to be executed;
when the service to be executed is in the execution completion state, the resource released by the service to be executed in the execution completion state is sliced and then redistributed to the service to be executed in the execution state according to the resource demand index of the service to be executed in the execution state.
8. A resource allocation apparatus, comprising:
the acquisition module is used for acquiring the service attribute of each current service to be executed of the electronic device;
the determining module is used for determining the resource demand index corresponding to each service to be executed based on the service attribute;
the allocation module is used for slicing the resources of the electronic device and allocating the sliced resources to the services to be executed according to the resource demand indexes; wherein the resources comprise hardware resources and/or software resources.
9. An electronic device, comprising: a memory, a processor, and a bus;
the bus is used for realizing connection communication between the memory and the processor;
the processor is configured to execute a computer program stored on the memory;
the processor, when executing the computer program, performs the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011318820.7A 2020-11-23 2020-11-23 Resource allocation method, device and computer readable storage medium Withdrawn CN112308457A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011318820.7A CN112308457A (en) 2020-11-23 2020-11-23 Resource allocation method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011318820.7A CN112308457A (en) 2020-11-23 2020-11-23 Resource allocation method, device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112308457A true CN112308457A (en) 2021-02-02

Family

ID=74335176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011318820.7A Withdrawn CN112308457A (en) 2020-11-23 2020-11-23 Resource allocation method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112308457A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111083A (en) * 2021-03-31 2021-07-13 北京沃东天骏信息技术有限公司 Method, device, equipment, storage medium and program product for data query

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792888A (en) * 2017-01-18 2017-05-31 北京邮电大学 A kind of method for wireless communication networking and device based on information Perception
CN108141470A (en) * 2015-09-23 2018-06-08 华为技术有限公司 To the method and system of Internet service provider's distribution Internet resources
CN111107450A (en) * 2018-10-26 2020-05-05 中兴通讯股份有限公司 Method and device for realizing OLT slicing
CN111338779A (en) * 2020-02-27 2020-06-26 深圳华锐金融技术股份有限公司 Resource allocation method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108141470A (en) * 2015-09-23 2018-06-08 华为技术有限公司 To the method and system of Internet service provider's distribution Internet resources
CN106792888A (en) * 2017-01-18 2017-05-31 北京邮电大学 A kind of method for wireless communication networking and device based on information Perception
CN111107450A (en) * 2018-10-26 2020-05-05 中兴通讯股份有限公司 Method and device for realizing OLT slicing
CN111338779A (en) * 2020-02-27 2020-06-26 深圳华锐金融技术股份有限公司 Resource allocation method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113111083A (en) * 2021-03-31 2021-07-13 北京沃东天骏信息技术有限公司 Method, device, equipment, storage medium and program product for data query

Similar Documents

Publication Publication Date Title
EP3609161B1 (en) Network slice creating method and apparatus, and communication system
US20190230004A1 (en) Network slice management method and management unit
US9652150B2 (en) Global memory sharing method and apparatus, and communications system
CN109375985B (en) Dynamic memory management method and device
US10652360B2 (en) Access scheduling method and apparatus for terminal, and computer storage medium
EP2822236A1 (en) Network bandwidth distribution method and terminal
US10924966B2 (en) Management method, management unit, and system
EP2725862A1 (en) Resource allocation method and resource management platform
US10993127B2 (en) Network slice instance management method, apparatus, and system
EP3509372A1 (en) Method, device and system for scheduling logical channel
CN105791254B (en) Network request processing method and device and terminal
US20200233712A1 (en) Data Processing Method, Apparatus, Storage Medium, Processor, and System
CN110661654B (en) Network bandwidth resource allocation method, device, equipment and readable storage medium
EP4161143A1 (en) Network slice allocation method, terminal, and storage medium
CN110234151A (en) A kind of terminal access method and device
CN110475292B (en) Communication method and device
CN111078404A (en) Computing resource determination method and device, electronic equipment and medium
US20230388996A1 (en) Systems and methods for application aware slicing in 5g layer 2 and layer 1 using fine grain scheduling
CN111399977A (en) Virtual machine migration method, device, equipment and medium
CN112308457A (en) Resource allocation method, device and computer readable storage medium
US10028285B2 (en) Method, device and terminal for allocating network services to data channels
WO2020083364A1 (en) 5g communication method, system and device, and storage medium
CN112422251B (en) Data transmission method and device, terminal and storage medium
WO2019095705A1 (en) Inter-cell interference coordination method and network device
WO2019105165A1 (en) Method and apparatus for allocating resources, and storage medium

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210202

WW01 Invention patent application withdrawn after publication