CN115344377A - Resource allocation method, resource allocation device and storage medium - Google Patents

Resource allocation method, resource allocation device and storage medium Download PDF

Info

Publication number
CN115344377A
CN115344377A CN202110528653.7A CN202110528653A CN115344377A CN 115344377 A CN115344377 A CN 115344377A CN 202110528653 A CN202110528653 A CN 202110528653A CN 115344377 A CN115344377 A CN 115344377A
Authority
CN
China
Prior art keywords
cloud
resource
hardware
hardware resources
requirement
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.)
Pending
Application number
CN202110528653.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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110528653.7A priority Critical patent/CN115344377A/en
Publication of CN115344377A publication Critical patent/CN115344377A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to a resource allocation method, a resource allocation apparatus, and a storage medium. The resource allocation method is applied to the cloud server and comprises the following steps: receiving a hardware resource use requirement sent by a cloud terminal, wherein the hardware resource use requirement is sent when the cloud terminal responds to the change of the hardware resource use requirement; determining cloud hardware resources matched with the hardware resource use requirements; and configuring the determined cloud hardware resources to the cloud terminal. According to the cloud terminal hardware resource optimizing method and device, the cloud server determines the cloud hardware resources matched with the hardware resource using requirements based on the hardware resource using requirements sent when the cloud terminal hardware resource using requirements change, the determined cloud hardware resources are configured for the cloud terminal, the hardware resources are dynamically opened up or upgraded for the cloud terminal, software of the hardware resources is achieved, the hardware resources of the cloud terminal are reasonably and effectively configured, and the cloud terminal hardware resources can be optimized and upgraded without replacing equipment.

Description

Resource allocation method, resource allocation device and storage medium
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a resource allocation method, a resource allocation apparatus, and a storage medium.
Background
With the rapid development of scientific technology, terminal technology makes great progress, mobile terminals also appear in different forms, and cloud terminals are brought along with the rapid development. The cloud terminal is light in size and tends to be light, thin and transparent in shape.
When the cloud terminal is used, the cloud terminal does not perform calculation and storage, relatively heavy tasks such as calculation, storage and control are placed at the cloud end for processing, a system and data displayed by the cloud terminal are determined through the cloud end, and the cloud terminal only performs connection and display functions. After the cloud terminal is connected with the cloud server through a protocol, the same using effect as that of a common terminal can be achieved, and various requirements of users on office work, life, entertainment and the like are met.
With the development of new wireless networks and the updating of technologies, the upgrading of cloud terminal hardware systems and heavy-load computing scenes are more and more, and the cloud terminal migrates more computing power to the cloud.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a resource allocation method, a resource allocation apparatus, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a resource configuration method applied to a cloud server, the resource configuration method including: receiving a hardware resource use requirement sent by a cloud terminal, wherein the hardware resource use requirement is sent when the cloud terminal responds to the change of the hardware resource use requirement; determining cloud hardware resources matched with the hardware resource use requirements; and configuring the determined cloud hardware resources to the cloud terminal.
In one embodiment, the cloud server comprises a plurality of cloud hardware resources with different processing levels; determining cloud hardware resources matched with the hardware resource usage requirements, including: judging whether the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources; if the cloud hardware resources of the current processing level are not matched with the use requirements of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level are matched with the use requirements of the hardware resources; and if the cloud hardware resources of the current processing level are matched with the hardware resource use requirements, taking the cloud hardware resources of the current processing level as the cloud hardware resources matched with the hardware resource use requirements.
In an embodiment, if the cloud hardware resources of the current processing level do not match the hardware resource usage requirement, continuously determining whether the cloud hardware resources of the next processing level match the hardware resource usage requirement, including: if the resource amount of the cloud hardware resources of the current processing level is smaller than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level higher than the current processing level are matched with the hardware resource use requirement or not; and if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the hardware resource use requirement.
In an embodiment, the resource configuration method further includes: and if the resource amount of the cloud hardware resource with the highest processing level is smaller than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resource corresponding to the resource use requirement, and determining the cloud hardware resources with multiple processing levels as the cloud hardware resources matched with the hardware resource use requirement according to the decomposed cloud hardware resources in the sequence from high to low in the processing levels.
In an embodiment, the determining module decomposes the cloud hardware resources corresponding to the resource usage demand in the following manner, and determines, according to the decomposed cloud hardware resources and according to a sequence of processing levels from high to low, cloud hardware resources of multiple processing levels as cloud hardware resources matching the hardware resource usage demand: determining a first hardware resource usage requirement corresponding to a resource type with the most resource occupation in the resource usage requirements, and decomposing the resource usage requirements into a first hardware resource usage requirement and a second hardware resource usage requirement, wherein the second hardware resource usage requirement is other resource usage requirements except the first hardware resource usage requirement in the resource usage requirements; if the resource amount corresponding to the first hardware resource use requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, taking the cloud hardware resource with the highest processing level as the cloud hardware resource matched with the first hardware resource use requirement; and determining the cloud hardware resources matched with the use requirements of the second hardware resources in the cloud hardware resources of other processing levels except the cloud hardware resources with the highest processing level.
In one embodiment, the cloud hardware resources include hardware resources corresponding to a plurality of resource types; the determining module determines the cloud hardware resources matched with the hardware resource use requirements in the following way: determining a resource type corresponding to a cloud hardware resource included in the hardware resource use requirement, and determining a cloud hardware resource corresponding to the resource type in the cloud hardware resource.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource configuration method applied to a cloud terminal, the resource configuration method including: responding to the change of the hardware resource use requirement of the cloud terminal, determining the hardware resource use requirement, and sending the hardware resource use requirement to a cloud server; and configuring based on the cloud hardware resources determined by the cloud server.
In one embodiment, determining resource usage requirements includes: and determining corresponding hardware resources based on the currently running process and/or system setting parameters, and determining the use requirements of the hardware resources matched with the hardware resources.
According to a third aspect of the embodiments of the present disclosure, there is provided a resource configuration device applied to a cloud server, the resource configuration device including: the cloud terminal comprises a receiving module and a processing module, wherein the receiving module is used for receiving a hardware resource use requirement sent by the cloud terminal, and the hardware resource use requirement is sent when the cloud terminal responds to the change of the hardware resource use requirement; the determining module is used for determining the cloud hardware resources matched with the hardware resource use requirements; and the configuration module is used for configuring the determined cloud hardware resources to the cloud terminal.
In one embodiment, the cloud server comprises a plurality of cloud hardware resources with different processing levels; the determining module determines the cloud hardware resources matched with the hardware resource use requirements in the following way: judging whether the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources; when the cloud hardware resources of the current processing level are not matched with the use requirements of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level are matched with the use requirements of the hardware resources; and when the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources, taking the cloud hardware resources of the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources.
In an embodiment, the determining module continues to determine whether the cloud hardware resources of the next processing level match the hardware resource usage requirement when the cloud hardware resources of the current processing level do not match the hardware resource usage requirement in the following manner: if the resource amount of the cloud hardware resources of the current processing level is less than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level higher than the current processing level are matched with the hardware resource use requirement or not; and if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the hardware resource use requirement.
In an embodiment, the determining module is further configured to: and if the resource amount of the cloud hardware resources with the highest processing level is smaller than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resources corresponding to the resource use requirement, and determining the cloud hardware resources with multiple processing levels as the cloud hardware resources matched with the hardware resource use requirement according to the decomposed cloud hardware resources in the sequence from high to low in the processing levels.
In an embodiment, the determining module decomposes the cloud hardware resources corresponding to the resource usage requirement in the following manner, and determines, according to the decomposed cloud hardware resources and according to a sequence of processing levels from high to low, cloud hardware resources of multiple processing levels as the cloud hardware resources matching the hardware resource usage requirement: determining a first hardware resource usage requirement corresponding to a resource type with the most resource occupation in the resource usage requirements, and decomposing the resource usage requirements into a first hardware resource usage requirement and a second hardware resource usage requirement, wherein the second hardware resource usage requirement is other resource usage requirements except the first hardware resource usage requirement in the resource usage requirements; if the resource amount corresponding to the first hardware resource use requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, taking the cloud hardware resource with the highest processing level as the cloud hardware resource matched with the first hardware resource use requirement; and determining the cloud hardware resources matched with the use requirements of the second hardware resources in the cloud hardware resources of other processing levels except the cloud hardware resources with the highest processing level.
In an embodiment, the hardware resource usage requirements include hardware resource usage requirements of multiple resource types, and the determining module determines the cloud hardware resources matching the hardware resource usage requirements in the following manner: determining the resource type included in the hardware resource use requirement, and determining the cloud hardware resource corresponding to the resource type based on the resource type.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a resource configuration apparatus applied to a cloud terminal, the resource configuration apparatus including: the determining module is used for responding to the change of the hardware resource using requirement of the cloud terminal and determining the hardware resource using requirement; the sending module is used for sending the use requirement of the hardware resource to a cloud server; and the configuration module is used for configuring based on the cloud hardware resources determined by the cloud server.
In one embodiment, the determining module determines the resource usage requirement by: and determining corresponding hardware resources based on the currently running process and/or system setting parameters, and determining the use requirements of the hardware resources matched with the hardware resources.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a resource configuration apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: performing the resource configuration method of any one of the preceding claims.
According to a sixth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the resource configuration method of any one of the preceding claims.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the cloud hardware resources matched with the hardware resource use requirements are determined by the cloud server based on the hardware resource use requirements sent when the cloud terminal hardware resource use requirements change, the determined cloud hardware resources are configured for the cloud terminal, the cloud server dynamically opens up or upgrades the hardware resources for the cloud terminal, the hardware resources are software-based, the hardware resources of the cloud terminal are reasonably and effectively configured, and the hardware resources of the cloud terminal can be optimized and upgraded without replacing equipment.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram illustrating an architecture of a cloud terminal and a cloud server according to an exemplary embodiment of the disclosure.
Fig. 2 is a flowchart illustrating a resource configuration method according to an exemplary embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating a method for determining cloud hardware resources matching hardware resource usage requirements, according to an exemplary embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating a method for determining cloud hardware resources matching hardware resource usage requirements according to yet another exemplary embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating a method for decomposing cloud hardware resources corresponding to resource usage requirements according to another exemplary embodiment of the disclosure.
Fig. 6 is a flow chart illustrating a resource configuration method according to yet another example of the present disclosure.
Fig. 7 is a flow chart illustrating a resource configuration method according to yet another example of the present disclosure.
Fig. 8 is a block diagram illustrating a resource configuration apparatus according to an exemplary embodiment of the present disclosure.
Fig. 9 is a block diagram illustrating a resource configuration apparatus according to yet another exemplary embodiment of the present disclosure.
Fig. 10 is a block diagram illustrating an apparatus for resource configuration according to an example embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the rapid development of science and technology, a brand new terminal form, namely a cloud terminal, is brought forth. The cloud terminal is light in size and tends to be light, thin and transparent in shape. In use, the cloud terminal does not perform calculation and storage, relatively heavy calculation tasks such as calculation, storage and control are placed on the cloud server for processing, a system and data displayed by the cloud terminal are determined through the cloud end, and the cloud terminal only plays roles in connection and display. After the cloud terminal is connected with the cloud server through the protocol, the same using effect as that of a common terminal can be achieved, and various requirements of users for office work, life, entertainment and the like are met.
The upgrading of a cloud terminal hardware system and the heavy load computing scene are more and more, the cloud terminal transfers more computing capacity to the cloud end, and for the same cloud terminal, the hardware resources configured for the cloud terminal by the cloud end server are fixed, namely the hardware resources of the cloud terminal are limited. For example, the cloud server is configured for the cloud terminal, and the like, and cannot meet the requirements of the processing capability and the storage space when the requirements of the cloud terminal change.
Therefore, the cloud server determines cloud hardware resources matched with the requested hardware resource use requirements based on the hardware resource use requirements requested by the cloud terminal, and configures the determined cloud hardware resources to the cloud terminal.
Fig. 1 is a schematic diagram illustrating an architecture of a cloud terminal and a cloud server according to an exemplary embodiment of the present disclosure, and referring to fig. 1, the cloud terminal establishes communication with the cloud server through network communication or a mobile communication network, and cloud hardware resources of the cloud server include control, calculation, display, artificial intelligence, graphics processing, a security kernel, and the like. The cloud terminal controller determines hardware resources of the cloud terminal controller, wherein the hardware resources comprise hardware modules of calculation, control, display, power management, encryption, perception, audio, image, display, communication and the like, and communication protocols and capabilities, processing capabilities and the like which can be supported by the modules. The cloud server establishes communication with the cloud terminal, and performs communication and data exchange such as normal transmission, processing and calculation.
The controller can count the hardware capability of the controller, including hardware modules of calculation, control, display, power management, encryption, perception, audio, image, display or communication and the like, communication protocols and capabilities supported by the modules, processing capability and the like; the cloud terminal counts the hardware information into an information table and sends the information table to the cloud end, and the information table passes through a middle network transmission layer; important cloud resources include control, calculation, processing, storage, dynamic loading, sensing, communication and other resources, and communication and data exchange such as normal transmission, processing, calculation and the like can be carried out after communication is established between the control, calculation, processing, storage, dynamic loading, sensing, communication and the like.
Fig. 2 is a flowchart illustrating a resource allocation method according to an exemplary embodiment of the disclosure, where the resource allocation method is applied to a cloud server, and as shown in fig. 2, the resource allocation method includes the following steps.
In step S101, a hardware resource usage requirement sent by the cloud terminal is received, where the hardware resource usage requirement is sent when the cloud terminal changes in response to the hardware resource usage requirement.
In step S102, cloud hardware resources matching the hardware resource usage requirement are determined.
In step S103, the determined cloud hardware resources are configured to the cloud terminal.
In the embodiment of the disclosure, the cloud terminal establishes communication with the cloud server through network communication or a mobile communication network, and when the use demand of the cloud terminal changes, the cloud server is required to configure hardware resources for the cloud terminal, where the hardware resources include various computing resources, memory or storage resources, and the like. The change of the use requirement of the cloud terminal may be a requirement that the hardware resource is configured and expanded when the use requirement is increased, or a requirement that the hardware resource is configured and reduced when the use requirement is decreased. The cloud server receives the hardware resource use requirements sent by the cloud terminal, the cloud hardware resources matched with the hardware resource use requirements are determined based on the hardware resource use requirements, and the cloud hardware resources determined by the cloud server can meet the hardware resource use requirements of the cloud terminal. And the cloud server configures the determined cloud hardware resources matched with the use requirements of the cloud terminal hardware resources to the cloud terminal so that the cloud terminal can use the cloud hardware resources.
According to the embodiment of the disclosure, the cloud end hardware resources matched with the hardware resource use requirements are determined by the cloud end server based on the hardware resource use requirements sent when the cloud end hardware resource use requirements change, the determined cloud end hardware resources are configured for the cloud terminal, the cloud end server dynamically opens up or upgrades the hardware resources for the cloud terminal, the hardware resources are software-based, the hardware resources of the cloud terminal are reasonably and effectively configured, and the cloud terminal hardware resources can be optimized and upgraded without replacing equipment.
In one embodiment, the cloud server includes a plurality of cloud hardware resources of different processing levels. Fig. 3 is a flowchart illustrating a method for determining cloud hardware resources matching a hardware resource usage requirement according to an exemplary embodiment of the disclosure, and as shown in fig. 3, the method for determining cloud hardware resources matching the hardware resource usage requirement includes the following steps.
In step S201, it is determined whether the cloud hardware resources of the current processing level match the hardware resource usage requirement.
In step S202, if the cloud hardware resources of the current processing level do not match the hardware resource usage requirement, it is continuously determined whether the cloud hardware resources of the next processing level match the hardware resource usage requirement.
In step S203, if the cloud hardware resources of the current processing level match the hardware resource usage requirement, the cloud hardware resources of the current processing level are used as the cloud hardware resources matching the hardware resource usage requirement.
In the embodiment of the present disclosure, the cloud server includes a plurality of cloud hardware resources with different processing levels, that is, the cloud hardware resources in the cloud server have different processing levels, for example, the cloud hardware resources correspond to different communication capabilities, calculation capabilities, image display capabilities, and the like. The cloud server receives the hardware resource use requirements sent by the cloud terminal, and when the cloud hardware resources matched with the hardware resource use requirements are determined based on the hardware resource use requirements, whether the cloud hardware resources of the current processing level are matched with the hardware resource use requirements or not is judged, namely whether the hardware resource use requirements of the cloud terminal can be met or not. If the cloud hardware resources of the current processing level are not matched with the hardware resource use requirements sent by the cloud terminal, that is, the cloud hardware resources of the current processing level meet the hardware resource use requirements of the cloud terminal, the cloud hardware resources of the next processing level are continuously judged, and whether the cloud hardware resources of the next processing level are matched with the hardware resource use requirements or not is judged. Whether the cloud hardware resources of the next processing level are matched with the hardware resource usage requirement is the same as the foregoing process, and details are not repeated here.
In the embodiment of the present disclosure, the next processing level of the cloud hardware resource of the current processing level may be a level that is stronger than the current processing capability and has a higher processing level. The method includes the steps that if the cloud hardware resources with the higher processing level of the next level are not matched with the hardware resource use requirements, whether the cloud hardware resources with the higher processing level of the next level are matched with the hardware resource use requirements or not is continuously judged until the cloud hardware resources with the current judging processing level are matched with the hardware resource use requirements, and the cloud hardware resources with the current processing level are used as the cloud hardware resources matched with the hardware resource use requirements. It is to be understood that, in the embodiment of the present disclosure, the processing level adjacent to the current processing level cloud hardware resource may also be a level that is weaker than the current processing capability and lower than the current processing level. If the cloud hardware resources of the current processing level are higher than the hardware resource using requirements sent by the cloud terminal, that is, the hardware resource using requirements of the cloud terminal are low, unnecessary waste may be caused by the cloud terminal being configured based on the current cloud hardware resources, and whether the adjacent cloud hardware resources of the low processing level match the hardware resource using requirements is judged. If the adjacent cloud hardware resources with the lower processing level are not matched with the hardware resource use requirements, whether the cloud hardware resources with the lower processing level adjacent to the adjacent cloud hardware resources with the lower processing level are matched with the hardware resource use requirements or not is continuously judged until the cloud hardware resources with the current processing level judged are matched with the hardware resource use requirements, and the cloud hardware resources with the current processing level are used as the cloud hardware resources matched with the hardware resource use requirements so as to reduce resource waste.
It can be understood that the cloud server may include a plurality of cloud control centers with different processing levels corresponding to the cloud hardware resources with different processing levels. In an embodiment, when the cloud terminal receives a prompt indicating that an application running prompt needs to be upgraded in a set interface for adjusting cloud hardware resources or an application running display interface of the cloud terminal, the use requirement of the hardware resources of the cloud terminal is determined. For example, the cloud terminal counts the hardware resource usage requirements of different classes included in the hardware resource usage requirements, n resource usage requirements x1, \8230, xn of different classes are drawn into a table, and Li (i =0, 1, 2 \8230m) corresponding to x1 and the upgraded Lj (j =0, 1, 2 \8230m) of the resource usage requirements needing upgrading are sent to the cloud server.
The cloud server receives the hardware resource use requirements sent by the cloud terminal, and judges whether the cloud hardware resources of the current processing level are matched with the hardware resource use requirements or not when the cloud hardware resources matched with the hardware resource use requirements are determined based on the hardware resource use requirements. For example, hardware resources controlled by the lowest-level cloud control center in the cloud server can meet the use requirements of the hardware resources of the cloud terminal, the lowest-level cloud control center takes the cloud hardware resources of the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources, and the determined cloud hardware resources are configured to the cloud terminal. If the hardware resources controlled by the lowest-level cloud control center cannot meet the hardware resource use requirements of the cloud terminal, the authority of the cloud control center is increased by one level, and whether the increased cloud control center meets the hardware resource use requirements of the cloud terminal or not is judged in the same way. If the hardware resources controlled by the cloud control center with the improved level can meet the use requirements of the hardware resources of the cloud terminal, the current cloud control center takes the cloud hardware resources with the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources, and configures the determined cloud hardware resources to the cloud terminal. If the hardware resources controlled by the cloud control center after the grade is improved still do not meet the hardware resource use requirements of the cloud terminal, the authority of the cloud control center is continuously improved, whether the cloud control center of the improved grade meets the hardware resource use requirements of the cloud terminal or not is judged, and the hardware resources controlled by the cloud control center after the grade is improved can meet the hardware resource use requirements of the cloud terminal. Or the current time is up to the highest-level cloud control center in the cloud server.
According to the embodiment of the disclosure, the cloud server sends the hardware resource use requirements when the hardware resource use requirements of the cloud terminal change, the cloud server comprises a plurality of cloud hardware resources with different processing levels, the cloud hardware resources with different processing levels are sequentially judged, the cloud hardware resources matched with the hardware resource use requirements are determined, the determined cloud hardware resources are configured for the cloud terminal, the hardware resources are dynamically opened up or upgraded for the cloud terminal hardware resources, and therefore reasonable and effective configuration of the cloud hardware resources is achieved.
In an embodiment, if the amount of resources included in the cloud hardware resources of the current processing level is less than the amount of resources corresponding to the hardware resource usage requirement, it is continuously determined whether the cloud hardware resources of the next processing level, whose processing level is higher than the current processing level, match the hardware resource usage requirement.
And if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the use requirement of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the use requirement of the hardware resources.
In this embodiment of the disclosure, the cloud server includes a plurality of cloud hardware resources with different processing levels, that is, the cloud hardware resources in the cloud server have different processing levels. For example, the cloud hardware resources correspond to hardware resources with different communication capabilities, computing capabilities, image display capabilities, and the like. The cloud server receives the hardware resource use requirement sent by the cloud terminal, and when the cloud hardware resource matched with the hardware resource use requirement is determined based on the hardware resource use requirement, whether the cloud hardware resource of the current processing level is matched with the hardware resource use requirement or not is judged, namely whether the hardware resource use requirement of the cloud terminal can be met or not is judged. And if the resource amount of the cloud hardware resources of the current processing level is less than the resource amount corresponding to the use requirement of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level with the processing level higher than the current processing level are matched with the use requirement of the hardware resources. And if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the use requirement of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the use requirement of the hardware resources. Whether the cloud hardware resources of the next processing level are matched with the hardware resource usage requirement is the same as the foregoing process, and details are not repeated here.
According to the embodiment of the disclosure, the cloud hardware resources matched with the hardware resource use requirements are determined by the cloud server based on the hardware resource use requirements which are transmitted to be larger or smaller when the cloud terminal hardware resource use requirements change, and the determined cloud hardware resources are configured to the cloud terminal, so that the hardware resources are dynamically opened up or upgraded for the cloud terminal hardware resources, and the cloud hardware resources are reasonably and effectively configured.
Fig. 4 is a flowchart illustrating a method for determining cloud hardware resources matching a hardware resource usage requirement according to another exemplary embodiment of the disclosure, and as shown in fig. 4, the method for determining cloud hardware resources matching the hardware resource usage requirement includes the following steps.
In step S301, it is determined whether the cloud hardware resources of the current processing level match the hardware resource usage requirement.
In step S302, if the cloud hardware resources of the current processing level do not match the hardware resource usage requirement, the cloud hardware resources of the next processing level are continuously determined whether to match the hardware resource usage requirement.
In step S303, if the cloud hardware resources of the current processing level match the hardware resource usage requirement, the cloud hardware resources of the current processing level are used as the cloud hardware resources matching the hardware resource usage requirement.
In step S304, if the resource amount included in the cloud hardware resource with the highest processing level is smaller than the resource amount corresponding to the hardware resource usage requirement, the cloud hardware resource corresponding to the resource usage requirement is decomposed, and the cloud hardware resources with multiple processing levels are determined as the cloud hardware resources matching the hardware resource usage requirement according to the decomposed cloud hardware resources in the order from high to low processing levels.
In this embodiment of the disclosure, the cloud server includes a plurality of cloud hardware resources with different processing levels, that is, the cloud hardware resources in the cloud server have different processing levels. For example, the cloud hardware resources correspond to hardware resources with different communication capabilities, computing capabilities, image display capabilities, and the like. The cloud server receives the hardware resource use requirements sent by the cloud terminal, and when the cloud hardware resources matched with the hardware resource use requirements are determined based on the hardware resource use requirements, whether the cloud hardware resources of the current processing level are matched with the hardware resource use requirements or not is judged, namely whether the hardware resource use requirements of the cloud terminal can be met or not. If the cloud hardware resources of the current processing level are not matched with the hardware resource use requirements sent by the cloud terminal, that is, the cloud hardware resources of the current processing level meet the hardware resource use requirements of the cloud terminal, the cloud hardware resources of the next processing level are continuously judged, and whether the cloud hardware resources of the next processing level are matched with the hardware resource use requirements is judged. Whether the cloud hardware resources of the next processing level are matched with the hardware resource usage requirement is the same as the foregoing process, and details are not repeated here.
In this embodiment of the present disclosure, the next processing level of the cloud hardware resource of the current processing level may be a level that is stronger than the current processing capability and has a higher processing level. The cloud hardware resources of the current processing level are used as the cloud hardware resources matched with the hardware resource use requirements until the cloud hardware resources of the current processing level are matched with the hardware resource use requirements. And if the resource amount of the cloud hardware resource with the highest processing grade is less than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resource corresponding to the hardware resource use requirement of the cloud terminal, namely taking a plurality of cloud hardware resources as the cloud hardware resources matched with the hardware resource use requirement. The processing levels of the cloud hardware resources may be the same or different. The method comprises the steps of decomposing cloud hardware resources corresponding to hardware resource using requirements of the cloud terminal, determining cloud hardware resources of multiple processing levels according to the decomposed cloud hardware resources in the sequence from high to low of the processing levels, and matching the cloud hardware resources of the multiple processing levels to meet the hardware resource using requirements of the cloud terminal. For example, the cloud hardware resources corresponding to the hardware resource use requirements of the cloud terminal are storage spaces with preset numerical values, the storage space corresponding to the cloud hardware resources with the highest processing level is smaller than the storage space with the preset numerical values required by the cloud terminal, the storage space with the preset numerical values is decomposed into a plurality of storage spaces, and the cloud hardware resources with a plurality of processing levels are determined to serve as the cloud hardware resources matching the use requirements of the storage spaces according to the sequence of the processing levels from high to low.
In an embodiment, the cloud server includes a plurality of cloud hardware resources of different processing levels, the cloud hardware resources correspond to the cloud hardware resources of different processing levels, the cloud server may include a plurality of cloud control centers of different processing levels, the cloud server receives the hardware resource usage demands sent by the cloud terminal, and when determining the cloud hardware resources matched with the hardware resource usage demands based on the hardware resource usage demands, the cloud hardware resources of the current processing level are judged whether to match the hardware resource usage demands. For example, hardware resources controlled by the lowest-level cloud control center in the cloud server can meet the use requirements of the hardware resources of the cloud terminal, the lowest-level cloud control center takes the cloud hardware resources of the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources, and the determined cloud hardware resources are configured to the cloud terminal. If the hardware resources controlled by the lowest-level cloud control center cannot meet the hardware resource use requirements of the cloud terminal, the authority of the cloud control center is increased by one level, and whether the increased cloud control center meets the hardware resource use requirements of the cloud terminal or not is judged in the same way. If the hardware resources controlled by the cloud control center with the improved level can meet the hardware resource use requirements of the cloud terminal, the current cloud control center takes the cloud hardware resources with the current processing level as cloud hardware resources matched with the hardware resource use requirements, and the determined cloud hardware resources are configured to the cloud terminal. If the hardware resources controlled by the cloud control center after the grade is improved still do not meet the hardware resource use requirements of the cloud terminal, the authority of the cloud control center is continuously improved, whether the cloud control center of the improved grade meets the hardware resource use requirements of the cloud terminal or not is judged, and the hardware resources controlled by the cloud control center after the grade is improved can meet the hardware resource use requirements of the cloud terminal. If the cloud hardware resources controlled by the cloud control center with the highest processing grade still do not meet the hardware resource use requirements of the cloud terminal, the cloud hardware resources corresponding to the resource use requirements are decomposed, and the cloud hardware resources of multiple processing grades are controlled by the multiple cloud control centers to serve as the cloud hardware resources matched with the hardware resource use requirements according to the sequence from high to low of the cloud control center grades.
According to the embodiment of the disclosure, the cloud server sends the hardware resource use requirements when the hardware resource use requirements of the cloud terminal change, the cloud server comprises a plurality of cloud hardware resources with different processing levels, if the resource amount included by the cloud hardware resource with the highest processing level is still smaller than the resource amount included by the hardware resource use requirements, the cloud hardware resource corresponding to the resource use requirements is decomposed, the cloud hardware resources with the processing levels are determined to be configured for the cloud terminal according to the decomposed cloud hardware resource, the hardware use requirements of the cloud terminal are met, and the cloud hardware resource is reasonably and effectively configured.
Fig. 5 is a flowchart illustrating a method for decomposing cloud hardware resources corresponding to resource usage requirements according to yet another exemplary embodiment of the present disclosure, and as shown in fig. 5, the method for decomposing cloud hardware resources corresponding to resource usage requirements includes the following steps.
In step S401, a first hardware resource usage requirement corresponding to a resource type with the most occupied resource amount in the resource usage requirements is determined, and the resource usage requirements are decomposed into the first hardware resource usage requirement and a second hardware resource usage requirement, where the second hardware resource usage requirement is another resource usage requirement in the resource usage requirements except the first hardware resource usage requirement.
In step S402, if the resource amount corresponding to the first hardware resource usage requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, the cloud hardware resource with the highest processing level is used as the cloud hardware resource matching the first hardware resource usage requirement.
In step S403, the cloud hardware resources that match the usage requirement of the second hardware resources are determined among the cloud hardware resources of the other processing levels except the cloud hardware resource with the highest processing level.
In this embodiment of the disclosure, the cloud server includes a plurality of cloud hardware resources with different processing levels, that is, the cloud hardware resources in the cloud server have different processing levels. For example, the cloud hardware resources correspond to hardware resources with different communication capabilities, computing capabilities, image display capabilities, and the like. The cloud server receives the hardware resource use requirement sent by the cloud terminal, and when the cloud hardware resource matched with the hardware resource use requirement is determined based on the hardware resource use requirement, whether the cloud hardware resource of the current processing level is matched with the hardware resource use requirement or not is judged, namely whether the hardware resource use requirement of the cloud terminal can be met or not is judged. And if the resource amount of the cloud hardware resource with the highest processing level is less than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resource corresponding to the hardware resource use requirement of the cloud terminal, namely taking a plurality of cloud hardware resources as the cloud hardware resources matched with the hardware resource use requirement.
In the embodiment of the present disclosure, a first hardware resource usage requirement corresponding to a resource type with the most occupied resource amount in the resource usage requirements is determined, and a second hardware resource usage requirement is determined, where the second hardware resource usage requirement is another resource usage requirement except for the first hardware resource usage requirement in the resource usage requirements. The resource usage requirements are decomposed into a first hardware resource usage requirement and a second hardware resource usage requirement, and if the resource amount corresponding to the first hardware resource usage requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, the cloud hardware resource with the highest processing level is used as the cloud hardware resource matching the first hardware resource usage requirement. And determining the cloud hardware resources matched with the use requirements of the second hardware resources in the cloud hardware resources of other processing levels except the cloud hardware resources with the highest processing level.
According to the embodiment of the disclosure, in the resource use requirements, a first hardware resource use requirement corresponding to a resource type with the most occupied resource amount is decomposed, a cloud hardware resource corresponding to the first hardware resource use requirement is determined, and a cloud hardware resource matched with a second hardware resource use requirement is determined, so that the hardware use requirements of a cloud terminal are met, and the cloud hardware resource is reasonably and effectively configured.
In an embodiment, the cloud hardware resources include hardware resources corresponding to a plurality of resource types, the resource types corresponding to the cloud hardware resources included in the hardware resource usage requirements are determined, and the cloud hardware resources corresponding to the resource types are determined in the cloud hardware resources.
The cloud server comprises a plurality of cloud hardware resources with different processing levels, namely the cloud hardware resources in the cloud server have different processing levels. The cloud hardware resources include hardware resources corresponding to multiple resource types, and understandably, the hardware resource usage requirements of different resource types, such as processing capability requirements, storage space requirements, communication requirements, and the like of the application processor, are included in the hardware resource usage requirements sent by the cloud terminal. The cloud server receives the hardware resource use requirement sent by the cloud terminal, determines the resource type corresponding to the cloud hardware resource included in the hardware resource use requirement, and determines the cloud hardware resource corresponding to the resource type according to the resource type, so that the cloud hardware resource is reasonably and effectively configured.
Fig. 6 is a flowchart illustrating a resource configuration method according to still another exemplary embodiment of the present disclosure, which is applied to a cloud terminal, and as shown in fig. 6, the resource configuration method includes the following steps.
In step S501, in response to a change in the hardware resource usage requirement of the cloud terminal, the hardware resource usage requirement is determined, and the hardware resource usage requirement is sent to the cloud server.
In step S502, configuration is performed based on the cloud hardware resources determined by the cloud server.
In the embodiment of the disclosure, the hardware resource usage requirement of the cloud terminal changes, and the hardware resource of the cloud terminal is determined, which may be by querying and confirming the hardware resource of the cloud terminal. For example, the controller of the cloud terminal counts hardware resources, and the hardware resources may be hardware modules for computing, controlling, displaying, power managing, encrypting, sensing, audio, image, displaying, or communicating, and communication protocols, communication capabilities, or processing capabilities supported by the hardware modules. The cloud terminal establishes communication with the cloud server through network communication or a mobile communication network, and the cloud server is required to configure hardware resources for the cloud terminal, wherein the hardware resources comprise various computing resources, memory or storage resources and the like. Responding to the change of the hardware resource using requirement of the cloud terminal, sending the hardware resource using requirement to the cloud server by the cloud terminal, receiving the hardware resource using requirement sent by the cloud terminal by the cloud server, and determining the cloud hardware resource capable of meeting the hardware resource using requirement of the cloud terminal based on the hardware resource using requirement. The cloud server configures the determined cloud hardware resources to the cloud terminal through a network, and the cloud terminal configures the cloud hardware resources based on the cloud hardware resources determined by the cloud server, so that the cloud terminal can use the cloud hardware resources.
According to the embodiment of the disclosure, the cloud server determines the cloud hardware resources matched with the requested hardware resource use requirements based on the hardware resource use requirements requested by the cloud terminal, and configures the determined cloud hardware resources to the cloud terminal, and the cloud server dynamically opens up or upgrades the hardware resources for the cloud terminal, so that the hardware resources of the cloud terminal can be reasonably and effectively configured.
Fig. 7 is a flowchart of a resource configuration method according to still another exemplary illustration of the present disclosure, applied to a cloud terminal, and as shown in fig. 7, the resource configuration method includes the following steps.
In step S601, a corresponding hardware resource is determined based on a currently running process and/or based on a system setting parameter, and a hardware resource usage requirement matching the hardware resource is determined.
In step S602, the hardware resource usage requirement is sent to the cloud server.
In step S603, configuration is performed based on the cloud hardware resources determined by the cloud server.
In the embodiment of the disclosure, in response to a change in a hardware resource usage requirement of the cloud terminal, the cloud terminal determines its own hardware resource, which may be by querying and confirming its own hardware resource. For example, the controller of the cloud terminal counts hardware resources, and the hardware resources may be hardware modules for computing, controlling, displaying, power managing, encrypting, sensing, audio, image, displaying, or communicating, and communication protocols, communication capabilities, or processing capabilities supported by the hardware modules.
The cloud terminal may determine the hardware resource of the cloud terminal based on system setting parameters, for example, the cloud terminal system setting parameters include identity information, usage preference, and the like of a user, and determine the hardware resource of the cloud terminal based on the system setting parameters, for example, the hardware resource of the cloud terminal corresponding to a network communication speed requirement, a storage requirement, a general flash memory storage requirement, an image processing capability requirement, and the like.
The cloud terminal can determine the hardware resources of the cloud terminal based on the currently running process, and for the current cloud terminal, the cloud terminal is fixed in the cloud terminal hardware resources configured by the cloud server, and the hardware resources are limited. For example, a user configures parameters such as processing capability and storage space of an application processor ap, which cannot meet the processing capability and storage space of the application processor ap corresponding to the current application program process, and determines the use requirement of the hardware resource based on the current running process.
In an embodiment, the interface for adjusting the cloud hardware resources may be set at the cloud terminal, or the hardware resource usage requirement of the cloud terminal may be determined in the running application display interface. For example, the application processor ap displays the chip model with the processing capability set, whether the storage requirement needs to be expanded or reduced, whether the expansion form is the expansion of the space size, or the upgrading of the storage technology, and the like. For example, a user runs a game application using a cloud terminal, the configured cloud terminal has insufficient computing power, image processing power or display power, and the game application prompts hardware resources required for running a current process.
The cloud terminal sends the hardware resource use requirement to the cloud server, the cloud server receives the hardware resource use requirement sent by the cloud terminal, and cloud hardware resources capable of meeting the hardware resource use requirement of the cloud terminal are determined based on the hardware resource use requirement. The cloud terminal configures the determined cloud hardware resources to the cloud terminal through a network, and the cloud terminal configures the cloud terminal based on the cloud hardware resources determined by the cloud server so that the cloud terminal can use the cloud hardware resources.
According to the embodiment of the disclosure, the cloud server determines the cloud hardware resources matched with the requested hardware resource use requirements based on the hardware resource use requirements requested by the cloud terminal, and configures the determined cloud hardware resources to the cloud terminal, and the cloud server dynamically opens up or upgrades the hardware resources for the cloud terminal, so that the hardware resources of the cloud terminal can be reasonably and effectively configured.
In an embodiment, the cloud terminal receives a current running process prompt and needs to update hardware resource configuration. The cloud terminal may count a plurality of capability options corresponding to the current hardware resource configuration, correspondingly determine a plurality of capability options to be upgraded, respectively determine cloud control center processing levels corresponding to the plurality of current capability options and the cloud control center processing levels corresponding to the capability options to be upgraded, and send the corresponding relationship to the cloud server. The processing levels of the cloud control centers corresponding to the current multiple capability options and the processing levels of the cloud control centers corresponding to the capability options needing to be upgraded can be displayed in a table form. The cloud server comprises a plurality of cloud hardware resources with different processing levels, receives the hardware resource use demands sent by the cloud terminal, and can judge whether the cloud hardware resource use demands are matched or not based on the processing levels of the cloud control center corresponding to a plurality of current capability options when determining the cloud hardware resources matched with the hardware resource use demands based on the hardware resource use demands, so that the processing flow is simple and convenient, and the processing efficiency is improved.
Based on the same conception, the embodiment of the disclosure also provides a resource configuration device.
It is understood that, in order to implement the functions described above, the apparatus provided in the embodiments of the present disclosure includes a hardware structure and/or a software module for performing each function. The disclosed embodiments can be implemented in hardware or a combination of hardware and computer software, in combination with the exemplary elements and algorithm steps disclosed in the disclosed embodiments. Whether a function is performed in hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
Fig. 8 is a block diagram illustrating a resource configuration apparatus according to an exemplary embodiment of the disclosure, where the resource configuration apparatus is applied to a cloud server, and as shown in fig. 8, the resource configuration apparatus 100 includes: a receiving module 101, a determining module 102 and a configuring module 103.
The receiving module 101 is configured to receive a hardware resource usage requirement sent by the cloud terminal, where the hardware resource usage requirement is sent by the cloud terminal when the cloud terminal responds to a change in the hardware resource usage requirement.
The determining module 102 is configured to determine a cloud hardware resource matching the hardware resource usage requirement.
The configuration module 103 is configured to configure the determined cloud hardware resource to the cloud terminal.
In one embodiment, the cloud server comprises a plurality of cloud hardware resources with different processing levels; the determining module 102 determines the cloud hardware resource matching with the hardware resource usage requirement in the following manner: judging whether the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources; when the cloud hardware resources of the current processing level are not matched with the use requirements of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level are matched with the use requirements of the hardware resources; and when the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources, taking the cloud hardware resources of the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources.
In an embodiment, the determining module 102 continues to determine whether the cloud hardware resources of the next processing level match the hardware resource usage requirement when the cloud hardware resources of the current processing level do not match the hardware resource usage requirement in the following manner: if the resource amount of the cloud hardware resources of the current processing level is smaller than the resource amount corresponding to the use requirement of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level with the processing level higher than the current processing level are matched with the use requirement of the hardware resources; and if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the use requirement of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the use requirement of the hardware resources.
In an embodiment, the determining module 102 is further configured to: and if the resource amount of the cloud hardware resource with the highest processing level is smaller than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resource corresponding to the resource use requirement, and determining the cloud hardware resources with multiple processing levels as the cloud hardware resources matched with the hardware resource use requirement according to the sequence of the decomposed cloud hardware resources from high to low in the processing levels.
In an embodiment, the determining module 102 decomposes the cloud hardware resources corresponding to the resource usage requirements in the following manner, and determines, according to the decomposed cloud hardware resources and according to the sequence of the processing levels from high to low, the cloud hardware resources of multiple processing levels as the cloud hardware resources matching the hardware resource usage requirements: determining a first hardware resource usage requirement corresponding to a resource type with the most resource occupation in resource usage requirements, and decomposing the resource usage requirements into the first hardware resource usage requirement and a second hardware resource usage requirement, wherein the second hardware resource usage requirement is other resource usage requirements except the first hardware resource usage requirement in the resource usage requirements; if the resource amount corresponding to the first hardware resource use requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, the cloud hardware resource with the highest processing level is used as the cloud hardware resource matched with the first hardware resource use requirement; and determining the cloud hardware resources matched with the use requirements of the second hardware resources in the cloud hardware resources of other processing levels except the cloud hardware resources with the highest processing level.
In one embodiment, the cloud hardware resources include hardware resources corresponding to a plurality of resource types; the determining module 102 determines the cloud hardware resources matching the hardware resource usage requirement by the following method: determining a resource type corresponding to the cloud hardware resource included in the hardware resource use requirement, and determining the cloud hardware resource corresponding to the resource type in the cloud hardware resource.
Fig. 9 is a block diagram illustrating a resource configuration apparatus according to still another exemplary embodiment of the present disclosure, where the resource configuration apparatus is applied to a cloud terminal, and as shown in fig. 9, the resource configuration apparatus 200 includes: a determination module 201, a sending module 202 and a configuration module 203.
A determining module 201, configured to determine a hardware resource usage requirement in response to a change in the hardware resource usage requirement of the cloud terminal;
the sending module 202 is configured to send the hardware resource usage requirement to the cloud server;
the configuration module 203 is configured to perform configuration based on the cloud hardware resources determined by the cloud server.
In one embodiment, the determining module 201 determines the resource usage requirement as follows: and determining corresponding hardware resources based on the currently running process and/or system setting parameters, and determining the use requirements of the hardware resources matched with the hardware resources.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 10 is a block diagram illustrating an apparatus 300 for resource configuration according to an example embodiment of the present disclosure. For example, the apparatus 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 300 may include one or more of the following components: a processing component 303, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 303 generally controls the overall operation of the device 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 303 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 303 may include one or more modules that facilitate interaction between the processing component 303 and other components. For example, the processing component 303 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 303.
The memory 304 is configured to store various types of data to support operations at the apparatus 300. Examples of such data include instructions for any application or method operating on device 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile and non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 306 provide power to the various components of device 300. The power components 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 300.
The multimedia component 308 includes a screen that provides an output interface between the device 300 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, audio component 310 includes a Microphone (MIC) configured to receive external audio signals when apparatus 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 303 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 314 includes one or more sensors for providing various aspects of state assessment for device 300. For example, sensor assembly 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of device 300, the change in position of device 300 or a component of device 300, the presence or absence of user contact with device 300, the orientation or acceleration/deceleration of device 300, and the change in temperature of device 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The device 300 may access a wireless network based on a communication standard, such as WiFi,3G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 304 comprising instructions, executable by the processor 320 of the apparatus 300 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It is understood that "a plurality" in this disclosure means two or more, and other words are analogous. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. The singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will be further understood that the terms "first," "second," and the like, are used to describe various information and should not be limited by these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the terms "first," "second," and the like are fully interchangeable. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It is further understood that, unless otherwise specified, "connected" includes direct connections between the two without other elements and indirect connections between the two with other elements.
It will be further appreciated that while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in serial order, or that all illustrated operations be performed, to achieve desirable results. In certain environments, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (18)

1. A resource configuration method is applied to a cloud server, and comprises the following steps:
receiving a hardware resource use requirement sent by a cloud terminal, wherein the hardware resource use requirement is sent when the cloud terminal responds to the change of the hardware resource use requirement;
determining cloud hardware resources matched with the hardware resource use requirements;
and configuring the determined cloud hardware resources to the cloud terminal.
2. The resource allocation method according to claim 1, wherein the cloud server includes cloud hardware resources of a plurality of different processing levels;
determining cloud hardware resources matched with the hardware resource usage requirements, including:
judging whether the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources;
if the cloud hardware resources of the current processing level are not matched with the use requirements of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level are matched with the use requirements of the hardware resources;
and if the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources, taking the cloud hardware resources of the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources.
3. The resource allocation method according to claim 2, wherein if the cloud hardware resources of the current processing level do not match the hardware resource usage requirement, continuing to determine whether the cloud hardware resources of the next processing level match the hardware resource usage requirement, includes:
if the resource amount of the cloud hardware resources of the current processing level is less than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level higher than the current processing level are matched with the hardware resource use requirement or not;
and if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the hardware resource use requirement.
4. The method of claim 3, further comprising:
and if the resource amount of the cloud hardware resources with the highest processing level is smaller than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resources corresponding to the resource use requirement, and determining the cloud hardware resources with multiple processing levels as the cloud hardware resources matched with the hardware resource use requirement according to the decomposed cloud hardware resources in the sequence from high to low in the processing levels.
5. The resource configuration method according to claim 4, wherein the step of decomposing the cloud hardware resources corresponding to the resource usage requirements and determining the cloud hardware resources of multiple processing levels as the cloud hardware resources matching the hardware resource usage requirements according to the decomposed cloud hardware resources in an order from high to low in processing levels comprises:
determining a first hardware resource usage requirement corresponding to a resource type with the most resource occupation in the resource usage requirements, and decomposing the resource usage requirements into a first hardware resource usage requirement and a second hardware resource usage requirement, wherein the second hardware resource usage requirement is other resource usage requirements except the first hardware resource usage requirement in the resource usage requirements;
if the resource amount corresponding to the first hardware resource use requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, taking the cloud hardware resource with the highest processing level as the cloud hardware resource matched with the first hardware resource use requirement;
and determining the cloud hardware resources matched with the use requirements of the second hardware resources in the cloud hardware resources of other processing levels except the cloud hardware resources with the highest processing level.
6. The resource allocation method according to any one of claims 1 to 5, wherein the cloud hardware resources include hardware resources corresponding to a plurality of resource types;
the determining the cloud hardware resources matched with the hardware resource usage requirement includes:
determining a resource type corresponding to cloud hardware resources included in the hardware resource use requirement, and determining cloud hardware resources corresponding to the resource type in the cloud hardware resources.
7. A resource configuration method is applied to a cloud terminal, and the method comprises the following steps:
responding to the change of the hardware resource use requirement of the cloud terminal, determining the hardware resource use requirement, and sending the hardware resource use requirement to a cloud server;
and configuring based on the cloud hardware resources determined by the cloud server.
8. The method of claim 7, wherein determining the resource usage requirement comprises:
and determining corresponding hardware resources based on the currently running process and/or system setting parameters, and determining the use requirements of the hardware resources matched with the hardware resources.
9. A resource configuration device is applied to a cloud server, and the device comprises:
the cloud terminal comprises a receiving module and a processing module, wherein the receiving module is used for receiving a hardware resource use requirement sent by the cloud terminal, and the hardware resource use requirement is sent when the cloud terminal responds to the change of the hardware resource use requirement;
the determining module is used for determining the cloud hardware resources matched with the hardware resource use requirements;
and the configuration module is used for configuring the determined cloud hardware resources to the cloud terminal.
10. The apparatus according to claim 9, wherein the cloud server includes cloud hardware resources of a plurality of different processing levels;
the determining module determines the cloud hardware resources matched with the hardware resource use requirements in the following mode:
judging whether the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources;
when the cloud hardware resources of the current processing level are not matched with the use requirements of the hardware resources, continuously judging whether the cloud hardware resources of the next processing level are matched with the use requirements of the hardware resources;
and when the cloud hardware resources of the current processing level are matched with the use requirements of the hardware resources, taking the cloud hardware resources of the current processing level as the cloud hardware resources matched with the use requirements of the hardware resources.
11. The apparatus according to claim 10, wherein the determining module continues to determine whether the cloud hardware resources of the next processing level match the hardware resource usage requirement when the cloud hardware resources of the current processing level do not match the hardware resource usage requirement by:
if the resource amount of the cloud hardware resources of the current processing level is smaller than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level higher than the current processing level are matched with the hardware resource use requirement or not;
and if the cloud hardware resources of the current processing level comprise resource amount larger than the resource amount corresponding to the hardware resource use requirement, continuously judging whether the cloud hardware resources of the next processing level with the processing level lower than the current processing level are matched with the hardware resource use requirement.
12. The apparatus of claim 11, wherein the determining module is further configured to:
and if the resource amount of the cloud hardware resource with the highest processing level is smaller than the resource amount corresponding to the hardware resource use requirement, decomposing the cloud hardware resource corresponding to the resource use requirement, and determining the cloud hardware resources with multiple processing levels as the cloud hardware resources matched with the hardware resource use requirement according to the decomposed cloud hardware resources in the sequence from high to low of the processing levels.
13. The resource allocation device according to claim 12, wherein the determining module decomposes the cloud hardware resources corresponding to the resource usage requirement in the following manner, and determines, according to the decomposed cloud hardware resources and according to a sequence of processing levels from high to low, cloud hardware resources of multiple processing levels as the cloud hardware resources matching the hardware resource usage requirement:
determining a first hardware resource usage requirement corresponding to a resource type with the most resource occupation in the resource usage requirements, and decomposing the resource usage requirements into a first hardware resource usage requirement and a second hardware resource usage requirement, wherein the second hardware resource usage requirement is other resource usage requirements except the first hardware resource usage requirement in the resource usage requirements;
if the resource amount corresponding to the first hardware resource use requirement is smaller than the resource amount included in the cloud hardware resource with the highest processing level, taking the cloud hardware resource with the highest processing level as the cloud hardware resource matched with the first hardware resource use requirement;
and determining the cloud hardware resources matched with the use requirements of the second hardware resources in the cloud hardware resources of other processing levels except the cloud hardware resources with the highest processing level.
14. The apparatus according to any one of claims 9 to 13, wherein the cloud hardware resources include hardware resources corresponding to a plurality of resource types;
the determining module determines the cloud hardware resources matched with the hardware resource use requirements in the following way:
determining a resource type corresponding to a cloud hardware resource included in the hardware resource use requirement, and determining a cloud hardware resource corresponding to the resource type in the cloud hardware resource.
15. A resource configuration device is applied to a cloud terminal, and the device comprises:
the determining module is used for responding to the change of the hardware resource using requirement of the cloud terminal and determining the hardware resource using requirement;
the sending module is used for sending the use requirement of the hardware resource to a cloud server;
and the configuration module is used for configuring based on the cloud hardware resources determined by the cloud server.
16. The apparatus of claim 15, wherein the determining module determines the resource usage requirement by:
and determining corresponding hardware resources based on the currently running process and/or system setting parameters, and determining the use requirements of the hardware resources matched with the hardware resources.
17. A resource allocation apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the resource configuration method of any one of claims 1 to 6 or claims 7 to 8.
18. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the resource configuration method of any one of claims 1 to 6 or claims 7 to 8.
CN202110528653.7A 2021-05-14 2021-05-14 Resource allocation method, resource allocation device and storage medium Pending CN115344377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110528653.7A CN115344377A (en) 2021-05-14 2021-05-14 Resource allocation method, resource allocation device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110528653.7A CN115344377A (en) 2021-05-14 2021-05-14 Resource allocation method, resource allocation device and storage medium

Publications (1)

Publication Number Publication Date
CN115344377A true CN115344377A (en) 2022-11-15

Family

ID=83947055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110528653.7A Pending CN115344377A (en) 2021-05-14 2021-05-14 Resource allocation method, resource allocation device and storage medium

Country Status (1)

Country Link
CN (1) CN115344377A (en)

Similar Documents

Publication Publication Date Title
US10205332B2 (en) Efficient two way charging method using master and slave devices
US9886259B2 (en) Method and terminal device for complying router management application with router firmware
US11457479B2 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
CN112905089B (en) Equipment control method and device
US20220007418A1 (en) Method and device for configuring bandwidth part
US20220342706A1 (en) Method for data processing and apparatus, and electronic device
EP3322167A1 (en) Method and device for adjusting frequencies of intercom apparatuses
CN109062625B (en) Application program loading method and device and readable storage medium
EP3896982A1 (en) Method and apparatus for inputting information on display interface, and storage medium
EP4021064B1 (en) Data processing method and apparatus, electronic device and computer-readable storage medium
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN109086018B (en) Terminal screen switching method, terminal and computer readable storage medium
JP2021531519A (en) Touch signal processing methods, devices and media
CN110704197B (en) Method, apparatus and medium for processing memory access overhead
CN112905096B (en) Display control method, device, terminal equipment and storage medium
CN115344377A (en) Resource allocation method, resource allocation device and storage medium
US20220225391A1 (en) Sidelink data transmission method and apparatus and sidelink resource allocation method and apparatus
CN111314232A (en) Application acceleration method, device and storage medium
CN113132263A (en) Method and device for scheduling core processor and storage medium
CN112527160A (en) Method and device for displaying icons on information screen, processor and display equipment
CN111176841B (en) Distribution method and device of graphics processor resources, electronic equipment and storage medium
EP2940981A2 (en) Method and device for synchronizing photographs
CN111261035B (en) Screen display method and device
EP4202635A1 (en) Method and apparatus for sharing apps, and storage medium
CN108710307B (en) Control method and device of intelligent equipment and computer readable 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