CN107515787A - Resource allocation method and Related product - Google Patents

Resource allocation method and Related product Download PDF

Info

Publication number
CN107515787A
CN107515787A CN201710776020.1A CN201710776020A CN107515787A CN 107515787 A CN107515787 A CN 107515787A CN 201710776020 A CN201710776020 A CN 201710776020A CN 107515787 A CN107515787 A CN 107515787A
Authority
CN
China
Prior art keywords
run
operating system
time scenario
resource
scene
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
CN201710776020.1A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710776020.1A priority Critical patent/CN107515787A/en
Publication of CN107515787A publication Critical patent/CN107515787A/en
Priority to PCT/CN2018/101181 priority patent/WO2019042171A1/en
Pending legal-status Critical Current

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]
    • 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
    • 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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/824Applicable to portable or mobile terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application discloses a kind of resource allocation method and Related product.This method is applied to mobile terminal, and being run on mobile terminal has operating system and one or more application programs, method to include:Operating system receives the contextual data bag that the destination application being currently running is sent, and contextual data bag includes the scene information of the current Run-time scenario of destination application and system resource to be adjusted;Operating system determines the Performance Strategy for Optimizing of Run-time scenario according to scene information and system resource to be adjusted;Operating system adjusts the distribution of the system resource of Run-time scenario according to Performance Strategy for Optimizing.The embodiment of the present application is advantageous to improve real-time and accuracy that the Run-time scenario that mobile terminal control targe application program is currently running carries out performance optimization.

Description

Resource allocation method and Related product
Technical field
The application is related to technical field of mobile terminals, and in particular to resource allocation method and Related product.
Background technology
With the fast development of smart mobile phone correlation technique, increasing application is installed in user mobile phone, is such as read Read class application, pay class application, game class application, the application of music class etc., the clothing, food, lodging and transportion -- basic necessities of life of people are inseparable with mobile phone.
The content of the invention
The embodiment of the present application provides resource allocation method and Related product, and application program can improve mobile terminal control The Run-time scenario that destination application is currently running carries out the real-time and accuracy of performance optimization.
In a first aspect, the embodiment of the present application provides a kind of resource allocation method, applied to mobile terminal, the mobile terminal Upper operation has operating system and one or more application programs, methods described to include:
The operating system receives the contextual data bag that the destination application being currently running is sent, the scene number According to the scene information and system resource to be adjusted for including the current Run-time scenario of the destination application;
The operating system determines the Run-time scenario according to the scene information and the system resource to be adjusted Performance Strategy for Optimizing;
The operating system adjusts the distribution of the system resource of the Run-time scenario according to the Performance Strategy for Optimizing.
Second aspect, the embodiment of the present application provide a kind of device for allocating resources, applied to mobile terminal, the mobile terminal Upper operation has operating system and application program, and the device for allocating resources includes processing unit and communication unit,
The processing unit, for receiving the destination application being currently running transmission by the communication unit Contextual data bag, the contextual data bag include the scene information of the current Run-time scenario of the destination application and to be adjusted System resource;And for determining the property of the Run-time scenario according to the scene information and the system resource to be adjusted Can optimisation strategy;And the distribution of the system resource for adjusting the Run-time scenario according to the Performance Strategy for Optimizing.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, communication interface and One or more programs, wherein, one or more of programs are stored in the memory, and are configured by described Manage device to perform, described program includes being used for the instruction for performing the step in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable recording medium, wherein, it is described computer-readable Storage medium stores the computer program for electronic data interchange, wherein, the computer program causes computer to perform such as Part or all of step described in the embodiment of the present application first aspect either method, the computer include mobile terminal.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein, the computer program product Non-transient computer-readable recording medium including storing computer program, the computer program are operable to make calculating Machine is performed such as the part or all of step described in the embodiment of the present application first aspect either method.The computer program product Can be a software installation bag, the computer includes mobile terminal.
As can be seen that in the embodiment of the present application, the operating system of mobile terminal receives destination application transmission first Contextual data bag, the contextual data bag include the scene information of the current Run-time scenario of the destination application and to be adjusted System resource, secondly, operating system determine that the performance of the Run-time scenario optimizes according to scene information and system resource to be adjusted Strategy, finally, operating system adjust the distribution of the system resource of the Run-time scenario according to Performance Strategy for Optimizing.Be advantageous to improve and move The Run-time scenario of dynamic terminal control destination application carries out the real-time and accuracy of performance optimization.
Brief description of the drawings
The accompanying drawing involved by the embodiment of the present application will be briefly described below.
Figure 1A is a kind of schematic diagram of the program running space of smart mobile phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of schematic flow sheet for resource allocation method that the embodiment of the present application provides;
Fig. 3 is a kind of schematic flow sheet of resource allocation method disclosed in the embodiment of the present application;
Fig. 4 is a kind of schematic flow sheet of resource allocation method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural representation of smart mobile phone disclosed in the embodiment of the present application.
Embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belong to the scope of the application protection.
Term " first ", " second " in the description and claims of this application and the accompanying drawing etc. are to be used to distinguish Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover non-exclusive include.Such as process, method, system, product or the equipment for containing series of steps or unit do not have The step of being defined in the step of having listed or unit, but alternatively also including not listing or unit, or alternatively also wrap Include for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present application can include the various handheld devices with radio communication function, Mobile unit, wearable device, computing device or other processing equipments for being connected to radio modem, and various forms User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Behaviour involved by the embodiment of the present invention It is that hardware resource is managed collectively as system, and provides a user the software systems of business interface.
As shown in Figure 1A, the mobile terminal such as smart mobile phone is typically provided with program running space at present, and program operation is empty Between include user's space and operating system space, wherein, user's space operation have one or more application programs, this or more Individual application program is the third party application of mobile terminal installation, and operating system space motion has the operation system of mobile terminal System.The mobile terminal can specifically run Android android system, Mobile operating system iOS that Apple Inc. develops etc., herein Unique restriction is not done.As shown in Figure 1B, so that the running of mobile terminal has android system as an example, corresponding user's space bag The application layer (Applications) in the android system is included, operating system space can include in the android system Application framework layer (Application Framework), system operation storehouse layer (including system operation storehouse layer Libraries Android Runtime when being run with Android), Linux inner core (Linux Kernel).Wherein, include in application layer each Class and the application program of user's direct interaction, or the service routine for running on backstage write by Java language.For example, intelligent hand The program for the common basic function realized on machine, such as short message service (Short Messaging Service, SMS) short message, The programs such as dialing, Photo Browser, calendar, game, map, WWW (World Wide Web, Web) browser, with And the other applications of developer's exploitation.Application framework layer provides the system needed for exploitation Android application programs It row class libraries, can be used in reusing component, personalized extension can also be realized by inheriting.System operation storehouse layer is application program The support of framework, service is provided for each component in android system.System operation storehouse layer is by system class libraries and Android Formed during operation.Android includes core library and Dalvik virtual machine two parts when running.Linux inner core is used to realize firmly The Core Features such as part device drives, process and memory management, network protocol stack, power management, radio communication.
The process that the third party application is created operates in user's space at the beginning, when it will perform network When sending the action such as data, reading disk resource, it is necessary to connect by the standard for calling write, send etc. to be provided by operating system Mouthful function is completed, i.e., is operated by the code of CPU call operation system spaces to complete the request of user.It can be seen that third party should The function of call operation system offer is wanted with program, the standard interface function that it can only be called to provide.Meanwhile operating system is not Know third party application specifically perform which function, destination application can not command operation system perform it is special Operation, both is separate, and this causes operating system to cannot be distinguished by the internal operation scene of destination application, can only Go to be adapted to using standard set parameter, it is excellent that targetedly performance can not be carried out for the internal operation scene of destination application Change.
For the situation, the embodiment of the present application proposes a kind of resource distribution of destination application for mobile terminal Method, in this method, operating system receives the contextual data bag that the destination application being currently running is sent, contextual data bag Include the scene information of the current Run-time scenario of destination application and system resource to be adjusted;Operating system is believed according to scene Breath and system resource to be adjusted determine the Performance Strategy for Optimizing of Run-time scenario;Operating system is adjusted according to Performance Strategy for Optimizing and transported The distribution of the system resource of row scene.Realize excellent by performance progress of the operating system for destination application in the process of running Change, be advantageous to improve the Run-time scenario that is currently running of mobile terminal control targe application program carry out performance optimization real-time and Accuracy.
The embodiment of the present application is introduced below in conjunction with the accompanying drawings.
A kind of schematic flow sheet of resource allocation method is provided referring to Fig. 2, Fig. 2 is the embodiment of the present application, is applied to Mobile terminal, on mobile terminal operation have operating system and one or more application programs, as illustrated, this resource allocation method Including:
S201, the operating system receives the contextual data bag that the destination application being currently running is sent, described Contextual data bag includes the scene information of the current Run-time scenario of the destination application and system resource to be adjusted.
Wherein, destination application refer to installed in mobile terminal user's space third party application, the 3rd For square application program such as can be video class application, communication class application, game class application, the third party application can be by User installation, it can also be pre-installed by developer before mobile terminal dispatches from the factory, do not do unique restriction herein.
Wherein, internal operation scene when above-mentioned Run-time scenario is currently running for destination application, the internal operation field Scape can be divided according to different preparatory conditions, be interaction such as according to whether there is user mutual to divide internal operation scene Formula scene and non-interactive type scene, or, single user scene and multi-user scene are divided into according to the complexity of task, or press It is divided into according to different behaviors and logs in scene, the small screen plays the subsidiary barrage scene of scene, video playback, played in full screen scene Deng not doing unique restriction herein.
Wherein, above-mentioned scene information can include current internal operation scene with destination application it is following at least A kind of information:Scene identity, critical performance parameters, duration information, wherein, scene identity can be by the current inside that collects The key message of Run-time scenario determines that key message can include the subsidiary bullet of log-on message, the small screen broadcast information, video playback Curtain information, interface type information etc., critical performance parameters can the frame per second including current internal operation scene, frame losing, networks Information such as status information, CPU state information, electricity, battery temperature, interim card etc., unique restriction is not done herein.In addition, scene number Form according to bag for example can be that java script object tag (JavaScript Object Notation, JSON), agreement are delayed The data transmission formats such as area (ProtocolBuffer, Protobuf), user-defined format are rushed, do not do unique restriction herein.
Wherein, above-mentioned system resource to be adjusted can be a kind of system resource, or the combination of multiple system resources, this Unique restriction is not done in place.
S202, the operating system determine the operation field according to the scene information and the system resource to be adjusted The Performance Strategy for Optimizing of scape.
Wherein, Performance Strategy for Optimizing refers to the money of the runnability for improving the destination application being currently running Source configuration strategy, as cpu resource adjustable strategies, GPU resource adjustable strategies, memory bandwidth resource adjusting strategies, disk resource are adjusted Whole strategy, Internet resources adjustable strategies etc., do not do unique restriction herein.
S203, the operating system adjust point of the system resource of the Run-time scenario according to the Performance Strategy for Optimizing Match somebody with somebody.
In a possible example, the system resource includes at least one in the following resource of the mobile terminal Kind:Cpu resource, GPU resource, memory bandwidth resource, disk resource, Internet resources.Wherein, Internet resources include mobile terminal The Internet resources of data network, the Internet resources of Wireless Fidelity Wi-Fi network, the control parameter resource etc. of bluetooth module.
Wherein, it is at least one of cpu resource, GPU resource memory bandwidth resource, disk resource in the system resource When, operating system can be communicated by direct-connected communication mode with the inner nuclear layer in operating system space, adjust matching somebody with somebody for the system resource Put, direct-connected communication mode refers to by abstract application programming interface (Application Programming Interface, API) direct communication.
Wherein, when the system resource is Internet resources, operating system can be by indirect communication mode and operation The inner nuclear layer communication in system space, adjusts the configuration of the system resource, indirect communication mode refers to by calling agency service come between Letter is connected, as the Wi-Fi subsystems in Internet resources or data network subsystem do not operate in same system with operating system In system, it is necessary to by way of some agencies, these system resources of dereference, Wi-Fi agency is provided in operating system Service, by calling the interface of the agency service come indirect and Wi-Fi subsystem communications.
As can be seen that in the embodiment of the present application, the operating system of mobile terminal receives destination application transmission first Contextual data bag, the contextual data bag include the scene information of the current Run-time scenario of destination application and to be adjusted are System resource, secondly, operating system determine that the performance of Run-time scenario optimizes according to scene information and the system resource to be adjusted Strategy, finally, operating system adjust the distribution of the system resource of Run-time scenario according to Performance Strategy for Optimizing.Due to contextual data bag Scene information and system resource to be adjusted including destination application, and contextual data bag is by the intended application that is currently running Program is sent, and operating system can become more meticulous according to scene information and system resource to be adjusted determines that the performance of Run-time scenario is excellent Change strategy, and adjust by operating system the configuration of the system resource of Run-time scenario in real time according to the Performance Strategy for Optimizing, so as to real Real-time performance optimization now is carried out to the destination application in running by operating system, is advantageous to improve mobile terminal control The Run-time scenario that destination application processed is currently running carries out the real-time and accuracy of performance optimization.
In a possible example, operating system determines according to the scene information and the system resource to be adjusted The Performance Strategy for Optimizing of the Run-time scenario, including:The operating system determines the Run-time scenario according to the scene information The system resource to be adjusted adjustment amount;The operating system is given birth to according to the adjustment amount of the system resource to be adjusted Into the Performance Strategy for Optimizing of the Run-time scenario.
Wherein, scene information includes the critical performance parameters such as scene identity, application type mark, network bandwidth.
It can be seen that in this example, because operating system can get the field of the current Run-time scenario of destination application Scape information and system resource to be adjusted, so as to which operating system can determine the adjustment amount of system resource to be adjusted in real time, and The Performance Strategy for Optimizing of the Run-time scenario is generated based on the adjustment amount, is so realized by operating system to destination application Internal operation scene carries out accurate resource adjustment, avoids using unified systemic hierarchial Performance Strategy for Optimizing power consumption higher, has Carry out the power consumption of performance optimization in the process of running beneficial to reduction mobile terminal control targe application program, improve mobile terminal Endurance.
In a possible example, the scene information includes the scene identity of the Run-time scenario;The operation system System determines the adjustment amount of the system resource to be adjusted of the Run-time scenario according to the scene information, including:The behaviour Make system to identify by inquiry of the scene identity of the Run-time scenario, inquire about the Run-time scenario of the default destination application Scene identity and the system resource to be adjusted adjustment amount between mapping relations, obtain the scene of the Run-time scenario The adjustment amount of the system resource to be adjusted corresponding to mark.
Wherein, the mapping relations example between the adjustment amount of the scene identity of above-mentioned Run-time scenario and system resource to be adjusted It can such as include:Between the first Run-time scenario mark and the first adjustment amount of system resource to be adjusted of destination application Corresponding relation, pair between the second Run-time scenario mark and the second adjustment amount of system resource to be adjusted of destination application It should be related to, not do unique restriction herein.
Wherein, system resource to be adjusted is that can influence destination application in current internal operation in mobile terminal The system resource of the runnability of scene, if an internal operation scene of video type application program is " login video clip " Scene, the cpu resource and disk resource of mobile terminal influence the runnability of the scene, then corresponding to the scene identity of the scene System resource is cpu resource and disk resource.
It can be seen that in this example, the adjustment amount of corresponding system resource to be adjusted is identified by scene set, is so as to operate System can quickly generate the Performance Strategy for Optimizing of Run-time scenario, avoid the delay of complicated calculations flow higher, be advantageous to improve movement The real-time of the Run-time scenario of terminal optimized destination application.
In a possible example, the scene information includes the critical performance parameters of the Run-time scenario;The behaviour Make the adjustment amount that system determines the system resource to be adjusted of the Run-time scenario according to the scene information, including:Institute State the tune that operating system determines the resource to be adjusted of the Run-time scenario according to the critical performance parameters of the Run-time scenario Whole amount.
Wherein, critical performance parameters can include the frame per second of current internal operation scene, frame losing, network state information, Information such as CPU state information, electricity, battery temperature, interim card etc., unique restriction is not done herein.
It can be seen that in this example, the critical performance parameters that destination application can not collect operating system originally pass Pass operating system so that operating system can be targetedly to the performance of the current internal operation scene of destination application Optimize, i.e., the Performance Strategy for Optimizing of high accuracy is quickly determined according to critical performance parameters, to adjust in real time The configuration of the system resource of the destination application of operation, be advantageous to improve mobile terminal destination application run it is excellent The real-time of change and the degree of accuracy.
In a possible example, the destination application is video application, the current Run-time scenario To log in scene, the scene information for logging in scene includes the size, to be loaded of the resource updates bag of the login scene The size of internal storage data, the system resource to be adjusted include the reading speed of network bandwidth and internal storage data;The operation System determines the adjustment amount of the system resource to be adjusted of the Run-time scenario according to the scene information, including:It is described Operating system determines the adjustment amount of the network bandwidth of the login scene according to the size of the resource updates bag, is treated according to described The size of the internal storage data of loading determines the adjustment amount of the reading speed of the internal storage data of the login scene.
It can be seen that in this example, mobile terminal is directed to the login scene of Video Applications, can be according to network bandwidth and internal memory number According to reading speed accurately determine the adjustment amount of network bandwidth and the adjustment amount of the reading speed of internal storage data, avoid log in scene Interim card, improve the real-time for logging in scene and the degree of accuracy of mobile terminal optimization Video Applications.
In a possible example, the destination application is video application, the current Run-time scenario Scene is played for the small screen, the scene information that the small screen plays scene includes the frame per second of smaller screen broadcast window and the boundary of user Face refresh rate, the system resource to be adjusted include network bandwidth and CPU;The operating system is according to the scene information The adjustment amount of the system resource to be adjusted of the Run-time scenario is determined, including:The operating system is according to the smaller screen The frame per second of broadcast window and the interface refresh rate of the user, determine that the small screen plays the adjustment of the network bandwidth of scene The configuration parameter of amount and CPU, the configuration parameter of the CPU include CPU quantity and working frequency.
It can be seen that in this example, mobile terminal plays scene for the small video of Video Applications, can play window according to smaller screen The frame per second of mouth and the interface refresh rate of user accurately determine the adjustment amount of network bandwidth and CPU configuration parameter, avoid neglecting Frequency plays scene interim card, and the small video for improving mobile terminal optimization Video Applications plays real-time and the degree of accuracy of scene.
In a possible example, the destination application is video application, the current Run-time scenario For barrage scene, the scene information of the barrage scene includes frame per second and barrage quantity, and the system resource to be adjusted includes Network bandwidth and CPU;The operating system determines the system to be adjusted of the Run-time scenario according to the scene information The adjustment amount of resource, including:The operating system determines the Netowrk tape of the barrage scene according to the frame per second and barrage quantity Wide adjustment amount and CPU configuration parameter, the configuration parameter of the CPU include CPU quantity and working frequency.
It can be seen that in this example, mobile terminal is directed to the barrage scene of Video Applications, can be accurate according to frame per second and barrage quantity The adjustment amount of network bandwidth and CPU configuration parameter are determined, avoids barrage scene interim card, improving mobile terminal optimization video should The real-time of barrage scene and the degree of accuracy.
In a possible example, the destination application is video application, the current Run-time scenario For played in full screen scene, the scene information of the played in full screen scene includes frame per second and definition, the system money to be adjusted Source includes network bandwidth and CPU;The operating system determines the described to be adjusted of the Run-time scenario according to the scene information System resource adjustment amount, including:The operating system determines the played in full screen scene according to the frame per second and definition The adjustment amount of network bandwidth and CPU configuration parameter, the configuration parameter of the CPU includes CPU quantity and working frequency.
It can be seen that in this example, mobile terminal is directed to the played in full screen scene of Video Applications, can be according to frame per second and definition The configuration parameter of the accurate adjustment amount and CPU for determining network bandwidth, avoids played in full screen scene interim card, improves mobile terminal optimization The real-time of the played in full screen scene of Video Applications and the degree of accuracy.
As an example it is assumed that the critical performance parameters of " login video clip " scene of video type application program are frame per second X FPS, the system resource to be adjusted for being somebody's turn to do " login video clip " scene is cpu resource and GPU resource, and operating system is obtaining To after frame per second X FPS and cpu resource and GPU resource information, determine that the adjustment amount of cpu resource is A according to frame per second X FPS, really The adjustment amount for determining GPU resource is B, finally, the property of " login video clip " scene is somebody's turn to do according to adjustment amount A and adjustment amount B generations Can optimisation strategy.
In a possible example, the scene information also includes adjustment duration information;The operating system is according to institute The distribution that Performance Strategy for Optimizing adjusts the system resource of the Run-time scenario is stated, including:The operating system is in the adjustment The adjustment period adjusts the distribution of the system resource of the destination application according to the Performance Strategy for Optimizing corresponding to long message.
It can be seen that in this example, because operating system is that period progress resource adjustment is being adjusted corresponding to adjustment duration information, I.e. once adjustment duration operates the adjustment period, operating system can interrupt adjustment operation, can so avoid operating system mistake Carry out resource adjustment for a long time and influence the normal operation of system, be advantageous to improve the property of mobile terminal optimization aim application program The stability of energy.
In a possible example, the operating system receives the scene number that the destination application being currently running is sent Before bag, methods described also includes:The operating system receives the data channel foundation from the destination application please Ask, the data channel, which establishes request, includes the application identities of the destination application;The operating system is answered default When including the application identities of the destination application with logo collection, distribute data transfer for the destination application and connect Mouthful, the data transmission interface is used to transmit data between the destination application and the operating system, and the data are extremely Include the contextual data bag less.
Wherein, above-mentioned application identities set includes having permission the application identities for the application program that progressive can optimize, this Class application identities can be set by system, or actively be set by user, not do unique restriction herein.
It can be seen that in this example, because operating system is only for the application program configuration data biography for optimizing authority with performance Defeated interface, and then follow-up performance optimization is carried out, it can so avoid entering for not possessing the application program of performance optimization authority Row performance optimizes and causes extra resource loss, is advantageous to improve the level of resources utilization and the degree of accuracy of mobile terminal.
In a possible example, methods described also includes:The operating system receives and comes from the intended application journey The resource distribution interrupt requests of sequence;The operating system responds the resource distribution interrupt requests, cancels excellent according to the performance Change the distribution of the system resource of Run-time scenario described in Developing Tactics.
It can be seen that in this example, due to destination application can the adjustment operation of initiative operating system interrupt resources, have The delay of control adjusted beneficial to the resource for the Run-time scenario for reducing destination application, improves real-time.
It is consistent with the embodiment shown in described Fig. 2, referring to Fig. 3, Fig. 3 is a kind of resource that the embodiment of the present application provides The schematic flow sheet of collocation method, applied to mobile terminal, on the mobile terminal operation have operating system and one it is multiple should With program, the contextual data bag includes the scene information of the destination application and system resource to be adjusted.As schemed Show, this resource allocation method includes:
S301, the operating system receives the contextual data bag that the destination application being currently running is sent, described Contextual data bag includes the scene information of the current Run-time scenario of the destination application and system resource to be adjusted.
S302, the operating system determine that the system to be adjusted of the Run-time scenario provides according to the scene information The adjustment amount in source, wherein, the scene information includes the scene identity of the Run-time scenario.
S303, the operating system identify by inquiry of the scene identity of the Run-time scenario, inquire about the default mesh The mapping relations between the scene identity of Run-time scenario of application program and the adjustment amount of the system resource to be adjusted are marked, are obtained Take the adjustment amount of the system resource to be adjusted corresponding to the scene identity of the Run-time scenario.
S304, the operating system generate the property of the Run-time scenario according to the adjustment amount of the system resource to be adjusted Can optimisation strategy.
S305, the operating system adjust point of the system resource of the Run-time scenario according to the Performance Strategy for Optimizing Match somebody with somebody.
As can be seen that in the embodiment of the present application, the operating system of mobile terminal receives the destination application being currently running The contextual data bag of transmission, contextual data bag include the scene information of the current Run-time scenario of destination application and to be adjusted System resource;Operating system determines the Performance Strategy for Optimizing of Run-time scenario according to scene information and system resource to be adjusted;Behaviour Make the distribution that system adjusts the system resource of Run-time scenario according to Performance Strategy for Optimizing.Because contextual data bag includes intended application The scene information of program and system resource to be adjusted, and contextual data bag is sent by the destination application being currently running, behaviour Make system can be become more meticulous according to scene information and system resource to be adjusted determine Run-time scenario Performance Strategy for Optimizing, and by Operating system adjusts the configuration of the system resource of Run-time scenario according to the Performance Strategy for Optimizing in real time, so as to realize by operating system Real-time performance optimization is carried out to the destination application in running, is advantageous to improve mobile terminal control targe application journey The Run-time scenario that sequence is currently running carries out the real-time and accuracy of performance optimization.
Further, since operating system can get the scene information of the current Run-time scenario of destination application and treat The system resource of adjustment, so as to which operating system can determine the adjustment amount of system resource to be adjusted in real time, and it is based on the adjustment Amount generates the Performance Strategy for Optimizing of the Run-time scenario, so realizes the internal operation field to destination application by operating system Scape carries out accurate resource adjustment, avoids using unified systemic hierarchial Performance Strategy for Optimizing power consumption higher, advantageously reduces shifting Dynamic terminal control destination application carries out the power consumption of performance optimization in the process of running, improves the endurance of mobile terminal.
In addition, the adjustment amount of corresponding system resource to be adjusted is identified by scene set, so as to which operating system can be fast Fast-growing avoids the delay of complicated calculations flow higher, is advantageous to improve mobile terminal optimization into the Performance Strategy for Optimizing of Run-time scenario The real-time of the Run-time scenario of destination application.
It is consistent with the embodiment shown in described Fig. 2, referring to Fig. 4, Fig. 4 is a kind of resource that the embodiment of the present application provides The schematic flow sheet of collocation method, being run applied to mobile terminal, on the mobile terminal has operating system and one or more Application program, the contextual data bag include the scene information of the destination application and the adjustment of system resource to be adjusted Amount, the scene information include scene identity.As illustrated, this resource allocation method includes:
S401, the operating system receive the data channel from the destination application and establish request, the data Path Setup asks the application identities for including the destination application.
S402, the operating system include the application identities of the destination application in default application identities set When, for the destination application distribute data transmission interface, the data transmission interface be used for the destination application and Data are transmitted between the operating system, the data comprise at least the contextual data bag.
S403, the operating system obtain the scene identity and system to be adjusted money from the contextual data bag Source.
S404, the operating system identify by inquiry of the scene identity of the Run-time scenario, inquire about the default mesh The mapping relations between the scene identity of Run-time scenario of application program and the adjustment amount of the system resource to be adjusted are marked, are obtained Take the adjustment amount of the system resource to be adjusted corresponding to the scene identity of the Run-time scenario.
S405, the operating system generate the property of the Run-time scenario according to the adjustment amount of the system resource to be adjusted Can optimisation strategy.
S406, the operating system adjust point of the system resource of the Run-time scenario according to the Performance Strategy for Optimizing Match somebody with somebody.
S407, the operating system receive the resource distribution interrupt requests from the destination application;
S408, the operating system respond the resource distribution interrupt requests, cancel and being adjusted according to the Performance Strategy for Optimizing The distribution of the system resource of the whole Run-time scenario.
As can be seen that in the embodiment of the present application, the operating system in the operating system space of mobile terminal, which receives, to be currently running The contextual data bag that sends of destination application, contextual data bag includes the scene of the current Run-time scenario of destination application Information and system resource to be adjusted;Operating system determines the property of Run-time scenario according to scene information and system resource to be adjusted Can optimisation strategy;Operating system adjusts the distribution of the system resource of Run-time scenario according to Performance Strategy for Optimizing.Due to contextual data Include the scene information of destination application and system resource to be adjusted, and contextual data bag should by the target being currently running Sent with program, operating system can become more meticulous according to scene information and system resource to be adjusted determines the performance of Run-time scenario Optimisation strategy, and adjust by operating system the configuration of the system resource of destination application in real time according to the Performance Strategy for Optimizing, Real-time performance optimization is carried out to the destination application in running by operating system so as to realize, is advantageous to improve movement The Run-time scenario that terminal control destination application is currently running carries out the real-time and accuracy of performance optimization.
Further, since operating system can get the scene information of the current Run-time scenario of destination application and treat The system resource of adjustment, so as to which operating system can determine the adjustment amount of system resource to be adjusted in real time, and it is based on the adjustment Amount generates the Performance Strategy for Optimizing of the Run-time scenario, so realizes the internal operation field to destination application by operating system Scape carries out accurate resource adjustment, avoids using unified systemic hierarchial Performance Strategy for Optimizing power consumption higher, advantageously reduces shifting Dynamic terminal control destination application carries out the power consumption of performance optimization in the process of running, improves the endurance of mobile terminal.
In addition, the adjustment amount of corresponding system resource to be adjusted is identified by scene set, so as to which operating system can be fast Fast-growing avoids the delay of complicated calculations flow higher, is advantageous to improve mobile terminal optimization into the Performance Strategy for Optimizing of Run-time scenario The real-time of the Run-time scenario of destination application.
Further, since operating system is entered only for the application program configuration data coffret for optimizing authority with performance And follow-up performance optimization is carried out, it can so avoid carrying out performance optimization for not possessing the application program of performance optimization authority And extra resource loss is caused, be advantageous to improve the level of resources utilization and the degree of accuracy of mobile terminal.
Further, since destination application can initiative operating system interrupt resources adjustment operation, advantageously reduce The delay of control of the resource adjustment of the Run-time scenario of destination application, improves real-time.
It is consistent with the embodiment shown in described Fig. 2, Fig. 3, Fig. 4, provided referring to Fig. 5, Fig. 5 is the embodiment of the present application A kind of structural representation of mobile terminal, the running of mobile terminal have one or more application programs and operating system, as schemed institute Showing, the mobile terminal includes processor, memory, communication interface and one or more programs, wherein, it is one or more of Program is different from one or more of application programs, and one or more of programs are stored in the memory, and And be configured by the computing device, described program includes being used for the instruction for performing following steps;
The contextual data bag that the destination application being currently running is sent is received, the contextual data bag includes described The scene information of the current Run-time scenario of destination application and system resource to be adjusted;
The Performance Strategy for Optimizing of the Run-time scenario is determined according to the scene information and the system resource to be adjusted;
The distribution of the system resource of the Run-time scenario is adjusted according to the Performance Strategy for Optimizing.
As can be seen that in the embodiment of the present application, the operating system of mobile terminal receives the destination application being currently running The contextual data bag of transmission, contextual data bag include the scene information of the current Run-time scenario of destination application and to be adjusted System resource;Operating system determines the Performance Strategy for Optimizing of Run-time scenario according to scene information and system resource to be adjusted;Behaviour Make the distribution that system adjusts the system resource of Run-time scenario according to Performance Strategy for Optimizing.Because contextual data bag includes intended application The scene information of program and system resource to be adjusted, and contextual data bag is sent by the destination application being currently running, behaviour Make system can be become more meticulous according to scene information and system resource to be adjusted determine Run-time scenario Performance Strategy for Optimizing, and by Operating system adjusts the configuration of the system resource of Run-time scenario according to the Performance Strategy for Optimizing in real time, so as to realize by operating system Real-time performance optimization is carried out to the destination application in running, is advantageous to improve mobile terminal control targe application journey The Run-time scenario that sequence is currently running carries out the real-time and accuracy of performance optimization.
In a possible example, the fortune is being determined according to the scene information and the system resource to be adjusted In terms of the Performance Strategy for Optimizing of row scene, the instruction in described program is specifically used for performing following operate:Believed according to the scene Breath determines the adjustment amount of the system resource to be adjusted of the Run-time scenario;And according to the system resource to be adjusted Adjustment amount generate the Performance Strategy for Optimizing of the Run-time scenario.
In a possible example, the scene information includes the scene identity of the Run-time scenario;According to In terms of scene information determines the adjustment amount of the system resource to be adjusted of the Run-time scenario, the instruction tool in described program Body is used to perform following operation:Identified by inquiry of the scene identity of the Run-time scenario, inquire about the default intended application Mapping relations between the adjustment amount of the scene identity of the Run-time scenario of program and the system resource to be adjusted, described in acquisition The adjustment amount of the system resource to be adjusted corresponding to the scene identity of Run-time scenario, according to the system resource to be adjusted Adjustment amount generate the Performance Strategy for Optimizing of the Run-time scenario.
In a possible example, the scene information includes the critical performance parameters of the Run-time scenario;In basis In terms of the scene information determines the adjustment amount of the system resource to be adjusted of the Run-time scenario, the finger in described program Order is specifically used for performing following operate:Treated according to the critical performance parameters of the Run-time scenario determine the Run-time scenario The adjustment amount of adjustresources, the performance that the Run-time scenario is generated according to the adjustment amount of the system resource to be adjusted optimize plan Slightly.
In a possible example, the scene information also includes adjustment duration information;Optimize according to the performance In terms of the distribution of the system resource of Run-time scenario described in Developing Tactics, the instruction in described program is specifically used for performing following grasp Make:The period is being adjusted corresponding to the adjustment duration information according to the Performance Strategy for Optimizing adjustment destination application The distribution of system resource.
In a possible example, before the contextual data bag that the destination application being currently running is sent is received Aspect, the instruction in described program are specifically used for performing following operate:Receive the data channel from the destination application Request is established, the data channel, which establishes request, includes the application identities of the destination application;And in default application When logo collection includes the application identities of the destination application, distribute data transfer for the destination application and connect Mouthful, the data transmission interface is used to transmit data between the destination application and the operating system, and the data are extremely Include the contextual data bag less.
In a possible example, the instruction in described program is also particularly useful for operation below performing:Receive from institute State the resource distribution interrupt requests of destination application;And the response resource distribution interrupt requests, cancel according to the property Energy optimisation strategy adjusts the distribution of the system resource of the Run-time scenario.
In a possible example, the system resource includes at least one in the following resource of the mobile terminal Kind:Cpu resource, GPU resource, memory bandwidth resource, disk resource, Internet resources.
Above-described embodiment is mainly described from the angle of method side implementation procedure to the scheme of the embodiment of the present application.Can With understanding, for mobile terminal in order to realize the function, it comprises perform the corresponding hardware configuration of each function and/or soft Part module.Those skilled in the art should be readily appreciated that, each example described with reference to the embodiments described herein Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly performed in a manner of hardware or computer software driving hardware, application-specific and design constraint depending on technical scheme Condition.Professional and technical personnel can specifically realize described function to each using distinct methods, but this Realize it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to methods described example to mobile terminal, for example, can Each functional unit is divided with corresponding each function, two or more functions can also be integrated in a processing unit In.The integrated unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.Need It is noted that the division in the embodiment of the present application to unit is schematical, only a kind of division of logic function is actual real There can be other dividing mode now.
In the case of using integrated unit, Fig. 6 shows device for allocating resources involved in the embodiment A kind of possible functional unit composition block diagram.Device for allocating resources 600 is applied to mobile terminal, and being run on the mobile terminal has Operating system and one or more application programs, device for allocating resources 600 include processing unit 602 and communication unit 603.Processing The action that unit 602 is used for device for allocating resources is controlled management, for example, processing unit 602 is used to support resource distribution Device performs step S401-S408 and/or use in step S301-S305, Fig. 4 in step S201-S203, Fig. 3 in Fig. 2 In other processes of techniques described herein.Device for allocating resources can also include memory cell 601, for storage program generation Code and data.
The processing unit 602, for receiving the destination application being currently running by the communication unit 603 The contextual data bag of transmission, the contextual data bag include the scene information and system to be adjusted money of the destination application Source;And for determining that the performance of the Run-time scenario optimizes plan according to the scene information and the system resource to be adjusted Slightly;And the distribution of the system resource for adjusting the Run-time scenario according to the Performance Strategy for Optimizing.
In a possible example, the fortune is being determined according to the scene information and the system resource to be adjusted In terms of the Performance Strategy for Optimizing of row scene, the processing unit 602 is specifically used for:The operation is determined according to the scene information The adjustment amount of the system resource to be adjusted of scene;And institute is generated according to the adjustment amount of the system resource to be adjusted State the Performance Strategy for Optimizing of Run-time scenario.
In a possible example, the scene information includes the scene identity of the Run-time scenario;In the basis In terms of the scene information determines the adjustment amount of the system resource to be adjusted of the Run-time scenario, the processing unit 602 are specifically used for:Identified by inquiry of the scene identity of the Run-time scenario, inquire about the fortune of the default destination application Mapping relations between the adjustment amount of the scene identity of row scene and the system resource to be adjusted, obtain the Run-time scenario Scene identity corresponding to the system resource to be adjusted adjustment amount;And the tune according to the system resource to be adjusted Whole amount generates the Performance Strategy for Optimizing of the Run-time scenario.
In a possible example, the scene information includes the critical performance parameters of the Run-time scenario;Described In terms of the adjustment amount that the system resource to be adjusted of the Run-time scenario is determined according to the scene information, the processing is single Member 602 is specifically used for:The resource to be adjusted of the Run-time scenario is determined according to the critical performance parameters of the Run-time scenario Adjustment amount, and generate according to the adjustment amount of the system resource to be adjusted the Performance Strategy for Optimizing of the Run-time scenario.
In a possible example, the scene information also includes adjustment duration information;Described according to the performance In terms of optimisation strategy adjusts the distribution of the system resource of the Run-time scenario, the processing unit 602 is specifically used for:In the tune The adjustment period adjusts the system resource of the destination application according to the Performance Strategy for Optimizing corresponding to whole duration information Distribution.
In a possible example, the processing unit 602 is additionally operable to:In the destination application that reception is currently running Before the contextual data bag of transmission, receive the data channel from the destination application and establish request, the data channel Establishing request includes the application identities of the destination application;And include the target in default application identities set During the application identities of application program, data transmission interface, and the control data transfer are distributed for the destination application Interface is used to transmit data between the destination application and the operating system, and the data comprise at least the scene number According to bag.
In a possible example, the processing unit 602 is additionally operable to:Receive the money from the destination application Source configures interrupt requests;And the response resource distribution interrupt requests, cancel according to described in Performance Strategy for Optimizing adjustment The distribution of the system resource of Run-time scenario.
In a possible example, the system resource includes at least one in the following resource of the mobile terminal Kind:Cpu resource, GPU resource, memory bandwidth resource, disk resource, Internet resources.
Wherein, processing unit 602 can be processor or controller, and communication unit 603 can be processor and program fortune Internal communications interface between row space, such as processor and the communication interface in operating system space, or processor and user's sky Between communication interface etc., memory cell 601 can be memory.
A kind of structural representation of smart mobile phone 700, the intelligence are provided referring to Fig. 7, Fig. 7 is the embodiment of the present application Mobile phone 700 includes:Housing 710, touching display screen 720, mainboard 730, battery 740 and subplate 750, before being provided with mainboard 730 Camera 731, processor 732, memory 733, power management chip 734 etc. are put, oscillator 751, integral sound are provided with subplate Chamber 752, VOOC, which dodge, fills interface 753 and fingerprint recognition module 754.
Wherein, operation has operating system and one or more application programs, destination application operation on the smart mobile phone In user's space, in operating system space, operating system receives the destination application being currently running and sent operating system Contextual data bag, the contextual data bag includes the scene information of the current Run-time scenario of destination application and to be adjusted System resource;Operating system determines that the performance of Run-time scenario optimizes plan according to scene information and the system resource to be adjusted Slightly;Operating system adjusts the distribution of the system resource of Run-time scenario according to Performance Strategy for Optimizing.
The processor 732 is the control centre of smart mobile phone, utilizes various interfaces and the whole smart mobile phone of connection Various pieces, by running or performing the software program and/or module that are stored in memory 733, and call and be stored in Data in memory 733, the various functions and processing data of smart mobile phone are performed, so as to carry out overall prison to smart mobile phone Control.Optionally, processor 732 may include one or more processing units;Preferably, processor 732 can integrate application processor And modem processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulatedemodulate Processor is adjusted mainly to handle radio communication.It is understood that the modem processor can not also be integrated into processor In 732.The processor 732 for example can be central processing unit (Central Processing Unit, CPU), general procedure Device, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application- Specific Integrated Circuit, ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, transistor logic, hardware component or its any combination.It can To realize or perform the various exemplary logic blocks with reference to described by present disclosure, module and circuit.The place It can also be the combination for realizing computing function to manage device, such as is combined comprising one or more microprocessors, DSP and microprocessor Combination etc..
The memory 733 can be used for storage software program and module, and processor 732 is stored in memory by operation 733 software program and module, so as to perform the various function application of smart mobile phone and data processing.Memory 733 can Mainly include storing program area and storage data field, wherein, storing program area can storage program area, needed at least one function Application program etc.;Storage data field can store uses created data etc. according to smart mobile phone.In addition, memory 733 High-speed random access memory can be included, can also include nonvolatile memory, a for example, at least disk memory, Flush memory device or other volatile solid-state parts.The memory 733 for example can be random access memory (Random Access Memory, RAM), flash memory, read-only storage (Read Only Memory, ROM), the read-only storage of erasable programmable Device (Erasable Programmable ROM, EPROM), EEPROM (Electrically EPROM, EEPROM), register, hard disk, mobile hard disk, read-only optical disc (CD-ROM) or any other shape well known in the art The storage medium of formula.
The embodiment of the present application also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium is stored for electricity The computer program that subdata exchanges, the computer program cause computer to perform any as described in methods described embodiment The part or all of step of method, the computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer-readable recording medium of machine program, the computer program are operable to make computer perform such as the side The part or all of step of either method described in method embodiment.The computer program product can be a software installation Bag, the computer include mobile terminal.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement because According to the application, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application It is necessary.
In the described embodiment, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.The integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer-readable access to memory.Based on such understanding, the technical scheme of the application substantially or Person say the part to be contributed to prior art or the technical scheme all or part can in the form of software product body Reveal and, the computer software product is stored in a memory, including some instructions are causing a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the application Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of the embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable memory, memory It can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is set forth, and the explanation of above example is only intended to help and understands the present processes and its core concept; Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications There is change part, in summary, this specification content should not be construed as the limitation to the application.

Claims (10)

1. a kind of resource allocation method, it is characterised in that being run applied to mobile terminal, on the mobile terminal has operating system And one or more application programs, methods described include:
The operating system receives the contextual data bag that the destination application being currently running is sent, the contextual data bag Scene information and system resource to be adjusted including the current Run-time scenario of the destination application;
The operating system determines the performance of the Run-time scenario according to the scene information and the system resource to be adjusted Optimisation strategy;
The operating system adjusts the distribution of the system resource of the Run-time scenario according to the Performance Strategy for Optimizing.
2. according to the method for claim 1, it is characterised in that the operating system is according to the scene information and described treats The system resource of adjustment determines the Performance Strategy for Optimizing of the Run-time scenario, including:
The operating system determines the adjustment of the system resource to be adjusted of the Run-time scenario according to the scene information Amount;
The performance that the operating system generates the Run-time scenario according to the adjustment amount of the system resource to be adjusted optimizes plan Slightly.
3. according to the method for claim 2, it is characterised in that the scene information includes the scene mark of the Run-time scenario Know;The operating system determines the adjustment of the system resource to be adjusted of the Run-time scenario according to the scene information Amount, including:
The operating system identifies by inquiry of the scene identity of the Run-time scenario, inquires about the default destination application The scene identity of Run-time scenario and the adjustment amount of the system resource to be adjusted between mapping relations, obtain the operation The adjustment amount of the system resource to be adjusted corresponding to the scene identity of scene.
4. according to the method for claim 2, it is characterised in that the scene information includes the key of the Run-time scenario Can parameter;The operating system determines the tune of the system resource to be adjusted of the Run-time scenario according to the scene information Whole amount, including:
The operating system determines the money to be adjusted of the Run-time scenario according to the critical performance parameters of the Run-time scenario The adjustment amount in source.
5. according to the method described in claim any one of 1-4, it is characterised in that the scene information also includes long letter during adjustment Breath;The operating system adjusts the distribution of the system resource of the Run-time scenario according to the Performance Strategy for Optimizing, including:
The operating system is adjusting the period according to described in Performance Strategy for Optimizing adjustment corresponding to the adjustment duration information The distribution of the system resource of destination application.
6. according to the method described in claim any one of 1-5, it is characterised in that the operating system receives the mesh being currently running Before marking the contextual data bag that application program is sent, methods described also includes:
The operating system receives the data channel from the destination application and establishes request, and the data channel is established please Asking includes the application identities of the destination application;
The operating system is described when default application identities set includes the application identities of the destination application Destination application distributes data transmission interface, and the data transmission interface is used for the destination application and the operation system Data are transmitted between system, the data comprise at least the contextual data bag.
7. according to the method described in claim any one of 1-6, it is characterised in that methods described also includes:
The operating system receives the resource distribution interrupt requests from the destination application;
The operating system responds the resource distribution interrupt requests, cancels and adjusts the operation according to the Performance Strategy for Optimizing The distribution of the system resource of scene.
A kind of 8. device for allocating resources, it is characterised in that applied to mobile terminal, the running of mobile terminal have operating system and One or more application programs, the device for allocating resources include processing unit and communication unit,
The processing unit, the scene sent for receiving the destination application being currently running by the communication unit Packet, the contextual data bag include the scene information of the current Run-time scenario of the destination application and to be adjusted are System resource;And for determining that the performance of the Run-time scenario is excellent according to the scene information and the system resource to be adjusted Change strategy;And the distribution of the system resource for adjusting the Run-time scenario according to the Performance Strategy for Optimizing.
A kind of 9. mobile terminal, it is characterised in that including processor, memory, communication interface and one or more programs, its In, one or more of programs are stored in the memory, and are configured by the computing device, described program Instruction including requiring the step in any one of 1-7 method for perform claim.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage is used for electron number According to the computer program of exchange, wherein, the computer program causes computer to perform as described in claim any one of 1-7 Method, the computer include mobile terminal.
CN201710776020.1A 2017-08-31 2017-08-31 Resource allocation method and Related product Pending CN107515787A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710776020.1A CN107515787A (en) 2017-08-31 2017-08-31 Resource allocation method and Related product
PCT/CN2018/101181 WO2019042171A1 (en) 2017-08-31 2018-08-17 Resource allocation method and product related thereto

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710776020.1A CN107515787A (en) 2017-08-31 2017-08-31 Resource allocation method and Related product

Publications (1)

Publication Number Publication Date
CN107515787A true CN107515787A (en) 2017-12-26

Family

ID=60723739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710776020.1A Pending CN107515787A (en) 2017-08-31 2017-08-31 Resource allocation method and Related product

Country Status (2)

Country Link
CN (1) CN107515787A (en)
WO (1) WO2019042171A1 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521608A (en) * 2018-03-13 2018-09-11 Oppo广东移动通信有限公司 Processing method, device, terminal and the storage medium of video file
CN109151966A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 terminal control method, device, terminal device and storage medium
CN109240833A (en) * 2018-09-26 2019-01-18 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN109304035A (en) * 2018-09-03 2019-02-05 Oppo广东移动通信有限公司 Acquisition methods, device, terminal device and the storage medium of game duration
CN109379548A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 Multi-media recording method, apparatus, terminal and storage medium
CN109376053A (en) * 2018-09-20 2019-02-22 Oppo广东移动通信有限公司 Data processing method, device and mobile terminal
WO2019042171A1 (en) * 2017-08-31 2019-03-07 Oppo广东移动通信有限公司 Resource allocation method and product related thereto
CN109542614A (en) * 2018-05-30 2019-03-29 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN110475325A (en) * 2019-08-22 2019-11-19 北京字节跳动网络技术有限公司 Power distribution method, device, terminal and storage medium
CN110784598A (en) * 2019-10-24 2020-02-11 北京小米移动软件有限公司 Information processing method, device and storage medium
CN111045816A (en) * 2019-11-06 2020-04-21 腾讯科技(深圳)有限公司 Performance optimization method and related device
WO2020078135A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Resource scheduling method and computer device
CN111124310A (en) * 2019-12-22 2020-05-08 苏州浪潮智能科技有限公司 Storage system scheduling optimization method and related components
CN111339048A (en) * 2020-02-28 2020-06-26 京东数字科技控股有限公司 Cache reading amount adjusting method and device, electronic equipment and storage medium
CN111797867A (en) * 2019-04-09 2020-10-20 Oppo广东移动通信有限公司 System resource optimization method and device, storage medium and electronic equipment
WO2021081912A1 (en) * 2019-10-31 2021-05-06 深圳市欢太科技有限公司 Parameter configuration method and apparatus, electronic device and computer-readable medium
CN115525362A (en) * 2022-09-29 2022-12-27 建信金融科技有限责任公司 Parameter changing method and device based on operating system kernel parameter adjusting platform
US11782756B2 (en) 2018-04-20 2023-10-10 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for scheduling processor core, and storage medium
WO2023227075A1 (en) * 2022-05-27 2023-11-30 华为技术有限公司 Resource management and control method, and electronic device and medium
CN118034613A (en) * 2024-04-11 2024-05-14 深圳市铨兴科技有限公司 Intelligent scheduling method, system and memory for storage space data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN106020990A (en) * 2016-06-30 2016-10-12 宇龙计算机通信科技(深圳)有限公司 Control method for central processing unit and terminal equipment
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106549880A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of resource allocation methods and terminal unit of terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8527996B2 (en) * 2010-01-07 2013-09-03 International Business Machines Corporation Method and system for performing a combination of throttling server, throttling network and throttling a data storage device by employing first, second and third single action tools
CN105511965A (en) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 Optimization method and system of current interface application program
CN107450988B (en) * 2017-07-31 2019-12-27 Oppo广东移动通信有限公司 Resource allocation method and related product
CN107426432B (en) * 2017-07-31 2019-09-17 Oppo广东移动通信有限公司 Resource allocation method and Related product
CN107515787A (en) * 2017-08-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430151A (en) * 2012-07-06 2013-12-04 华为终端有限公司 Method and apparatus for configuring resource
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106020990A (en) * 2016-06-30 2016-10-12 宇龙计算机通信科技(深圳)有限公司 Control method for central processing unit and terminal equipment
CN106549880A (en) * 2016-11-25 2017-03-29 珠海市魅族科技有限公司 A kind of resource allocation methods and terminal unit of terminal

Cited By (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019042171A1 (en) * 2017-08-31 2019-03-07 Oppo广东移动通信有限公司 Resource allocation method and product related thereto
US11513820B2 (en) 2018-03-13 2022-11-29 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation, terminal, and computer-readable storage medium
CN108521608B (en) * 2018-03-13 2021-01-08 Oppo广东移动通信有限公司 Video file processing method and device, terminal and storage medium
CN109408223A (en) * 2018-03-13 2019-03-01 广东欧珀移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108647088A (en) * 2018-03-13 2018-10-12 广东欧珀移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108536524A (en) * 2018-03-13 2018-09-14 Oppo广东移动通信有限公司 Resource regeneration method, device, terminal and storage medium
CN108762937A (en) * 2018-03-13 2018-11-06 Oppo广东移动通信有限公司 Configuration information transmitting method, acquisition methods, device and terminal
CN108874539A (en) * 2018-03-13 2018-11-23 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108536461A (en) * 2018-03-13 2018-09-14 Oppo广东移动通信有限公司 Resource regeneration method, device, terminal and storage medium
CN111240837A (en) * 2018-03-13 2020-06-05 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108536461B (en) * 2018-03-13 2021-08-10 Oppo广东移动通信有限公司 Resource updating method, device, terminal and storage medium
CN108521608A (en) * 2018-03-13 2018-09-11 Oppo广东移动通信有限公司 Processing method, device, terminal and the storage medium of video file
CN108874539B (en) * 2018-03-13 2020-08-25 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108647089A (en) * 2018-03-13 2018-10-12 广东欧珀移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108733427A (en) * 2018-03-13 2018-11-02 广东欧珀移动通信有限公司 Configuration method, device, terminal and the storage medium of input module
CN111240837B (en) * 2018-03-13 2023-12-26 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN108762937B (en) * 2018-03-13 2021-03-26 Oppo广东移动通信有限公司 Configuration information sending method, configuration information obtaining method, configuration information sending device, configuration information obtaining device and terminal
CN108647089B (en) * 2018-03-13 2020-01-24 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN109408223B (en) * 2018-03-13 2020-11-27 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
US11782756B2 (en) 2018-04-20 2023-10-10 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and apparatus for scheduling processor core, and storage medium
CN109542614A (en) * 2018-05-30 2019-03-29 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN109542614B (en) * 2018-05-30 2023-06-23 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
CN109304035B (en) * 2018-09-03 2022-04-19 Oppo广东移动通信有限公司 Game time length obtaining method and device, terminal equipment and storage medium
CN109304035A (en) * 2018-09-03 2019-02-05 Oppo广东移动通信有限公司 Acquisition methods, device, terminal device and the storage medium of game duration
CN109376053B (en) * 2018-09-20 2022-11-08 Oppo广东移动通信有限公司 Data processing method and device and mobile terminal
CN109376053A (en) * 2018-09-20 2019-02-22 Oppo广东移动通信有限公司 Data processing method, device and mobile terminal
CN109379548A (en) * 2018-09-26 2019-02-22 Oppo广东移动通信有限公司 Multi-media recording method, apparatus, terminal and storage medium
CN109379548B (en) * 2018-09-26 2021-04-06 Oppo广东移动通信有限公司 Multimedia recording method, device, terminal and storage medium
CN109240833A (en) * 2018-09-26 2019-01-18 Oppo广东移动通信有限公司 Resource allocation method, device, terminal and storage medium
WO2020078135A1 (en) * 2018-10-15 2020-04-23 华为技术有限公司 Resource scheduling method and computer device
CN109151966A (en) * 2018-10-15 2019-01-04 Oppo广东移动通信有限公司 terminal control method, device, terminal device and storage medium
CN109151966B (en) * 2018-10-15 2021-08-17 Oppo广东移动通信有限公司 Terminal control method, terminal control device, terminal equipment and storage medium
CN111797867A (en) * 2019-04-09 2020-10-20 Oppo广东移动通信有限公司 System resource optimization method and device, storage medium and electronic equipment
CN110475325A (en) * 2019-08-22 2019-11-19 北京字节跳动网络技术有限公司 Power distribution method, device, terminal and storage medium
CN110784598A (en) * 2019-10-24 2020-02-11 北京小米移动软件有限公司 Information processing method, device and storage medium
CN110784598B (en) * 2019-10-24 2022-04-08 北京小米移动软件有限公司 Information processing method, device and storage medium
WO2021081912A1 (en) * 2019-10-31 2021-05-06 深圳市欢太科技有限公司 Parameter configuration method and apparatus, electronic device and computer-readable medium
CN111045816A (en) * 2019-11-06 2020-04-21 腾讯科技(深圳)有限公司 Performance optimization method and related device
CN111045816B (en) * 2019-11-06 2021-07-16 腾讯科技(深圳)有限公司 Performance optimization method and related device
CN111124310A (en) * 2019-12-22 2020-05-08 苏州浪潮智能科技有限公司 Storage system scheduling optimization method and related components
CN111124310B (en) * 2019-12-22 2023-01-10 苏州浪潮智能科技有限公司 Storage system scheduling optimization method and related components
CN111339048A (en) * 2020-02-28 2020-06-26 京东数字科技控股有限公司 Cache reading amount adjusting method and device, electronic equipment and storage medium
WO2023227075A1 (en) * 2022-05-27 2023-11-30 华为技术有限公司 Resource management and control method, and electronic device and medium
CN115525362A (en) * 2022-09-29 2022-12-27 建信金融科技有限责任公司 Parameter changing method and device based on operating system kernel parameter adjusting platform
CN115525362B (en) * 2022-09-29 2023-09-15 建信金融科技有限责任公司 Parameter changing method and device based on kernel parameter adjusting platform of operating system
CN118034613A (en) * 2024-04-11 2024-05-14 深圳市铨兴科技有限公司 Intelligent scheduling method, system and memory for storage space data
CN118034613B (en) * 2024-04-11 2024-06-11 深圳市铨兴科技有限公司 Intelligent scheduling method, system and memory for storage space data

Also Published As

Publication number Publication date
WO2019042171A1 (en) 2019-03-07

Similar Documents

Publication Publication Date Title
CN107515787A (en) Resource allocation method and Related product
CN107577537A (en) Resource allocation method and Related product
CN107426432B (en) Resource allocation method and Related product
CN107547746B (en) Resource allocation method and related product
CN107483725A (en) Resource allocation method and Related product
CN107613107A (en) Resource allocation method and related product
CN107577533B (en) Resource allocation method and related product
US20220342713A1 (en) Information reporting method, apparatus and device, and storage medium
CN107589998A (en) Resource allocation method and Related product
CN107479970B (en) Resource allocation method and related product
Somula et al. A survey on mobile cloud computing: mobile computing+ cloud computing (MCC= MC+ CC)
CN107547745A (en) Resource allocation method and Related product
CN107450988B (en) Resource allocation method and related product
CN107547744A (en) Resource allocation method and Related product
CN107528976B (en) Resource allocation method and related product
CN107894920A (en) Resource allocation method and Related product
CN108037999A (en) Resource allocation method and Related product
CN107807852A (en) Application program capacity control method and equipment
CN107832141A (en) Application program progress control method and equipment
CN107589977A (en) Resource allocation method and related product
CN107995357A (en) Resource allocation method and device
US11016812B2 (en) Method for resource allocation and terminal device
CN107797868A (en) resource adjusting method and device
CN107786738B (en) Network control method and equipment
CN107635078A (en) Game control method and equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171226

RJ01 Rejection of invention patent application after publication