CN107517306A - Resource allocation method and Related product - Google Patents

Resource allocation method and Related product Download PDF

Info

Publication number
CN107517306A
CN107517306A CN201710642327.2A CN201710642327A CN107517306A CN 107517306 A CN107517306 A CN 107517306A CN 201710642327 A CN201710642327 A CN 201710642327A CN 107517306 A CN107517306 A CN 107517306A
Authority
CN
China
Prior art keywords
mentioned
destination application
performance parameters
application
operating system
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.)
Granted
Application number
CN201710642327.2A
Other languages
Chinese (zh)
Other versions
CN107517306B (en
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 CN201710642327.2A priority Critical patent/CN107517306B/en
Publication of CN107517306A publication Critical patent/CN107517306A/en
Priority to PCT/CN2018/097514 priority patent/WO2019024800A1/en
Priority to EP18186162.6A priority patent/EP3438825A1/en
Priority to US16/049,081 priority patent/US11016812B2/en
Application granted granted Critical
Publication of CN107517306B publication Critical patent/CN107517306B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of resource allocation method and Related product.Method includes:The operating system of mobile terminal receives the contextual data bag that the destination application being currently running is sent, and contextual data bag includes the scene identity and critical performance parameters for the destination application being currently running;The performance boost strategy for the destination application that operating system determines to be currently running according to scene identity and critical performance parameters;The distribution of the system resource for the destination application that operating system is currently running according to performance boost Developing Tactics.The embodiment of the present application is advantageous to improve real-time and accuracy that mobile terminal control targe application program 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, can improve mobile terminal control targe application Program 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, above-mentioned mobile terminal Upper operation has operating system and one or more application programs, the above method to include:
Aforesaid operations system receives the contextual data bag that the above-mentioned destination application being currently running is sent, above-mentioned scene number According to the scene identity and critical performance parameters for including destination application;
Aforesaid operations system determines above-mentioned destination application according to above-mentioned scene identity and above-mentioned critical performance parameters Performance boost strategy;
Aforesaid operations system according to the system resource of the above-mentioned above-mentioned destination application of performance boost Developing Tactics distribution.
Second aspect, the embodiment of the present application provide a kind of device for allocating resources, applied to mobile terminal, above-mentioned mobile terminal Upper operation has operating system and one or more application programs, and above-mentioned device for allocating resources includes processing unit and communication unit Member,
Above-mentioned processing unit, for receiving the above-mentioned destination application being currently running transmission by above-mentioned communication unit Contextual data bag, above-mentioned contextual data bag include the scene identity and critical performance parameters of destination application;And for root The performance boost strategy of above-mentioned destination application is determined according to above-mentioned scene identity and above-mentioned critical performance parameters;And for by According to the distribution of the system resource of the above-mentioned above-mentioned destination application of performance boost Developing Tactics.
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, said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned Manage device to perform, said procedure 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, above computer is readable Storage medium stores the computer program for electronic data interchange, wherein, above 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, above computer include mobile terminal.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein, above computer program product Non-transient computer-readable recording medium including storing computer program, above 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, above computer includes mobile terminal.
As can be seen that in the embodiment of the present application, the operating system in the operating system space of mobile terminal receives first The contextual data bag that the destination application of operation is sent, contextual data bag include the scene for the destination application being currently running Mark and critical performance parameters, secondly, the target that operating system determines to be currently running according to scene identity and critical performance parameters The performance boost strategy of application program, finally, the intended application journey that operating system is currently running according to performance boost Developing Tactics The distribution of the system resource of sequence.Be advantageous to improve real-time and essence that mobile terminal control targe application program carries out performance optimization Exactness.
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 above-mentioned 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 above-mentioned 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 above-mentioned 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 above situation, the embodiment of the present application proposes a kind of resource distribution of destination application for mobile terminal Method, in this method, the operating system in the operating system space of mobile terminal receives the destination application being currently running and sent Contextual data bag, contextual data bag includes the scene identity and critical performance parameters of destination application being currently running;Behaviour Make the performance boost strategy for the destination application that system determines to be currently running according to scene identity and critical performance parameters;Operation The distribution of the system resource for the destination application that system is currently running according to performance boost Developing Tactics.Realize by operating system Optimized for the performance of the internal operation scene of destination application in the process of running, be advantageous to improve mobile terminal control Destination application processed carries out the real-time and accuracy of performance optimization.
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, above-mentioned shifting are provided referring to Fig. 2, Fig. 2 is the embodiment of the present application Operation has operating system and one or more application programs in dynamic terminal, as illustrated, this resource allocation method includes:
S201, aforesaid operations system receives the contextual data bag that the above-mentioned destination application being currently running is sent, above-mentioned Contextual data bag includes the scene identity and critical performance parameters of destination application.
Wherein, destination application refer to installed in mobile terminal user's space third party application, the 3rd Such as can be the application of instant messaging class, game class application, the third party application can be pacified square application program by user Dress, can also be pre-installed before mobile terminal dispatches from the factory by developer, does not do unique restriction herein.
Wherein, contextual data bag can include the scene identity and key performance ginseng of the destination application being currently running Number, can also include following at least one:Application type mark, data format mark, start information, resource updates information, account (such as data send behavioural information, data receiver row for number logon information, interface type information, the behavioural information of destination application For information etc.) etc., do not do unique restriction herein.In addition, the form of contextual data bag for example can be java script object tag It is (JavaScript Object Notation, JSON), agreement buffering area (ProtocolBuffer, Protobuf), self-defined The data transmission formats such as form, unique restriction is not done herein.
In a possible example, lead between above-mentioned destination application and aforesaid operations system including preset data Road;Aforesaid operations system receives the contextual data bag that the above-mentioned destination application being currently running is sent, including:Aforesaid operations system System receives the contextual data bag sent by the above-mentioned above-mentioned destination application being currently running of above-mentioned preset data channel reception.
Wherein, when above-mentioned preset data passage is currently running for destination application, destination application and operating system Between the effective data transmission link established, not after operation, the data transmission link can be eliminated destination application.
In this possible example, above-mentioned destination application includes Data connection module, and aforesaid operations system includes number According to connection management module;The above method also includes:Above-mentioned data connection management module is established above-mentioned with above-mentioned Data connection module Preset data passage.
In this possible example, destination application can also include data collection module, data preparation module, preferential Level management module, data reception module, wherein, data reception module is used to collect the crucial letter of destination application operationally Breath;Data preparation module is used for the key message that finishing collecting arrives, and such as merges the information repeated, deletes information of redundancy etc.;It is excellent First level management module is used to classify to the key message being collected into according to the significance level of key message, and priority treatment is preferential The high key message of level, the relatively low key message of filtering priority, or reduction priority is relatively low in packet generating process Key message use;Data reception module is used to receive and parse through the data that the operating system of operating system is sent, and will It is passed to inside destination application.
S202, aforesaid operations system determine above-mentioned intended application journey according to above-mentioned scene identity and above-mentioned critical performance parameters The performance boost strategy of sequence.
Wherein, performance boost strategy refers to the money of the runnability for improving the above-mentioned 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.
Wherein, critical performance parameters can include information such as the frame per second of current internal operation scene, frame losing, interim card etc..
S203, aforesaid operations system is according to the system resource of the above-mentioned above-mentioned destination application of performance boost Developing Tactics Distribution.
In a possible example, above-mentioned resource includes at least one of following resource of above-mentioned mobile terminal:CPU Resource, GPU resource, memory bandwidth resource, disk resource, Internet resources.Wherein, Internet resources include the data network of mobile terminal The Internet resources of network, the Internet resources of Wireless Fidelity Wi-Fi network, the control parameter etc. of bluetooth module.
Wherein, it is at least one of cpu resource, GPU resource memory bandwidth resource, disk resource in said 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 said 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 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 identity of destination application being currently running And critical performance parameters, the intended application journey that its sub-operating system determines to be currently running according to scene identity and critical performance parameters The performance boost strategy of sequence, finally, the destination application that operating system is currently running according to performance boost Developing Tactics is The distribution for resource of uniting.Because contextual data bag is sent by the destination application that is currently running, and include scene identity and key Performance parameter, the scene identity and critical performance parameters can precisely determine that the performance when destination application is currently running carries Strategy is risen, and adjusts by operating system the configuration of the resource of destination application in real time according to the performance boost strategy, is realized Real-time performance optimization is carried out in the process of running to destination application by operating system, is advantageous to improve mobile terminal control Destination application carries out the real-time and accuracy of performance optimization.
In a possible example, aforesaid operations system includes management module and multiple policy modules;Aforesaid operations system System determines the performance boost strategy of above-mentioned destination application according to above-mentioned scene identity and above-mentioned critical performance parameters, including: Above-mentioned management module determines above-mentioned scene identity and above-mentioned critical performance parameters in above-mentioned contextual data bag;Above-mentioned management module Determine in above-mentioned multiple policy modules suitable for the policy module of above-mentioned scene identity;Above-mentioned policy module is according to above-mentioned key Energy parameter determines the performance boost strategy of above-mentioned destination application.
Wherein, each policy module in multiple policy modules is applicable to same type of application, such as the first strategy Module is applied to game class application, and the second policy module is applied to instant messaging class application etc..
Wherein, above-mentioned management module determines to be applied to the policy module of above-mentioned scene identity in above-mentioned multiple policy modules, Including:Above-mentioned management module identifies by inquiry of above-mentioned scene identity, inquires about each plan in default above-mentioned multiple policy modules The scene identity set that slightly module is applicable, policy module corresponding to scene identity set of the acquisition comprising above-mentioned scene identity are Suitable for the policy module of above-mentioned scene identity.The strategy of adaptation can be fast and accurately determined by inquiring about scene identity set Module.
It can be seen that in this example, the Precise control applied to different type can be realized by dividing multiple policy modules, And mobile terminal is without loading whole policy modules simultaneously, it is only necessary to loads the destination application pair of mobile terminal front stage operation The policy module answered, resource occupation is advantageously reduced, improve resource utilization and control efficiency.
In a possible example, above-mentioned contextual data bag identifies including data format;On above-mentioned management module determines The above-mentioned scene identity in contextual data bag and above-mentioned critical performance parameters are stated, including:Above-mentioned management module is according to above-mentioned data Data format indicated by format identification (FID) parses above-mentioned contextual data bag to determine that above-mentioned scene identity and above-mentioned key performance are joined Number.
Wherein, data format mark does not limit herein such as can be above-mentioned JSON, Protobuf.
It can be seen that in this example, because data format mark enables to operating system after contextual data bag is received, soon Speed identifies data transmission format used in the contextual data bag, so that the scene identity in the real time parsing contextual data bag And critical performance parameters, processing delay is reduced, is advantageous to improve data-handling efficiency, raising is directed to operating intended application journey Sequence carries out the real-time of resource adjustment.
In a possible example, above-mentioned policy module determines above-mentioned intended application journey according to above-mentioned critical performance parameters The performance boost strategy of sequence, including:Above-mentioned policy module determines that the resource of above-mentioned critical performance parameters association is for be adjusted System resource;The adjustment amount of above-mentioned system resource to be adjusted is determined according to above-mentioned critical performance parameters, is given birth to according to above-mentioned adjustment amount Into the performance boost strategy of above-mentioned destination application;The above-mentioned performance boost strategy for determining above-mentioned generation is above-mentioned intended application The performance boost strategy of program.
Wherein, critical performance parameters can include parameter type and parameter values, and the resource of critical performance parameters association can To inquire about the corresponding relation between the parameter type of default critical performance parameters and resource to determine, the corresponding relation for example may be used With including the corresponding relation between frame per second and GPU resource, interface rendering speed and combination of resources (such as:Cpu resource and GPU moneys Source) between corresponding relation etc., do not do unique restriction herein.Parameter values are used for the adjustment for determining system resource to be adjusted Amount, specifically can with it is default with reference to numeric ratio to accurately to determine adjustment amount.
It can be seen that in this example, the resource of critical performance parameters association is system resource to be adjusted, critical performance parameters Parameter values are further used for accurately determining the adjustment amount of the system resource to be adjusted, are advantageous to improve mobile terminal control mesh Mark the degree of accuracy that application program carries out running optimizatin.
In another possible example, above-mentioned policy module determines above-mentioned intended application according to above-mentioned critical performance parameters The performance boost strategy of program, including:Above-mentioned policy module determines the parameter type and parameter values of above-mentioned critical performance parameters Section, performance boost strategy bag corresponding to above-mentioned parameter type is determined, identified by inquiry of above-mentioned parameter values section, it is determined that on State the performance boost strategy for being applied to the parameter values section in performance boost strategy bag.
Wherein, the corresponding performance Promotion Strategy bag of a parameter type, the performance boost strategy bag include multiple performances Promotion Strategy, the corresponding parameter values section of each performance boost strategy.
It can be seen that in this example, it is key because the parameter type of critical performance parameters can determine performance boost strategy bag The parameter values of energy parameter can quickly determine the performance boost strategy in performance Promotion Strategy bag, that is, pass through inquiry mode The performance boost strategy of scene during adaptation currently operation is quickly determined, is advantageous to raising mobile terminal control targe application program and enters The speed and efficiency of row running optimizatin.
In a possible example, aforesaid operations system includes management module and policy module;Aforesaid operations system root The performance boost strategy of above-mentioned destination application is determined according to above-mentioned scene identity and above-mentioned critical performance parameters, including:It is above-mentioned Policy module obtains above-mentioned scene identity and above-mentioned critical performance parameters in above-mentioned contextual data bag;Above-mentioned policy module determines System resource to be adjusted corresponding to above-mentioned scene identity;Above-mentioned policy module is according to above-mentioned system resource to be adjusted and above-mentioned Critical performance parameters determine the performance boost strategy of above-mentioned destination application.
It can be seen that in this example, scene identity is used for the system resource to be adjusted for quickly determining destination application, crucial Performance parameter is used for the adjustment amount for accurately determining system resource to be adjusted, is advantageous to improve mobile terminal control targe application journey Sequence carries out the degree of accuracy and the speed of running optimizatin.Additionally due to destination application includes management module and policy module, the pipe Reason module and policy module cooperate the performance boost strategy for being able to confirm that destination application, i.e., using modular mode come The determination process of performance boost strategy is completed, each module is carried out the function of accordingly dividing, and individual module will not shadow when malfunctioning The state of another module is rung, is advantageous to improve the stability that mobile terminal control targe application program carries out running optimizatin.
In a possible example, above-mentioned policy module is according to above-mentioned system resource to be adjusted and above-mentioned key performance Parameter determines the performance boost strategy of above-mentioned destination application, including:Above-mentioned policy module is according to above-mentioned critical performance parameters In the parameter that is associated with above-mentioned system resource to be adjusted determine the adjustment amount of above-mentioned system resource to be adjusted;Above-mentioned tactful mould Root tuber generates the performance boost strategy of above-mentioned destination application according to above-mentioned adjustment amount.
Wherein, critical performance parameters can include parameter type and parameter values, and parameter values, which are used to further determine that, to be treated The adjustment amount of the system resource of adjustment, the adjustment amount can be specifically calculated by preset formula, wherein, it is different types of Weight of the parameter in calculation formula can be according to influence of the resource of the parameter association to the runnability of destination application The factor is correspondingly arranged, and can be specifically that the weight of the bigger parameter of factor of influence is bigger, is advantageous to improve adjustment amount calculating The degree of accuracy
It can be seen that in this example, the parameter associated in critical performance parameters with system resource to be adjusted is used to determine to wait to adjust The adjustment amount of whole system resource, avoid the parameter of dereferenced from impacting adjustment amount, be advantageous to improve mobile terminal control Destination application carries out the degree of accuracy of running optimizatin.
In a possible example, above-mentioned contextual data bag identifies including data format;On above-mentioned policy module determines The above-mentioned scene identity in contextual data bag and above-mentioned critical performance parameters are stated, including:
Data format mark of the above-mentioned management module in above-mentioned contextual data bag determines the number of above-mentioned contextual data bag According to form, identify indicated data format according to above-mentioned data format and parse above-mentioned contextual data bag, determine that above-mentioned target should Above-mentioned scene identity and above-mentioned critical performance parameters with program, and send above-mentioned scene identity and above-mentioned to above-mentioned policy module Critical performance parameters;It can be seen that contextual data bag is uniformly processed by management module, policy module only needs directly to receive plan The slightly result of module, is arranged such the function of being advantageous to lightweight and the policy module that becomes more meticulous, is easy to enter policy module The operations such as row is safeguarded, addition, improve the stability of a system.
Or
Above-mentioned management module sends above-mentioned contextual data bag to above-mentioned policy module;Above-mentioned policy module is according to above-mentioned scene Data format mark in packet determines the data format of above-mentioned contextual data bag, according to indicated by above-mentioned data format mark Data format parse above-mentioned contextual data bag, determine the above-mentioned scene identity of above-mentioned destination application and above-mentioned key performance Parameter;It can be seen that management module is not handled contextual data bag, but directly pass it to policy module and handled, So as to policy module after contextual data bag is transmitted need not persistently enable, can quick dormancy, advantageously reduce operating system Overall power, improve efficiency.
Or
Above-mentioned management module determines the first data format of above-mentioned policy module association, is detecting above-mentioned first data lattice When formula and inconsistent the second data format of above-mentioned contextual data bag, the second data format of above-mentioned contextual data bag is changed to be upper The first data format is stated, and the above-mentioned contextual data bag after above-mentioned conversion is sent to above-mentioned policy module;Above-mentioned policy module is pressed The above-mentioned contextual data bag after above-mentioned conversion is parsed according to above-mentioned first data format, determines the above-mentioned field of above-mentioned destination application Scape identifies and above-mentioned critical performance parameters.It can be seen that management module can change the contextual data bag of policy module None- identified The contextual data bag that can be identified into policy module, and pass to policy module and handled, avoid because format differences can not be just Scene identity and critical performance parameters really are determined, is advantageous to improve mobile terminal as destination application progress in operation accurately The success rate of resource distribution.
In a possible example, above-mentioned policy module determines system money to be adjusted corresponding to above-mentioned scene identity Source, including:Above-mentioned policy module identifies by inquiry of above-mentioned scene identity, inquires about default system resource and scene to be adjusted Mapping relations between mark, determine system resource to be adjusted corresponding to above-mentioned scene identity.It can be seen that closed by inquiring about mapping It is that mode can quickly determine system resource to be adjusted, is advantageous to raising mobile terminal control targe application program and is run The speed of optimization.
It is consistent with the embodiment shown in above-mentioned 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 above-mentioned mobile terminal operation have operating system and one or more Individual application program, aforesaid operations system include management module and multiple policy modules, and each policy module is used to determine identical answer With the performance boost strategy of the application program at least one application program of type.As illustrated, this resource allocation method bag Include:
S301, aforesaid operations system receives the contextual data bag that the above-mentioned destination application being currently running is sent, above-mentioned Contextual data bag includes the scene identity and critical performance parameters of destination application.
S302, above-mentioned management module identify indicated data format according to above-mentioned data format and parse above-mentioned contextual data Wrap to determine above-mentioned scene identity and above-mentioned critical performance parameters.
S303, above-mentioned management module determine to be applied to the policy module of above-mentioned scene identity in above-mentioned multiple policy modules.
S304, above-mentioned policy module determine the performance boost plan of above-mentioned destination application according to above-mentioned critical performance parameters Slightly.
S305, aforesaid operations system is according to the system resource of the above-mentioned above-mentioned destination application of performance boost Developing Tactics Distribution.
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 identity of destination application being currently running And critical performance parameters, secondly, the intended application that operating system determines to be currently running according to scene identity and critical performance parameters The performance boost strategy of program, finally, the destination application that operating system is currently running according to performance boost Developing Tactics The distribution of system resource.Because contextual data bag is sent by the destination application that is currently running, and include scene identity and pass Key performance parameter, the scene identity and critical performance parameters can precisely determine the performance when destination application is currently running Promotion Strategy, and adjust by operating system the configuration of the resource of destination application in real time according to the performance boost strategy, realize By operating system carry out real-time performance optimization in the process of running to destination application, be advantageous to improve mobile terminal control Destination application processed carries out the real-time and accuracy of performance optimization.
In addition, the Precise control applied to different type can be realized by dividing multiple policy modules, and it is mobile whole End is without loading whole policy modules simultaneously, it is only necessary to loads tactful corresponding to the destination application of mobile terminal front stage operation Module, the resource occupation of mobile terminal is advantageously reduced, improve resource utilization and control efficiency.
Further, since data format mark enables to operating system to be quickly recognized after contextual data bag is received Data transmission format used in the contextual data bag, so as to the scene identity in the real time parsing contextual data bag and key Energy parameter, reduces processing delay, is advantageous to improve data-handling efficiency, raising is provided for operating destination application The real-time of source adjustment.
It is consistent with the embodiment shown in above-mentioned 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 above-mentioned mobile terminal has operating system and one or more Destination application, aforesaid operations system include management module, multiple policy modules and data connection management module, each strategy Module is used to determine the performance boost strategy of the application program at least one application program of same application type, above-mentioned target Application program includes Data connection module, and above-mentioned contextual data bag includes the scene identity and key performance ginseng of destination application Number, above-mentioned contextual data bag identify including data format.As illustrated, this resource allocation method includes:
S401, above-mentioned data connection management module establish preset data passage with above-mentioned Data connection module.
S402, above-mentioned data connection management module are sent by the above-mentioned destination application of above-mentioned preset data channel reception Contextual data bag.
S403, above-mentioned management module identify indicated data format according to above-mentioned data format and parse above-mentioned contextual data Bag, determines the above-mentioned scene identity of above-mentioned destination application and above-mentioned critical performance parameters,
S404, above-mentioned management module determine policy module corresponding with above-mentioned scene identity in above-mentioned multiple policy modules, And send above-mentioned scene identity and above-mentioned critical performance parameters to above-mentioned policy module.
S405, above-mentioned policy module determine that the resource of above-mentioned critical performance parameters association is system resource to be adjusted, root The adjustment amount of above-mentioned system resource to be adjusted is determined according to above-mentioned critical performance parameters.
S406, above-mentioned policy module determine above-mentioned mesh according to above-mentioned system resource to be adjusted and above-mentioned critical performance parameters Mark the performance boost strategy of application program.
S407, aforesaid operations system is according to the system resource of the above-mentioned above-mentioned destination application of performance boost Developing Tactics Distribution.
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 identity of destination application being currently running And critical performance parameters, secondly, the intended application that operating system determines to be currently running according to scene identity and critical performance parameters The performance boost strategy of program, finally, the destination application that operating system is currently running according to performance boost Developing Tactics The distribution of system resource.Because contextual data bag is sent by the destination application that is currently running, and include scene identity and pass Key performance parameter, the scene identity and critical performance parameters can precisely determine the performance when destination application is currently running Promotion Strategy, and adjust by operating system the configuration of the resource of destination application in real time according to the performance boost strategy, realize By operating system carry out real-time performance optimization in the process of running to destination application, be advantageous to improve mobile terminal control Destination application processed carries out the real-time and accuracy of performance optimization.
In addition, scene identity is used for the system resource to be adjusted for quickly determining destination application, critical performance parameters For accurately determining the adjustment amount of system resource to be adjusted, be advantageous to raising mobile terminal control targe application program and transported The degree of accuracy of row optimization and speed.
Additionally due to destination application includes management module and policy module, the management module and policy module, which are matched somebody with somebody, to be closed To be able to confirm that the performance boost strategy of destination application, i.e., the determination of performance boost strategy is completed using modular mode Process, each module are carried out the function of accordingly dividing, and individual module does not interfere with the state of another module, had when malfunctioning Beneficial to the stability for improving mobile terminal control targe application program progress running optimizatin.
In addition, the parameter associated in critical performance parameters with system resource to be adjusted is used to determine system money to be adjusted The adjustment amount in source, avoid the parameter of dereferenced from impacting adjustment amount, be advantageous to improve mobile terminal control targe application journey Sequence carries out the degree of accuracy of running optimizatin.
In addition, contextual data bag is uniformly processed by management module, policy module only needs directly to receive tactful mould The result of block, the function of being advantageous to lightweight and the policy module that becomes more meticulous is arranged such, is easy to tie up policy module The operations such as shield, addition, improve the stability of a system.
It is consistent with the embodiment shown in above-mentioned 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, said one or multiple Program is different from said one or multiple application programs, and said one or multiple programs are stored in above-mentioned memory, and And be configured by above-mentioned computing device, said procedure includes being used for the instruction for performing following steps;
The contextual data bag that the above-mentioned destination application being currently running is sent is received, above-mentioned contextual data bag includes target The scene identity and critical performance parameters of application program;
The performance boost strategy of above-mentioned destination application is determined according to above-mentioned scene identity and above-mentioned critical performance parameters;
According to the distribution of the system resource of the above-mentioned above-mentioned destination application of performance boost Developing Tactics.
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 identity of destination application being currently running And critical performance parameters, secondly, the intended application that operating system determines to be currently running according to scene identity and critical performance parameters The performance boost strategy of program, finally, the destination application that operating system is currently running according to performance boost Developing Tactics The distribution of system resource.Because contextual data bag is sent by the destination application that is currently running, and include scene identity and pass Key performance parameter, the scene identity and critical performance parameters can precisely determine the performance when destination application is currently running Promotion Strategy, and adjust by operating system the configuration of the resource of destination application in real time according to the performance boost strategy, realize By operating system carry out real-time performance optimization in the process of running to destination application, be advantageous to improve mobile terminal control Destination application processed carries out the real-time and accuracy of performance optimization.
In a possible example, aforesaid operations system includes management module and multiple policy modules;In above-mentioned basis In terms of above-mentioned scene identity and above-mentioned critical performance parameters determine the performance boost strategy of above-mentioned destination application, said procedure In instruction be specifically used for performing following operate:Above-mentioned management module is controlled to determine the above-mentioned scene mark in above-mentioned contextual data bag Know and above-mentioned critical performance parameters;And the above-mentioned management module of control determines to be applied to above-mentioned scene in above-mentioned multiple policy modules The policy module of mark;And the above-mentioned policy module of control determines above-mentioned destination application according to above-mentioned critical performance parameters Performance boost strategy.
In a possible example, above-mentioned contextual data bag identifies including data format;In the above-mentioned management of above-mentioned control In terms of module determines above-mentioned scene identity and above-mentioned critical performance parameters in above-mentioned contextual data bag, the instruction in said procedure Specifically for performing following operate:Control and control above-mentioned management module to identify indicated data according to above-mentioned data format The above-mentioned contextual data bag of format analysis is to determine above-mentioned scene identity and above-mentioned critical performance parameters.
In a possible example, determined in the above-mentioned policy module of above-mentioned control according to above-mentioned critical performance parameters above-mentioned In terms of the performance boost strategy of destination application, the instruction in said procedure is specifically used for performing following operate:Control above-mentioned Policy module determines that the resource of above-mentioned critical performance parameters association is system resource to be adjusted;According to above-mentioned critical performance parameters The adjustment amount of above-mentioned system resource to be adjusted is determined, the performance boost of above-mentioned destination application is generated according to above-mentioned adjustment amount Strategy;The above-mentioned performance boost strategy for determining above-mentioned generation is the performance boost strategy of above-mentioned destination application;Or
Control above-mentioned policy module to determine parameter type and the parameter values section of above-mentioned critical performance parameters, determine above-mentioned Performance boost strategy bag corresponding to parameter type, identified by inquiry of above-mentioned parameter values section, determine above-mentioned performance boost plan It is applied to the performance boost strategy in the parameter values section in slightly wrapping.
In a possible example, aforesaid operations system includes management module and policy module;Above-mentioned according to above-mentioned In terms of scene identity and above-mentioned critical performance parameters determine the performance boost strategy of above-mentioned destination application, in said procedure Instruction is specifically used for performing following operate:Control above-mentioned policy module obtain the above-mentioned scene identity in above-mentioned contextual data bag and Above-mentioned critical performance parameters;And the above-mentioned policy module of control determines system resource to be adjusted corresponding to above-mentioned scene identity; And the above-mentioned policy module of control determines that above-mentioned target should according to above-mentioned system resource to be adjusted and above-mentioned critical performance parameters With the performance boost strategy of program.
In a possible example, in the above-mentioned policy module of above-mentioned control according to above-mentioned system resource to be adjusted and upper In terms of stating the performance boost strategy that critical performance parameters determine above-mentioned destination application, the instruction in said procedure is specifically used for Perform following operate:Above-mentioned policy module is controlled to be associated according in above-mentioned critical performance parameters with above-mentioned system resource to be adjusted Parameter determine the adjustment amount of above-mentioned system resource to be adjusted;And the above-mentioned policy module of control generates according to above-mentioned adjustment amount The performance boost strategy of above-mentioned destination application.
In a possible example, lead between above-mentioned destination application and aforesaid operations system including preset data Road;In terms of the contextual data bag that the above-mentioned destination application being currently running is sent is received above by above-mentioned communication unit, Instruction in said procedure is specifically used for performing following operate:Received by above-mentioned communication unit and pass through above-mentioned preset data passage Receive the contextual data bag that the above-mentioned above-mentioned destination application being currently running is sent.
In this possible example, above-mentioned destination application includes Data connection module, and aforesaid operations system includes number According to connection management module;Said procedure also includes being used to perform the instruction operated below:Control above-mentioned data connection management module Above-mentioned preset data passage is established with above-mentioned Data connection module.
In a possible example, above-mentioned resource includes at least one of following resource of above-mentioned mobile terminal:CPU Resource, GPU resource, memory bandwidth resource, disk resource, Internet resources.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is appreciated that , for mobile terminal in order to realize above-mentioned function, it comprises perform the corresponding hardware configuration of each function and/or software mould Block.Those skilled in the art should be readily appreciated that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with The mode of hardware or computer software driving hardware performs, application-specific and design constraint bar depending on technical scheme Part.Professional and technical personnel can specifically realize described function to each using distinct methods, but this reality Now 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 above method 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.Above-mentioned 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 above-described embodiment A kind of possible functional unit composition block diagram.Device for allocating resources 600 includes: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-S407 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.
Wherein, above-mentioned processing unit 602, should for receiving the above-mentioned target being currently running by above-mentioned communication unit 603 The contextual data bag sent with program, above-mentioned contextual data bag include the scene identity and key performance ginseng of destination application Number;And for determining the performance boost plan of above-mentioned destination application according to above-mentioned scene identity and above-mentioned critical performance parameters Slightly;And the distribution for the system resource according to the above-mentioned above-mentioned destination application of performance boost Developing Tactics.
In a possible example, aforesaid operations system includes management module and multiple policy modules;In above-mentioned basis In terms of above-mentioned scene identity and above-mentioned critical performance parameters determine the performance boost strategy of above-mentioned destination application, above-mentioned processing Unit 602 is specifically used for:Above-mentioned management module is controlled to determine the above-mentioned scene identity in above-mentioned contextual data bag and above-mentioned key Performance parameter;And the above-mentioned management module of control determines to be applied to the tactful mould of above-mentioned scene identity in above-mentioned multiple policy modules Block;And the above-mentioned policy module of control determines the performance boost plan of above-mentioned destination application according to above-mentioned critical performance parameters Slightly.
In a possible example, above-mentioned contextual data bag identifies including data format;In the above-mentioned management of above-mentioned control In terms of module determines above-mentioned scene identity and above-mentioned critical performance parameters in above-mentioned contextual data bag, above-mentioned processing unit 602 It is specifically used for:Control and control above-mentioned management module above-mentioned according to the indicated data format parsing of above-mentioned data format mark Contextual data bag is to determine above-mentioned scene identity and above-mentioned critical performance parameters.
In a possible example, determined in the above-mentioned policy module of above-mentioned control according to above-mentioned critical performance parameters above-mentioned In terms of the performance boost strategy of destination application, above-mentioned processing unit 602 is specifically used for:Above-mentioned policy module is controlled to determine The resource for stating critical performance parameters association is system resource to be adjusted;Determined according to above-mentioned critical performance parameters above-mentioned to be adjusted System resource adjustment amount, the performance boost strategy of above-mentioned destination application is generated according to above-mentioned adjustment amount;Determine above-mentioned The above-mentioned performance boost strategy of generation is the performance boost strategy of above-mentioned destination application;Or
Control above-mentioned policy module to determine parameter type and the parameter values section of above-mentioned critical performance parameters, determine above-mentioned Performance boost strategy bag corresponding to parameter type, identified by inquiry of above-mentioned parameter values section, determine above-mentioned performance boost plan It is applied to the performance boost strategy in the parameter values section in slightly wrapping.
In a possible example, aforesaid operations system includes management module and policy module;Above-mentioned according to above-mentioned In terms of scene identity and above-mentioned critical performance parameters determine the performance boost strategy of above-mentioned destination application, above-mentioned processing unit 602 are specifically used for:Above-mentioned policy module is controlled to obtain above-mentioned scene identity and above-mentioned key performance in above-mentioned contextual data bag Parameter;And the above-mentioned policy module of control determines system resource to be adjusted corresponding to above-mentioned scene identity;And control is above-mentioned Policy module determines the performance of above-mentioned destination application according to above-mentioned system resource to be adjusted and above-mentioned critical performance parameters Promotion Strategy.
In a possible example, in the above-mentioned policy module of above-mentioned control according to above-mentioned system resource to be adjusted and upper The performance boost strategy that critical performance parameters determine above-mentioned destination application is stated, above-mentioned processing unit 602 is specifically used for:Control Above-mentioned policy module determines above-mentioned treat according to the parameter associated in above-mentioned critical performance parameters with above-mentioned system resource to be adjusted The adjustment amount of the system resource of adjustment;And the above-mentioned policy module of control generates above-mentioned destination application according to above-mentioned adjustment amount Performance boost strategy.
In a possible example, lead between above-mentioned destination application and aforesaid operations system including preset data Road;The contextual data Bao Fang for the above-mentioned destination application transmission being currently running is being received above by above-mentioned communication unit 603 Face, above-mentioned processing unit 602 are specifically used for:It is above-mentioned just by above-mentioned preset data channel reception by above-mentioned communication unit 603 In the contextual data bag that the above-mentioned destination application of operation is sent.
Wherein, above-mentioned destination application includes Data connection module, and aforesaid operations system includes data connection management mould Block;Above-mentioned device for allocating resources also includes Path Setup unit, above-mentioned Path Setup unit, for control data connection management mould Block establishes above-mentioned preset data passage with above-mentioned Data connection module.
In a possible example, above-mentioned resource includes at least one of following resource of above-mentioned mobile terminal: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, above-mentioned 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, smart mobile phone operation has destination application and operating system.Operating system receives the mesh being currently running The contextual data bag that application program is sent is marked, contextual data bag includes the scene identity and key performance ginseng of destination application Number;Operating system determines the performance boost strategy of destination application according to scene identity and critical performance parameters;Operating system According to the distribution of the system resource of performance boost Developing Tactics destination application.
Above-mentioned 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 above-mentioned 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.Above-mentioned 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..
Above-mentioned 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 above-mentioned embodiment of the method The part or all of step of method, above computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and above computer program product includes storing calculating The non-transient computer-readable recording medium of machine program, above computer program are operable to make computer perform side as described above The part or all of step of either method described in method embodiment.The computer program product can be a software installation Bag, above 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 above-described embodiments, 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 said units, 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 above-mentioned 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.Above-mentioned 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 above-mentioned 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 above method 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 above-described 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 identity and critical performance parameters including destination application;
The operating system determines the performance of the destination application according to the scene identity and the critical performance parameters Promotion Strategy;
The operating system according to the system resource of destination application described in the performance boost Developing Tactics distribution.
2. according to the method for claim 1, it is characterised in that the operating system includes management module and multiple tactful moulds Block;The operating system determines that the performance of the destination application carries according to the scene identity and the critical performance parameters Strategy is risen, including:
The management module determines the scene identity and the critical performance parameters in the contextual data bag;
The management module determines to be applied to the policy module of the scene identity in the multiple policy module;
The policy module determines the performance boost strategy of the destination application according to the critical performance parameters.
3. according to the method for claim 2, it is characterised in that the contextual data bag identifies including data format;It is described Management module determines the scene identity and the critical performance parameters in the contextual data bag, including:
The management module identifies indicated data format according to the data format and parses the contextual data bag to determine The scene identity and the critical performance parameters.
4. according to the method in claim 2 or 3, it is characterised in that the contextual data bag identifies including data format;Institute The performance boost strategy that policy module determines the destination application according to the critical performance parameters is stated, including:
The policy module determines that the resource of the critical performance parameters association is system resource to be adjusted;According to the key Performance parameter determines the adjustment amount of the system resource to be adjusted, and the destination application is generated according to the adjustment amount Performance boost strategy;The performance boost strategy for determining the generation is the performance boost strategy of the destination application; Or
The policy module determines parameter type and the parameter values section of the critical performance parameters, determines the parameter type Corresponding performance boost strategy bag, identified by inquiry of the parameter values section, determine to fit in the performance boost strategy bag Performance boost strategy for the parameter values section.
5. according to the method for claim 1, it is characterised in that the operating system includes management module and policy module; The operating system determines the performance boost of the destination application according to the scene identity and the critical performance parameters Strategy, including:
The policy module obtains the scene identity and the critical performance parameters in the contextual data bag;
The policy module determines system resource to be adjusted corresponding to the scene identity;
The policy module determines the intended application journey according to the system resource to be adjusted and the critical performance parameters The performance boost strategy of sequence.
6. according to the method for claim 5, it is characterised in that the policy module is according to the system resource to be adjusted The performance boost strategy of the destination application is determined with the critical performance parameters, including:
The policy module determines institute according to the parameter associated in the critical performance parameters with the system resource to be adjusted State the adjustment amount of system resource to be adjusted;
The policy module generates the performance boost strategy of the destination application according to the adjustment amount.
7. according to the method described in claim any one of 1-6, it is characterised in that the destination application and the operation system Include preset data passage between system;The operating system receives the scene number that the destination application being currently running is sent According to bag, including:The operating system receives the intended application by being currently running described in the preset data channel reception The contextual data bag that program is sent.
8. a kind of device for allocating resources, it is characterised in that operation has operating system and one or more on the mobile terminal Application program, 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 identity and critical performance parameters of destination application;And for according to institute State scene identity and the critical performance parameters determine the performance boost strategy of the destination application;And for according to institute State the distribution of the system resource of destination application described in performance boost Developing Tactics.
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.
CN201710642327.2A 2017-07-31 2017-07-31 Resource allocation method and related product Active CN107517306B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201710642327.2A CN107517306B (en) 2017-07-31 2017-07-31 Resource allocation method and related product
PCT/CN2018/097514 WO2019024800A1 (en) 2017-07-31 2018-07-27 Method for resource allocation and terminal device
EP18186162.6A EP3438825A1 (en) 2017-07-31 2018-07-27 Method for resource allocation and terminal device
US16/049,081 US11016812B2 (en) 2017-07-31 2018-07-30 Method for resource allocation and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710642327.2A CN107517306B (en) 2017-07-31 2017-07-31 Resource allocation method and related product

Publications (2)

Publication Number Publication Date
CN107517306A true CN107517306A (en) 2017-12-26
CN107517306B CN107517306B (en) 2020-07-10

Family

ID=60721853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710642327.2A Active CN107517306B (en) 2017-07-31 2017-07-31 Resource allocation method and related product

Country Status (1)

Country Link
CN (1) CN107517306B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491275A (en) * 2018-03-13 2018-09-04 广东欧珀移动通信有限公司 program optimization method, device, terminal and storage medium
WO2019024800A1 (en) * 2017-07-31 2019-02-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
CN110955499A (en) * 2018-09-26 2020-04-03 Oppo广东移动通信有限公司 Processor core configuration method, device, terminal and storage medium
US11182210B2 (en) 2017-07-31 2021-11-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
CN116055443A (en) * 2022-05-16 2023-05-02 荣耀终端有限公司 Method for identifying social scene, electronic equipment and computer readable storage medium

Citations (6)

* 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
CN104731304A (en) * 2015-03-20 2015-06-24 广东欧珀移动通信有限公司 Adjusting method and device for CPU frequency adjustment mode in terminal
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106775803A (en) * 2016-11-14 2017-05-31 努比亚技术有限公司 A kind of parameter value adjuster, terminal and method

Patent Citations (6)

* 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
CN104731304A (en) * 2015-03-20 2015-06-24 广东欧珀移动通信有限公司 Adjusting method and device for CPU frequency adjustment mode in terminal
CN104991775A (en) * 2015-07-03 2015-10-21 北京奇虎科技有限公司 Game acceleration method and apparatus
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN106775803A (en) * 2016-11-14 2017-05-31 努比亚技术有限公司 A kind of parameter value adjuster, terminal and method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019024800A1 (en) * 2017-07-31 2019-02-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
US11182210B2 (en) 2017-07-31 2021-11-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
CN108491275A (en) * 2018-03-13 2018-09-04 广东欧珀移动通信有限公司 program optimization method, device, terminal and storage medium
CN108536461A (en) * 2018-03-13 2018-09-14 Oppo广东移动通信有限公司 Resource regeneration method, device, terminal and storage medium
CN108536524A (en) * 2018-03-13 2018-09-14 Oppo广东移动通信有限公司 Resource regeneration method, device, terminal and storage medium
CN108536461B (en) * 2018-03-13 2021-08-10 Oppo广东移动通信有限公司 Resource updating method, device, terminal and storage medium
CN110955499A (en) * 2018-09-26 2020-04-03 Oppo广东移动通信有限公司 Processor core configuration method, device, terminal and storage medium
CN116055443A (en) * 2022-05-16 2023-05-02 荣耀终端有限公司 Method for identifying social scene, electronic equipment and computer readable storage medium
CN116055443B (en) * 2022-05-16 2023-11-14 荣耀终端有限公司 Method for identifying social scene, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN107517306B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN107483725A (en) Resource allocation method and Related product
CN107426432B (en) Resource allocation method and Related product
CN107577537A (en) Resource allocation method and Related product
CN107613107A (en) Resource allocation method and related product
CN107547746A (en) Resource allocation method and related product
CN107577533A (en) Resource allocation method and Related product
CN107589998A (en) Resource allocation method and Related product
CN107450988A (en) Resource allocation method and Related product
CN107479970A (en) Resource allocation method and Related product
CN107517306A (en) Resource allocation method and Related product
CN107547745A (en) Resource allocation method and Related product
CN107515787A (en) Resource allocation method and Related product
CN107547744A (en) Resource allocation method and Related product
CN108037999A (en) Resource allocation method and Related product
CN107621981A (en) Resource allocation method and Related product
CN107807852A (en) Application program capacity control method and equipment
CN107861814A (en) Resource allocation method and equipment
KR101981334B1 (en) Mobile communication system and method applying distributed data packet handling
CN107832141A (en) Application program progress control method and equipment
US11016812B2 (en) Method for resource allocation and terminal device
CN107786738B (en) Network control method and equipment
CN107797868A (en) resource adjusting method and device
CN107861603A (en) Power consumption control method and equipment
CN107479972A (en) Resource allocation method and Related product
CN108536480A (en) Input method configuration method and related product

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1247759

Country of ref document: HK

CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18 Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant