WO2019140566A1 - 云计算的资源分配方法及系统 - Google Patents

云计算的资源分配方法及系统 Download PDF

Info

Publication number
WO2019140566A1
WO2019140566A1 PCT/CN2018/072987 CN2018072987W WO2019140566A1 WO 2019140566 A1 WO2019140566 A1 WO 2019140566A1 CN 2018072987 W CN2018072987 W CN 2018072987W WO 2019140566 A1 WO2019140566 A1 WO 2019140566A1
Authority
WO
WIPO (PCT)
Prior art keywords
calculation
instruction
operation data
terminal
calculation instruction
Prior art date
Application number
PCT/CN2018/072987
Other languages
English (en)
French (fr)
Inventor
张北江
衣佳鑫
Original Assignee
新联智慧信息技术(深圳)有限公司
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 新联智慧信息技术(深圳)有限公司 filed Critical 新联智慧信息技术(深圳)有限公司
Priority to PCT/CN2018/072987 priority Critical patent/WO2019140566A1/zh
Publication of WO2019140566A1 publication Critical patent/WO2019140566A1/zh

Links

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]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a resource allocation method and system for cloud computing.
  • the existing cloud platform provides a variety of computing functions, referred to as cloud computing.
  • cloud computing For cloud computing, how to allocate computing resources to quickly respond to computing instructions is very important to users.
  • Existing cloud computing has limited resource allocation, resulting in response to computing instructions. Long time, affecting user experience.
  • the embodiment of the present invention provides a resource allocation method and system for cloud computing, which improves user experience by deploying computing resources of the cloud platform.
  • an embodiment of the present application provides a computing resource allocation method, where the method includes the following steps:
  • the terminal receives a calculation instruction, where the calculation instruction includes: an operation instruction and operation data;
  • the terminal calculates the calculation amount of the calculation instruction according to the operation instruction and the operation data
  • the terminal receives the load value of the other terminals in the cloud computing platform and the number of transmission hops;
  • the terminal allocates the other terminal to execute the calculation instruction according to the calculation amount, the load value, the transmission hop count, and the operation data.
  • a computing resource allocation system comprising:
  • a transceiver unit configured to receive a calculation instruction, where the calculation instruction includes: an operation instruction and operation data;
  • a processing unit configured to calculate a calculation amount of the calculation instruction according to the operation instruction and the operation data
  • the transceiver unit is further configured to receive load values and transmission hops of other terminals in the cloud computing platform;
  • the processing unit is further configured to allocate the other terminal to execute the calculation instruction according to the calculation amount, the load value, the transmission hop count, and the operation data.
  • an embodiment of the present application provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method as described in the first aspect.
  • an embodiment of the present application provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer being operative to cause a computer to perform the method as described in the first aspect Methods.
  • the technical solution provided by the application obtains the load information of the terminal of the cloud platform and the forwarding node information, and determines the number of calculation instructions allocated to each terminal according to the load information and the forwarding node information, and comprehensively considers the calculation overhead and the transmission overhead. Optimized the configuration of computing resources, improved the response of computing instructions, and improved user experience.
  • 1 is a schematic flow chart of a method for computing resource allocation
  • FIG. 2 is a schematic diagram of a method for allocating computing resources provided by an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a hardware provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a network topology according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a computing resource allocation system according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another terminal according to an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, result, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • a mobile terminal also called a User Equipment (UE) is a device that provides voice and/or data connectivity to users, for example, a handheld device with an infinite connection function, an in-vehicle device, and the like.
  • Common terminals include, for example, mobile phones, tablets, laptops, PDAs, mobile internet devices (mobile Internet device, MID), wearable devices such as smart watches, smart bracelets, pedometers, etc.
  • FIG. 1 is a computing resource allocation method. As shown in FIG. 1 , the computing resource allocation method includes the following steps. The method may be performed by a terminal, and the terminal may be: a mobile phone, a tablet computer, a notebook computer, or the like. Pocket PC, mobile internet device (mobile Internet device, MID), one or more of wearable devices.
  • a terminal may be: a mobile phone, a tablet computer, a notebook computer, or the like.
  • Pocket PC mobile internet device (mobile Internet device, MID), one or more of wearable devices.
  • MID mobile internet device
  • Step S101 The terminal receives a calculation instruction.
  • Step S102 The terminal executes the calculation instruction to obtain a calculation result.
  • Step S103 The terminal returns the calculation result to the cloud platform.
  • the calculation resource is not configured, so the calculation instruction of the calculation instruction has a long calculation time, the calculation instruction response time is long, and the user experience is low.
  • FIG. 2 is a computing resource allocation method. As shown in FIG. 2, the method is performed by any terminal in the cloud platform. The method is shown in the hardware architecture shown in FIG. The network topology is implemented. The method is as shown in FIG. 2 and includes the following steps:
  • Step S201 The terminal receives a calculation instruction, where the calculation instruction includes: an operation instruction and operation data;
  • Step S202 The terminal calculates a calculation amount of the calculation instruction according to the operation instruction and the operation data;
  • Step S203 The terminal receives the load value of the other terminals in the cloud computing platform and the number of transmission hops.
  • Step S204 The terminal allocates the calculation instruction to the other terminal according to the calculation amount, the load value, the transmission hop count, and the operation data to execute the calculation instruction.
  • the technical solution provided by the application obtains the load information of the terminal of the cloud platform and the forwarding node information, determines the number of calculation instructions allocated to each terminal according to the load information and the forwarding node information, comprehensively considers the calculation overhead and the transmission overhead, and optimizes the calculation.
  • the configuration of the resources improves the response of the calculation instructions and improves the user experience.
  • step S204 may specifically include:
  • the calculation instruction is allocated to the calculation instruction according to the load balancing manner.
  • step S204 may specifically include:
  • the terminal that selects the smallest transmission hop count executes the calculation instruction.
  • This technical solution is because when the operation data is relatively large, if the number of hops transmitted is large, that is, the number of times of forwarding is large, the transmission resource takes a lot of time, and in this case, the transmission resource is prioritized.
  • the implementation method of the foregoing step S202 may specifically be:
  • the coefficient of the multiplication operation may be 1.5
  • the coefficient of the convolution operation may be 4.0, etc., of course, other values may be used in practical applications.
  • FIG. 5 provides a computing resource allocation system, where the system includes:
  • the transceiver unit 501 is configured to receive a calculation instruction, where the calculation instruction includes: an operation instruction and operation data;
  • the processing unit 502 is configured to calculate a calculation amount of the calculation instruction according to the operation instruction and the operation data;
  • the transceiver unit 501 is further configured to receive load values of other terminals in the cloud computing platform and the number of transmission hops;
  • the processing unit 502 is further configured to allocate another calculation terminal to the calculation instruction according to the calculation amount, the load value, the transmission hop count, and the operation data.
  • the processing unit is configured to: if the number of transmission hops is lower than a set number, and the operation data is lower than the set storage amount, perform another calculation on the calculation instruction according to the load balancing manner. instruction.
  • the processing unit is specifically configured to: if the operation data is greater than a set storage amount, select a terminal with the smallest transmission hop count to execute the calculation instruction.
  • FIG. 6 is a block diagram showing a partial structure of a terminal provided by an embodiment of the present application.
  • the server includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, and wireless fidelity (Wireless).
  • RF radio frequency
  • Fidelity, WiFi Fidelity, WiFi
  • application processor AP980 application processor AP980 and power supply 990 and other components.
  • FIG. 6 does not constitute a limitation to the smart device, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the smart device.
  • the input unit 930 may include a touch display screen 933, a stylus 931, and other input devices 932.
  • the input unit 930 can also include other input devices 932.
  • other input devices 932 may include, but are not limited to, one or more of physical buttons, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the AP 980 is a control center for smart devices that connects various portions of the entire smart device using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The intelligent device's various functions and processing data, so that the smart device is monitored as a whole.
  • the AP 980 may include one or more processing units; optionally, the AP 980 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like, and the modulation solution The processor mainly handles wireless communication. It can be understood that the above modem processor may not be integrated into the AP 980.
  • the AP980 can be integrated with the face recognition module. Of course, in the actual application, the face recognition module can also be separately set or integrated in the camera 770. The face recognition module shown in FIG. 6 is integrated in the AP980. example.
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low) Noise Amplifier, LNA), duplexer, etc.
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet) Radio Service, GPRS), Code Division Multiple Access (Code) Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Message Service (Short Messaging) Service, SMS), etc.
  • GSM Global System of Mobile communication
  • General Packet General Packet Radio Service
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the smart device may also include at least one type of sensor 950, such as a light sensor, a motion sensor, a proximity sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display when the mobile phone moves to the ear. And / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • Proximity sensor can be used to detect the distance between the phone and the user.
  • Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like that can be configured in the mobile phone are not described herein.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the smart device.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961 for conversion to the sound signal by the speaker 961; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal by the audio circuit 960. After receiving, it is converted into audio data, and then the audio data is played by the AP 980, sent to the other mobile phone via the RF circuit 910, or the audio data is played to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the smart device, and can be omitted as needed within the scope of not changing the essence of the application.
  • the smart device also includes a power supply 990 (such as a battery or a power module) that supplies power to various components.
  • a power supply 990 such as a battery or a power module
  • the power supply can be logically connected to the AP980 through a power management system to manage charging, discharging, and power management through the power management system.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to perform some or all of the steps of any of the methods described in the foregoing method embodiments.
  • the computer includes a terminal device.
  • the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the foregoing method embodiments Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer including a terminal device.
  • the steps of the method or algorithm described in the embodiments of the present application may be implemented in a hardware manner, or may be implemented by a processor executing software instructions.
  • Software instructions can be composed of corresponding software modules, which can be stored in random access memory (Random) Access Memory, RAM), Flash, Read Only Memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory (Erasable) Programmable ROM (EPROM), electrically erasable programmable read only memory (EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC.
  • the ASIC can be located in an access network device, a target network device, or a core network device.
  • the processor and the storage medium may also exist as discrete components in the access network device, the target network device, or the core network device.
  • the functions described in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the processes or functions described in accordance with embodiments of the present application are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center By wire (eg coaxial cable, fiber optic, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (eg infrared, wireless, microwave, etc.) to another website, computer, server or data center.
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, digital video disc (Digital) Video Disc, DVD)), or semiconductor media (for example, solid state drive (Solid State Disk, SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种计算资源分配方法及系统,所述方法包括如下步骤:终端接收计算指令,该计算指令包括:运算指令以及运算数据(S201);终端依据该运算指令以及运算数据计算该计算指令的计算量(S202);终端接收云计算平台中其他终端的负载值以及传输跳数(S203);终端依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令(S204)。该方法具有用户体验度高的优点。

Description

云计算的资源分配方法及系统 技术领域
本发明涉及通信技术领域,尤其涉及一种云计算的资源分配方法及系统。
背景技术
云平台(cloud platforms)的出现是该转变的最重要环节之一。顾名思义,这种平台允许开发者们或是将写好的程序放在“云”里运行,或是使用“云”里提供的服务,或二者皆是。至于这种平台的名称,现在我们可以听到不止一种称呼,比如按需平台(on-demand platform)、平台即服务(platform as a service,PaaS)等等。但无论称呼它什么,这种新的支持应用的方式有着巨大的潜力。
应用平台(application platforms)是如何被使用的。开发团队在创建一个户内应用(on-premises application,即在机构内运行的应用)时,该应用所需的许多基础都已经事先存在了:操作系统为执行应用和访问存储等提供了基础支持;机构里的其他计算机提供了诸如远程存储之类的服务。倘若每创建一个户内应用都得首先构建所有这些基础的话,那么恐怕我们今天看到的应用会少很多。
现有的云平台提供多种计算的功能,简称云计算,对于云计算来说,如何分配计算资源快速响应计算指令对用户非常重要,现有的云计算对资源配置有限,导致计算指令的响应时间长,影响用户体验度。
技术问题
本申请实施例提供一种云计算的资源分配方法及系统,通过云平台的计算资源的调配,提高用户体验度。
技术解决方案
第一方面,本申请实施例提供一种计算资源分配方法,所述方法包括如下步骤:
终端接收计算指令,该计算指令包括:运算指令以及运算数据;
终端依据该运算指令以及运算数据计算该计算指令的计算量;
终端接收云计算平台中其他终端的负载值以及传输跳数;
终端依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令。
第二方面,提供一种计算资源分配系统,所述系统包括:
收发单元,用于接收计算指令,该计算指令包括:运算指令以及运算数据;
处理单元,用于依据该运算指令以及运算数据计算该计算指令的计算量;
收发单元,还用于接收云计算平台中其他终端的负载值以及传输跳数;
处理单元,还用于依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令。
第三方面,本申请实施例提供一种计算机可读存储介质,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如第一方面所述的方法。
第四方面,本申请实施例提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机可操作来使计算机执行如第一方面所述的方法。
采用本申请实施例,具有以下有益效果:
有益效果
可以看出,本申请提供的技术方案获取云平台的终端的负载信息以及转发节点信息,依据该负载信息以及转发节点信息确定分配给各个终端的计算指令的数量,综合考虑了计算开销和传输开销,优化了计算资源的配置,提升了计算指令的响应,提升了用户体验度。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是一种计算资源分配方法的流程示意图;
图2是本申请实施例提供的计算资源分配方法的示意图;
图3是本申请实施例提供的一种硬件构架示意图;
图4是本申请实施例提供的一种网络拓扑的结构示意图;
图5是本申请实施例提供的一种计算资源分配系统示意图;
图6是本申请实施例提供的另一种终端的结构示意图。
本发明的实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结果或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。
移动终端,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无限连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。
参阅图1,图1为一种计算资源分配方法,如图1所示,该计算资源分配方法包括如下步骤,该方法可以由终端执行,该终端具体可以为:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备中的一种或多种。
步骤S101、终端接收计算指令;
步骤S102、终端执行该计算指令得到计算结果;
步骤S103、终端将该计算结果返回给云平台。
对于如图1所示的计算指令并未对计算资源进行配置,所以其计算指令的计算时间长,计算指令响应时间长,用户体验度低。
参阅图2,图2为一种计算资源分配方法,如图2所示,该方法由云平台内的任意一个终端执行,该方法在如图3所示的硬件构架和如图4所示的网络拓扑结构内实现,该方法如图2所示,包括如下步骤:
步骤S201、终端接收计算指令,该计算指令包括:运算指令以及运算数据;
步骤S202、终端依据该运算指令以及运算数据计算该计算指令的计算量;
步骤S203、终端接收云计算平台中其他终端的负载值以及传输跳数;
步骤S204、终端依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令。
本申请提供的技术方案获取云平台的终端的负载信息以及转发节点信息,依据该负载信息以及转发节点信息确定分配给各个终端的计算指令的数量,综合考虑了计算开销和传输开销,优化了计算资源的配置,提升了计算指令的响应,提升了用户体验度。
可选的,上述步骤S204实现的方法具体可以包括:
如该传输跳数低于设定数量,该运算数据低于设定存储量,则依据负载均衡的方式对该计算指令分配其他中单执行该计算指令。
可选的,上述步骤S204实现的方法具体可以包括:
如该运算数据大于设定存储量,选择传输跳数最小的终端执行该计算指令。
此技术方案是因为对于运算数据比较大的情况下,如果传输的跳数多,即转发的次数多,传输资源会占用很多时间,此种情况下优先考虑传输资源。
可选的,上述步骤S202的实现方法具体可以为:
依据运算指令确定计算系数,确定运算数据的大小,计算量=计算系数*运算数据的大小。例如乘法运算的系数可以为1.5,卷积运算的系数可以为4.0等等,当然在实际应用中还可以为其他的数值。
参阅图5,图5提供一种计算资源分配系统,所述系统包括:
收发单元501,用于接收计算指令,该计算指令包括:运算指令以及运算数据;
处理单元502,用于依据该运算指令以及运算数据计算该计算指令的计算量;
收发单元501,还用于接收云计算平台中其他终端的负载值以及传输跳数;
处理单元502,还用于依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令。
可选的,所述处理单元,具体用于如该传输跳数低于设定数量,该运算数据低于设定存储量,则依据负载均衡的方式对该计算指令分配其他中单执行该计算指令。
可选的,所述处理单元,具体用于如该运算数据大于设定存储量,选择传输跳数最小的终端执行该计算指令。
可选的,所述处理单元,具体用于依据运算指令确定计算系数,确定运算数据的大小,计算量=计算系数*运算数据的大小。
图6示出的是与本申请实施例提供的终端的部分结构的框图。参考图6,服务器包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、应用处理器AP980以及电源990等部件。本领域技术人员可以理解,图6中示出的智能设备结构并不构成对智能设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对智能设备的各个构成部件进行具体的介绍:
输入单元930可用于接收输入的数字或字符信息,以及产生与智能设备的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、手写笔931以及其他输入设备932。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
AP980是智能设备的控制中心,利用各种接口和线路连接整个智能设备的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行智能设备的各种功能和处理数据,从而对智能设备进行整体监控。可选的,AP980可包括一个或多个处理单元;可选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。上述AP980可以集成人脸识别模组,当然在实际应用中,上述人脸识别模组也可以单独设置或集成在摄像头770内,如图6所示的人脸识别模组以集成在AP980内为例。
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统 (Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access, WCDMA)、长期演进 (Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
智能设备还可包括至少一种传感器950,比如光传感器、运动传感器、近距离传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等; 近距离传感器可以用于检测手机与用户之间距离。至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与智能设备之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放AP980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块970,但是可以理解的是,其并不属于智能设备的必须构成,完全可以根据需要在不改变申请的本质的范围内而省略。
智能设备还包括给各个部件供电的电源990(比如电池或电源模块),可选 的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,所述计算机包括终端设备。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,所述计算机包括终端设备。
本申请实施例所描述的方法或者算法的步骤可以以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、只读存储器(Read Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(Electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于接入网设备、目标网络设备或核心网设备中。当然,处理器和存储介质也可以作为分立组件存在于接入网设备、目标网络设备或核心网设备中。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(Digital Video Disc,DVD))、或者半导体介质(例如,固态硬盘(Solid State Disk,SSD))等。
以上所述的具体实施方式,对本申请实施例的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请实施例的具体实施方式而已,并不用于限定本申请实施例的保护范围,凡在本申请实施例的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请实施例的保护范围之内。

Claims (10)

  1. 一种计算资源分配方法,其特征在于,所述方法包括如下步骤:
    终端接收计算指令,该计算指令包括:运算指令以及运算数据;
    终端依据该运算指令以及运算数据计算该计算指令的计算量;
    终端接收云计算平台中其他终端的负载值以及传输跳数;
    终端依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令。
  2. 根据权利要求1所述的方法,其特征在于,所述终端依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令,包括:
    如该传输跳数低于设定数量,该运算数据低于设定存储量,则依据负载均衡的方式对该计算指令分配其他中单执行该计算指令。
  3. 根据权利要求1所述的方法,其特征在于,所述终端依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令,包括:
    如该运算数据大于设定存储量,选择传输跳数最小的终端执行该计算指令。
  4. 根据权利要求1所述的方法,其特征在于,所述终端依据该运算指令以及运算数据计算该计算指令的计算量,包括:
    依据运算指令确定计算系数,确定运算数据的大小,计算量=计算系数*运算数据的大小。
  5. 一种计算资源分配系统,其特征在于,所述系统包括:
    收发单元,用于接收计算指令,该计算指令包括:运算指令以及运算数据;
    处理单元,用于依据该运算指令以及运算数据计算该计算指令的计算量;
    收发单元,还用于接收云计算平台中其他终端的负载值以及传输跳数;
    处理单元,还用于依据该计算量、负载值、传输跳数、运算数据为该计算指令分配其他终端执行该计算指令。
  6. 根据权利要求5所述的系统,其特征在于,
    所述处理单元,具体用于如该传输跳数低于设定数量,该运算数据低于设定存储量,则依据负载均衡的方式对该计算指令分配其他中单执行该计算指令。
  7. 根据权利要求5所述的系统,其特征在于,
    所述处理单元,具体用于如该运算数据大于设定存储量,选择传输跳数最小的终端执行该计算指令。
  8. 根据权利要求5所述的系统,其特征在于,
    所述处理单元,具体用于依据运算指令确定计算系数,确定运算数据的大小,计算量=计算系数*运算数据的大小。
  9. 一种计算机可读存储介质,其特征在于,其存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-4任一项所述的方法。
  10. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-4任一项所述的方法。
PCT/CN2018/072987 2018-01-17 2018-01-17 云计算的资源分配方法及系统 WO2019140566A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/072987 WO2019140566A1 (zh) 2018-01-17 2018-01-17 云计算的资源分配方法及系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/072987 WO2019140566A1 (zh) 2018-01-17 2018-01-17 云计算的资源分配方法及系统

Publications (1)

Publication Number Publication Date
WO2019140566A1 true WO2019140566A1 (zh) 2019-07-25

Family

ID=67300910

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/072987 WO2019140566A1 (zh) 2018-01-17 2018-01-17 云计算的资源分配方法及系统

Country Status (1)

Country Link
WO (1) WO2019140566A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469023A (zh) * 2010-11-19 2012-05-23 中国移动通信集团公司 基于云计算的调度方法、单元及系统
CN102591712A (zh) * 2011-12-30 2012-07-18 大连理工大学 一种云计算中依赖任务的解耦并行调度方法
US20130318525A1 (en) * 2012-05-25 2013-11-28 International Business Machines Corporation Locality-aware resource allocation for cloud computing
CN105141656A (zh) * 2015-07-20 2015-12-09 浙江工商大学 一种基于云平台的互联网轻量级应用的负载均衡实现方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469023A (zh) * 2010-11-19 2012-05-23 中国移动通信集团公司 基于云计算的调度方法、单元及系统
CN102591712A (zh) * 2011-12-30 2012-07-18 大连理工大学 一种云计算中依赖任务的解耦并行调度方法
US20130318525A1 (en) * 2012-05-25 2013-11-28 International Business Machines Corporation Locality-aware resource allocation for cloud computing
CN105141656A (zh) * 2015-07-20 2015-12-09 浙江工商大学 一种基于云平台的互联网轻量级应用的负载均衡实现方法

Similar Documents

Publication Publication Date Title
US10959124B2 (en) Uplink data transmission method, terminal, network side device and system
EP3401776B1 (en) Sound effect configuration method and system and related device
CN106776036A (zh) 一种资源分配方法及装置
US11099898B2 (en) Method for allocating memory resources and terminal device
WO2019041280A1 (zh) 应用资源推荐方法及相关设备
WO2018161543A1 (zh) 指纹处理资源的控制方法及设备
CN112559390B (zh) 一种数据写入控制方法及存储设备
CN109144723B (zh) 一种分配存储空间的方法和终端
CN111435318A (zh) 应用程序的dex优化方法及终端
CN106776040A (zh) 一种资源分配方法及装置
WO2019072179A1 (zh) 应用程序运行控制方法及装置
WO2019140565A1 (zh) 云存储命令管理方法及系统
WO2017206851A1 (zh) 安装任务的分配方法及移动终端
CN110245017B (zh) 资源标识的分配方法和设备
CN110677456A (zh) 一种资源配置的方法及设备
CN116596202A (zh) 工单处理方法、相关装置及存储介质
WO2019140567A1 (zh) 大数据的分析方法及系统
WO2019140578A1 (zh) 数据备份指令管理方法及系统
WO2019140566A1 (zh) 云计算的资源分配方法及系统
CN112261634B (zh) 一种蓝牙传输控制方法、装置、终端设备和存储介质
CN109710576B (zh) 文件展示的方法、终端及存储介质
CN108282473B (zh) 云存储命令管理方法及系统
WO2018170837A1 (zh) 一种上行数据传输方法、终端、网络侧设备及系统
CN114296641B (zh) 增量文件传输方法、装置、电子设备及可读存储介质
CN108279997A (zh) 数据备份指令管理方法及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18901733

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.11.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18901733

Country of ref document: EP

Kind code of ref document: A1