CN107517306B - Resource allocation method and related product - Google Patents

Resource allocation method and related product Download PDF

Info

Publication number
CN107517306B
CN107517306B CN201710642327.2A CN201710642327A CN107517306B CN 107517306 B CN107517306 B CN 107517306B CN 201710642327 A CN201710642327 A CN 201710642327A CN 107517306 B CN107517306 B CN 107517306B
Authority
CN
China
Prior art keywords
target application
application program
scene
operating system
strategy
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.)
Active
Application number
CN201710642327.2A
Other languages
Chinese (zh)
Other versions
CN107517306A (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 EP18186162.6A priority patent/EP3438825A1/en
Priority to PCT/CN2018/097514 priority patent/WO2019024800A1/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

Images

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 application discloses a resource allocation method and a related product. The method comprises the following steps: an operating system of the mobile terminal receives a scene data packet sent by a running target application program, wherein the scene data packet comprises a scene identifier and key performance parameters of the running target application program; the operating system determines a performance improvement strategy of the running target application program according to the scene identification and the key performance parameters; the operating system adjusts the allocation of system resources of the running target application program according to the performance improvement strategy. The embodiment of the application is beneficial to improving the real-time performance and the accuracy of the mobile terminal for controlling the target application program to perform performance optimization.

Description

Resource allocation method and related product
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a resource allocation method and a related product.
Background
With the rapid development of related technologies of smart phones, more and more applications are installed in user mobile phones, such as reading applications, payment applications, game applications, music applications, and the like, and people's clothes and eating habits are inseparable from mobile phones.
Disclosure of Invention
The embodiment of the application provides a resource allocation method and a related product, and can improve the real-time performance and the accuracy of performance optimization of a mobile terminal control target application program.
In a first aspect, an embodiment of the present application provides a resource allocation method, which is applied to a mobile terminal, where an operating system and one or more application programs are run on the mobile terminal, and the method includes:
the operating system receives a scene data packet sent by the running target application program, wherein the scene data packet comprises a scene identifier and key performance parameters of the target application program;
the operating system determines a performance improvement strategy of the target application program according to the scene identifier and the key performance parameter;
and the operating system adjusts the distribution of the system resources of the target application program according to the performance improvement strategy.
In a second aspect, an embodiment of the present application provides a resource allocation apparatus, which is applied to a mobile terminal, where an operating system and one or more application programs run on the mobile terminal, the resource allocation apparatus includes a processing unit and a communication unit,
the processing unit is configured to receive, through the communication unit, a scene data packet sent by the running target application program, where the scene data packet includes a scene identifier and a key performance parameter of the target application program; and a performance promotion policy for determining the target application program according to the scene identifier and the key performance parameter; and adjusting the allocation of the system resources of the target application program according to the performance improvement strategy.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any method in the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in any one of the methods of the first aspect of the present application, and the computer includes a mobile terminal.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present application, an operating system in an operating system space of a mobile terminal first receives a scene data packet sent by an operating target application, where the scene data packet includes a scene identifier and a key performance parameter of the operating target application, then the operating system determines a performance improvement policy of the operating target application according to the scene identifier and the key performance parameter, and finally, the operating system adjusts allocation of system resources of the operating target application according to the performance improvement policy. The real-time performance and the accuracy of performance optimization of the mobile terminal control target application program are improved.
Drawings
Reference will now be made in brief to the accompanying drawings, to which embodiments of the present application relate.
FIG. 1A is a schematic diagram of a program runtime space of a smart phone;
FIG. 1B is a system architecture diagram of an android system;
fig. 2 is a schematic flowchart of a resource allocation method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a resource allocation method according to an embodiment of the present disclosure;
FIG. 4 is a flowchart illustrating a resource allocation method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;
fig. 6 is a block diagram illustrating functional units of a mobile terminal according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The operating system related to the embodiment of the invention is a software system which performs unified management on hardware resources and provides a service interface for a user.
As shown in fig. 1A, a mobile terminal such as a smart phone is generally provided with a program running space, the program running space includes a user space and an operating system space, wherein the user space runs one or more Application programs, the one or more Application programs are third-party Application programs installed on the mobile terminal, the operating system space runs an operating system of the mobile terminal, the mobile terminal can run an Android system, a mobile operating system iOS developed by apple, and the like, and is not limited uniquely here, as shown in fig. 1B, the mobile terminal runs an Android system as an example, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system running library layer (including a system running library layer L ibraries and an Android running library), a L inux Kernel layer (L inux Kernel layer), wherein the Application layer including an Application program running with a user directly runs a Web library, runs an Application library layer (running a Web library) and a Web library, and a Web library is developed by using a Web services system.
The process created by the third-party application program is initially run in the user space, and when it is to perform the actions of sending data through the network, reading disk resources and the like, it must be completed by calling the standard interface functions provided by the operating system, such as write, send and the like, that is, the CPU calls the code of the operating system space to complete the requested operation of the user. It can be seen that the third party application program wants to call the function provided by the operating system, and can only call the standard interface function provided by the third party application program. Meanwhile, the operating system does not know which functions the third-party application specifically executes, and the target application cannot command the operating system to execute special operations, which are independent from each other, so that the operating system cannot distinguish the internal operating scene of the target application, can only use one set of standard parameters for adaptation, and cannot perform targeted performance optimization for the internal operating scene of the target application.
In view of the above situation, an embodiment of the present application provides a resource allocation method for a target application of a mobile terminal, in which an operating system in an operating system space of the mobile terminal receives a scene data packet sent by the running target application, where the scene data packet includes a scene identifier and a key performance parameter of the running target application; the operating system determines a performance improvement strategy of the running target application program according to the scene identification and the key performance parameters; the operating system adjusts the allocation of system resources of the running target application program according to the performance improvement strategy. The performance of the internal operation scene of the target application program in the operation process is optimized by the operating system, and the real-time performance and the accuracy of the mobile terminal for controlling the target application program to optimize the performance are improved.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a flowchart illustrating a resource allocation method according to an embodiment of the present application, where an operating system and one or more application programs run on the mobile terminal, as shown in the figure, the resource allocation method includes:
s201, the operating system receives a scene data packet sent by the running target application, where the scene data packet includes a scene identifier and a key performance parameter of the target application.
The target application program refers to a third-party application program installed in a user space of the mobile terminal, the third-party application program may be, for example, an instant messaging application, a game application, or the like, and the third-party application program may be installed by a user or may be pre-installed by a developer before the mobile terminal leaves a factory, which is not limited herein.
The scene data packet may include a scene identifier and key performance parameters of the running target application program, and may further include at least one of the following: the application type identifier, the data format identifier, the start information, the resource update information, the account login information, the interface type information, the behavior information of the target application (such as data transmission behavior information and data reception behavior information, etc.), etc., which are not limited herein. The format of the scene data packet may be, for example, a data transmission format such as JavaScript Object Notation (JSON), protocol buffer (protocol), custom format, etc., and is not limited herein.
In one possible example, a preset data channel is included between the target application program and the operating system; the receiving, by the operating system, the scene data packet sent by the running target application program includes: and the operating system receives a scene data packet sent by the running target application program through the preset data channel.
The preset data channel is an effective data transmission link established between the target application program and the operating system when the target application program is running, and the data transmission link can be cleared after the target application program is not running.
In this possible example, the target application includes a data connection module, and the operating system includes a data connection management module; the method further comprises the following steps: and the data connection management module and the data connection module establish the preset data channel.
In this possible example, the target application program may further include a data collection module, a data sorting module, a priority management module, and a data receiving module, where the data receiving module is configured to collect key information of the target application program during running; the data sorting module is used for sorting the collected key information, such as combining repeated information, deleting redundant information and the like; the priority management module is used for classifying the collected key information according to the importance degree of the key information, preferentially processing the key information with high priority, filtering the key information with lower priority, or reducing the use of the key information with lower priority in the data packet generation process; the data receiving module is used for receiving and analyzing data sent by an operating system of the operating system and transmitting the data to the inside of the target application program.
And S202, the operating system determines a performance improvement strategy of the target application program according to the scene identifier and the key performance parameters.
The performance improvement policy refers to a resource configuration policy for improving the operation performance of the running target application, such as a CPU resource adjustment policy, a GPU resource adjustment policy, a memory bandwidth resource adjustment policy, a disk resource adjustment policy, a network resource adjustment policy, and the like, which is not limited herein.
The key performance parameters may include information such as a frame rate, a frame loss, a stuck state, and the like of the current internal operating scene.
S203, the operating system adjusts the allocation of the system resource of the target application according to the performance improvement policy.
In one possible example, the resource includes at least one of the following resources of the mobile terminal: CPU resources, GPU resources, memory bandwidth resources, disk resources, and network resources. The network resources comprise network resources of a data network of the mobile terminal, network resources of a wireless fidelity Wi-Fi network, control parameters of a Bluetooth module and the like.
When the system resource is at least one of a CPU resource, a GPU resource memory bandwidth resource, and a disk resource, the operating system may communicate with a kernel layer of an operating system space in a direct communication manner, where the direct communication manner is direct communication through an abstract Application Programming Interface (API), to adjust configuration of the system resource.
When the system resource is a network resource, the operating system may communicate with a kernel layer of an operating system space in an indirect communication manner to adjust the configuration of the system resource, where the indirect communication manner refers to indirect communication by invoking an agent service, for example, a Wi-Fi subsystem in the network resource or a data network subsystem and the operating system do not run in the same system and need to indirectly access the system resource in some agent manners, the operating system provides the agent service of Wi-Fi, and the operating system indirectly communicates with the Wi-Fi subsystem by invoking an interface of the agent service.
It can be seen that, in the embodiment of the present application, an operating system in an operating system space of a mobile terminal receives a scene data packet sent by a running target application, where the scene data packet includes a scene identifier and a key performance parameter of the running target application, and then the operating system determines a performance improvement policy of the running target application according to the scene identifier and the key performance parameter, and finally, the operating system adjusts allocation of system resources of the running target application according to the performance improvement policy. The scene data packet is sent by the running target application program and comprises the scene identifier and the key performance parameter, the scene identifier and the key performance parameter can accurately determine the performance improvement strategy of the running target application program, and the operating system adjusts the configuration of the resources of the target application program in real time according to the performance improvement strategy, so that the real-time performance optimization of the target application program in the running process by the operating system is realized, and the real-time performance and the accuracy of controlling the target application program by the mobile terminal to perform the performance optimization are improved.
In one possible example, the operating system includes a management module and a plurality of policy modules; the determining, by the operating system, a performance improvement policy of the target application according to the scene identifier and the key performance parameter includes: the management module determines the scene identifier and the key performance parameter in the scene data packet; the management module determines a policy module applicable to the scene identifier from the plurality of policy modules; and the strategy module determines the performance improvement strategy of the target application program according to the key performance parameters.
Each of the plurality of policy modules may be applicable to the same type of application, for example, a first policy module is applicable to a game application, a second policy module is applicable to an instant messaging application, and the like.
Wherein, the determining, by the management module, a policy module applicable to the scene identifier in the plurality of policy modules includes: the management module queries a preset scene identifier set applicable to each policy module in the plurality of policy modules by using the scene identifier as a query identifier, and acquires a policy module corresponding to the scene identifier set containing the scene identifier as a policy module applicable to the scene identifier. The adaptive strategy module can be quickly and accurately determined by inquiring the scene identification set.
Therefore, in this example, the plurality of policy modules are divided to realize refined control over different types of applications, and the mobile terminal only needs to load the policy module corresponding to the target application program running on the foreground of the mobile terminal without simultaneously loading all the policy modules, which is beneficial to reducing resource occupation and improving resource utilization rate and control efficiency.
In one possible example, the scene data packet includes a data format identifier; the determining, by the management module, the scene identifier and the key performance parameter in the scene data packet includes: and the management module analyzes the scene data packet according to the data format indicated by the data format identifier to determine the scene identifier and the key performance parameter.
The data format identifier may be, for example, JSON, Protobuf, or the like, which is not limited herein.
As can be seen, in this example, the data format identifier enables the operating system to quickly identify the data transmission format used by the scene data packet after receiving the scene data packet, so as to analyze the scene identifier and the key performance parameter in the scene data packet in real time, reduce the processing delay, facilitate improvement of the data processing efficiency, and improve the real-time performance of resource adjustment for the running target application program.
In one possible example, the determining, by the policy module, a performance improvement policy of the target application according to the key performance parameter includes: the strategy module determines the resources related to the key performance parameters as system resources to be adjusted; determining the adjustment quantity of the system resource to be adjusted according to the key performance parameter, and generating a performance improvement strategy of the target application program according to the adjustment quantity; and determining the generated performance improvement policy as the performance improvement policy of the target application program.
The key performance parameter may include a parameter type and a parameter value, the resource associated with the key performance parameter may be determined by querying a correspondence between a preset parameter type of the key performance parameter and a resource, and the correspondence may include, for example, a correspondence between a frame rate and a GPU resource, a correspondence between an interface rendering speed and a resource combination (for example, a CPU resource and a GPU resource), and the like, which is not limited herein. The parameter value is used for determining the adjustment amount of the system resource to be adjusted, and specifically, the parameter value can be compared with a preset reference value to accurately determine the adjustment amount.
Therefore, in this example, the resource associated with the key performance parameter is the system resource to be adjusted, and the parameter value of the key performance parameter is further used to accurately determine the adjustment amount of the system resource to be adjusted, which is beneficial to improving the accuracy of the mobile terminal in controlling the target application program to perform operation optimization.
In another possible example, the determining, by the policy module, a performance improvement policy of the target application according to the key performance parameter includes: the strategy module determines the parameter type and the parameter value interval of the key performance parameter, determines a performance improvement strategy packet corresponding to the parameter type, and determines a performance improvement strategy applicable to the parameter value interval in the performance improvement strategy packet by taking the parameter value interval as a query identifier.
The performance improvement strategy package comprises a plurality of performance improvement strategies, and each performance improvement strategy corresponds to a parameter value interval.
As can be seen, in this example, since the parameter type of the key performance parameter can determine the performance improvement policy package, and the parameter value of the key performance parameter can quickly determine the performance improvement policy in the performance improvement policy package, that is, the performance improvement policy adapted to the current runtime scenario can be quickly determined in an inquiry manner, which is beneficial to improving the speed and efficiency of the mobile terminal in controlling the target application program to perform operation optimization.
In one possible example, the operating system includes a management module and a policy module; the determining, by the operating system, a performance improvement policy of the target application according to the scene identifier and the key performance parameter includes: the strategy module acquires the scene identification and the key performance parameter in the scene data packet; the strategy module determines the system resource to be adjusted corresponding to the scene identification; and the strategy module determines the performance improvement strategy of the target application program according to the system resource to be adjusted and the key performance parameter.
As can be seen, in this example, the scene identifier is used to quickly determine the system resource to be adjusted of the target application, and the key performance parameter is used to accurately determine the adjustment amount of the system resource to be adjusted, which is beneficial to improving the accuracy and speed of the mobile terminal in controlling the target application to perform operation optimization. In addition, the target application program comprises a management module and a strategy module, the management module and the strategy module are matched to confirm the performance improvement strategy of the target application program, namely, the determination process of the performance improvement strategy is completed in a modularization mode, each module executes a corresponding division function, the state of the other module cannot be influenced when a single module has an error, and the stability of the mobile terminal for controlling the target application program to operate and optimize is improved.
In one possible example, the determining, by the policy module, a performance improvement policy of the target application according to the system resource to be adjusted and the key performance parameter includes: the strategy module determines the adjustment amount of the system resource to be adjusted according to the parameter related to the system resource to be adjusted in the key performance parameters; and the strategy module generates a performance improvement strategy of the target application program according to the adjustment quantity.
The key performance parameters may include parameter types and parameter values, the parameter values are used to further determine an adjustment amount of the system resource to be adjusted, the adjustment amount may be specifically obtained by calculating a preset formula, weights of the parameters of different types in the calculation formula may be correspondingly set according to influence factors of the resources associated with the parameters on the operation performance of the target application program, and specifically, the larger the weight of the parameter with the larger influence factor, the higher the weight of the parameter with the larger influence factor, the accuracy of the adjustment amount calculation is favorably improved
In this example, the parameter associated with the system resource to be adjusted in the key performance parameters is used to determine the adjustment amount of the system resource to be adjusted, so as to avoid the influence of the non-associated parameter on the adjustment amount, and improve the accuracy of the mobile terminal in controlling the target application program to perform operation optimization.
In one possible example, the scene data packet includes a data format identifier; the determining, by the policy module, the scene identifier and the key performance parameter in the scene data packet includes:
the management module determines a data format of the scene data packet according to a data format identifier in the scene data packet, analyzes the scene data packet according to a data format indicated by the data format identifier, determines the scene identifier and the key performance parameter of the target application program, and sends the scene identifier and the key performance parameter to the policy module; therefore, the scene data packets are processed in a unified mode through the management module, the strategy module only needs to directly receive the processing result of the strategy module, the functions of facilitating light weight and refining the strategy module are achieved, maintenance, addition and other operations of the strategy module are facilitated, and system stability is improved.
Alternatively, the first and second electrodes may be,
the management module sends the scene data packet to the strategy module; the policy module determines a data format of the scene data packet according to a data format identifier in the scene data packet, analyzes the scene data packet according to a data format indicated by the data format identifier, and determines the scene identifier and the key performance parameter of the target application program; it can be seen that the management module does not process the scene data packet, but directly transmits the scene data packet to the policy module for processing, so that the policy module does not need to be continuously started after transmitting the scene data packet, can be rapidly dormant, is beneficial to reducing the overall power consumption of the operating system, and improves the efficiency.
Alternatively, the first and second electrodes may be,
the management module determines a first data format associated with the policy module, converts a second data format of the scene data packet into the first data format when detecting that the first data format is inconsistent with a second data format of the scene data packet, and sends the converted scene data packet to the policy module; the policy module parses the converted scene data packet according to the first data format, and determines the scene identifier and the key performance parameter of the target application program. Therefore, the management module can convert the scene data packet which cannot be identified by the strategy module into the scene data packet which can be identified by the strategy module and transmit the scene data packet to the strategy module for processing, so that the situation that the scene identifier and the key performance parameters cannot be correctly determined due to format difference is avoided, and the success rate of accurate resource allocation of the mobile terminal for the running target application program is favorably improved.
In one possible example, the determining, by the policy module, the system resource to be adjusted corresponding to the scene identifier includes: and the strategy module takes the scene identifier as a query identifier, queries a mapping relation between preset system resources to be adjusted and the scene identifier, and determines the system resources to be adjusted corresponding to the scene identifier. Therefore, the system resource to be adjusted can be quickly determined by inquiring the mapping relation, and the speed of the mobile terminal for controlling the target application program to operate and optimize is favorably improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a resource allocation method according to an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more applications, the operating system includes a management module and a plurality of policy modules, and each policy module is used to determine a performance improvement policy of an application in at least one application of the same application type. As shown in the figure, the resource allocation method includes:
s301, the operating system receives a scene data packet sent by the running target application program, wherein the scene data packet comprises a scene identifier and key performance parameters of the target application program.
S302, the management module parses the scene data packet according to the data format indicated by the data format identifier to determine the scene identifier and the key performance parameter.
S303, the management module determines a policy module applicable to the scene identifier from the policy modules.
S304, the strategy module determines the performance improvement strategy of the target application program according to the key performance parameters.
S305, the operating system adjusts the allocation of the system resource of the target application according to the performance enhancement policy.
It can be seen that, in the embodiment of the present application, an operating system in an operating system space of a mobile terminal receives a scene data packet sent by a running target application, where the scene data packet includes a scene identifier and a key performance parameter of the running target application, and then, the operating system determines a performance improvement policy of the running target application according to the scene identifier and the key performance parameter, and finally, the operating system adjusts allocation of system resources of the running target application according to the performance improvement policy. The scene data packet is sent by the running target application program and comprises the scene identifier and the key performance parameter, the scene identifier and the key performance parameter can accurately determine the performance improvement strategy of the running target application program, and the operating system adjusts the configuration of the resources of the target application program in real time according to the performance improvement strategy, so that the real-time performance optimization of the target application program in the running process by the operating system is realized, and the real-time performance and the accuracy of controlling the target application program by the mobile terminal to perform the performance optimization are improved.
In addition, the plurality of strategy modules are divided to realize refined control on different types of applications, and the mobile terminal only needs to load the strategy module corresponding to the target application program operated by the foreground of the mobile terminal without simultaneously loading all the strategy modules, so that the resource occupation of the mobile terminal is reduced, and the resource utilization rate and the control efficiency are improved.
In addition, the data format identifier enables the operating system to quickly identify the data transmission format used by the scene data packet after receiving the scene data packet, so that the scene identifier and the key performance parameters in the scene data packet are analyzed in real time, the processing time delay is reduced, the data processing efficiency is improved, and the real-time performance of resource adjustment for the running target application program is improved.
Consistent with the embodiment shown in fig. 2, please refer to fig. 4, where fig. 4 is a flowchart illustrating a resource allocation method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more target application programs, the operating system includes a management module, multiple policy modules, and a data connection management module, each policy module is used to determine a performance improvement policy of an application program in at least one application program of the same application type, the target application program includes a data connection module, the scenario data packet includes a scenario identifier and a key performance parameter of the target application program, and the scenario data packet includes a data format identifier. As shown in the figure, the resource allocation method includes:
s401, the data connection management module and the data connection module establish a preset data channel.
S402, the data connection management module receives the scene data packet sent by the target application program through the preset data channel.
S403, the management module parses the scene data packet according to the data format indicated by the data format identifier, determines the scene identifier and the key performance parameter of the target application program,
s404, the management module determines a policy module corresponding to the scene identifier from the policy modules, and sends the scene identifier and the key performance parameter to the policy module.
S405, the strategy module determines the resources related to the key performance parameters as the system resources to be adjusted, and determines the adjustment amount of the system resources to be adjusted according to the key performance parameters.
S406, the policy module determines a performance improvement policy of the target application according to the system resource to be adjusted and the key performance parameter.
S407, the operating system adjusts allocation of system resources of the target application according to the performance improvement policy.
It can be seen that, in the embodiment of the present application, an operating system in an operating system space of a mobile terminal receives a scene data packet sent by a running target application, where the scene data packet includes a scene identifier and a key performance parameter of the running target application, and then, the operating system determines a performance improvement policy of the running target application according to the scene identifier and the key performance parameter, and finally, the operating system adjusts allocation of system resources of the running target application according to the performance improvement policy. The scene data packet is sent by the running target application program and comprises the scene identifier and the key performance parameter, the scene identifier and the key performance parameter can accurately determine the performance improvement strategy of the running target application program, and the operating system adjusts the configuration of the resources of the target application program in real time according to the performance improvement strategy, so that the real-time performance optimization of the target application program in the running process by the operating system is realized, and the real-time performance and the accuracy of controlling the target application program by the mobile terminal to perform the performance optimization are improved.
In addition, the scene identifier is used for quickly determining the system resource to be adjusted of the target application program, and the key performance parameter is used for accurately determining the adjustment amount of the system resource to be adjusted, so that the accuracy and the speed of the mobile terminal for controlling the target application program to perform operation optimization are improved.
In addition, the target application program comprises a management module and a strategy module, the management module and the strategy module are matched to confirm the performance improvement strategy of the target application program, namely, the determination process of the performance improvement strategy is completed in a modularization mode, each module executes a corresponding division function, the state of the other module cannot be influenced when a single module has an error, and the stability of the mobile terminal for controlling the target application program to operate and optimize is improved.
In addition, the parameters related to the system resources to be adjusted in the key performance parameters are used for determining the adjustment quantity of the system resources to be adjusted, so that the influence of non-related parameters on the adjustment quantity is avoided, and the accuracy of operation optimization of the mobile terminal control target application program is improved.
In addition, the scene data packet is processed uniformly by the management module, the strategy module only needs to directly receive the processing result of the strategy module, so that the functions of light weight and fine strategy module are facilitated, the strategy module is convenient to maintain, add and the like, and the system stability is improved.
In accordance with the embodiments shown in fig. 2, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal runs one or more application programs and an operating system, and as shown in the figure, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more application programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
receiving a scene data packet sent by the running target application program, wherein the scene data packet comprises a scene identifier and key performance parameters of the target application program;
determining a performance improvement strategy of the target application program according to the scene identification and the key performance parameters;
and adjusting the distribution of the system resources of the target application program according to the performance improvement strategy.
It can be seen that, in the embodiment of the present application, an operating system in an operating system space of a mobile terminal receives a scene data packet sent by a running target application, where the scene data packet includes a scene identifier and a key performance parameter of the running target application, and then, the operating system determines a performance improvement policy of the running target application according to the scene identifier and the key performance parameter, and finally, the operating system adjusts allocation of system resources of the running target application according to the performance improvement policy. The scene data packet is sent by the running target application program and comprises the scene identifier and the key performance parameter, the scene identifier and the key performance parameter can accurately determine the performance improvement strategy of the running target application program, and the operating system adjusts the configuration of the resources of the target application program in real time according to the performance improvement strategy, so that the real-time performance optimization of the target application program in the running process by the operating system is realized, and the real-time performance and the accuracy of controlling the target application program by the mobile terminal to perform the performance optimization are improved.
In one possible example, the operating system includes a management module and a plurality of policy modules; in the aspect of determining the performance improvement policy of the target application according to the scene identifier and the key performance parameter, the instruction in the program is specifically configured to perform the following operations: controlling the management module to determine the scene identifier and the key performance parameter in the scene data packet; and controlling the management module to determine a policy module applicable to the scene identifier among the plurality of policy modules; and controlling the policy module to determine a performance improvement policy of the target application program according to the key performance parameter.
In one possible example, the scene data packet includes a data format identifier; in the aspect of controlling the management module to determine the scene identifier and the key performance parameter in the scene data packet, the instructions in the program are specifically configured to perform the following operations: and controlling the management module to analyze the scene data packet according to the data format indicated by the data format identifier so as to determine the scene identifier and the key performance parameter.
In one possible example, in terms of controlling the policy module to determine the performance improvement policy of the target application according to the key performance parameter, the instructions in the program are specifically configured to perform the following operations: controlling the strategy module to determine the resources related to the key performance parameters as system resources to be adjusted; determining the adjustment quantity of the system resource to be adjusted according to the key performance parameter, and generating a performance improvement strategy of the target application program according to the adjustment quantity; determining the generated performance improvement policy as a performance improvement policy of the target application program; alternatively, the first and second electrodes may be,
and controlling the strategy module to determine the parameter type and the parameter value interval of the key performance parameter, determining a performance improvement strategy packet corresponding to the parameter type, and determining a performance improvement strategy applicable to the parameter value interval in the performance improvement strategy packet by taking the parameter value interval as a query identifier.
In one possible example, the operating system includes a management module and a policy module; in the aspect of determining the performance improvement policy of the target application according to the scene identifier and the key performance parameter, the instruction in the program is specifically configured to perform the following operations: controlling the policy module to obtain the scene identifier and the key performance parameter in the scene data packet; controlling the strategy module to determine the system resource to be adjusted corresponding to the scene identifier; and controlling the policy module to determine a performance improvement policy of the target application program according to the system resource to be adjusted and the key performance parameter.
In one possible example, in terms of controlling the policy module to determine the performance improvement policy of the target application according to the system resource to be adjusted and the key performance parameter, the instructions in the program are specifically configured to perform the following operations: controlling the strategy module to determine the adjustment amount of the system resource to be adjusted according to the parameter related to the system resource to be adjusted in the key performance parameters; and controlling the strategy module to generate a performance improvement strategy of the target application program according to the adjustment quantity.
In one possible example, a preset data channel is included between the target application program and the operating system; in the aspect of receiving, by the communication unit, a scene packet sent by the running target application, the instructions in the program are specifically configured to perform the following operations: and receiving, by the communication unit, a scene data packet transmitted by the running target application through the preset data channel.
In this possible example, the target application includes a data connection module, and the operating system includes a data connection management module; the program further includes instructions for: and controlling the data connection management module and the data connection module to establish the preset data channel.
In one possible example, the resource includes at least one of the following resources of the mobile terminal: CPU resources, GPU resources, memory bandwidth resources, disk resources, and network resources.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In case of integrated units, fig. 6 shows a block diagram of a possible functional unit composition of the resource configuration device involved in the above-described embodiment. The resource configuration apparatus 600 includes: a processing unit 602 and a communication unit 603. Processing unit 602 is configured to control and manage actions of the resource configuration device, e.g., processing unit 602 is configured to support the resource configuration device to perform steps S201-S203 in fig. 2, steps S301-S305 in fig. 3, steps S401-S407 in fig. 4, and/or other processes for the techniques described herein. The resource configuration means may further comprise a storage unit 601 for storing program codes and data.
The processing unit 602 is configured to receive, through the communication unit 603, a scene data packet sent by the running target application program, where the scene data packet includes a scene identifier and a key performance parameter of the target application program; and a performance promotion policy for determining the target application program according to the scene identifier and the key performance parameter; and adjusting the allocation of the system resources of the target application program according to the performance improvement strategy.
In one possible example, the operating system includes a management module and a plurality of policy modules; in the aspect of determining the performance improvement policy of the target application according to the scene identifier and the key performance parameter, the processing unit 602 is specifically configured to: controlling the management module to determine the scene identifier and the key performance parameter in the scene data packet; and controlling the management module to determine a policy module applicable to the scene identifier among the plurality of policy modules; and controlling the policy module to determine a performance improvement policy of the target application program according to the key performance parameter.
In one possible example, the scene data packet includes a data format identifier; in the aspect of controlling the management module to determine the scene identifier and the key performance parameter in the scene data packet, the processing unit 602 is specifically configured to: and controlling the management module to analyze the scene data packet according to the data format indicated by the data format identifier so as to determine the scene identifier and the key performance parameter.
In a possible example, in terms of controlling the policy module to determine the performance improvement policy of the target application according to the key performance parameter, the processing unit 602 is specifically configured to: controlling the strategy module to determine the resources related to the key performance parameters as system resources to be adjusted; determining the adjustment quantity of the system resource to be adjusted according to the key performance parameter, and generating a performance improvement strategy of the target application program according to the adjustment quantity; determining the generated performance improvement policy as a performance improvement policy of the target application program; alternatively, the first and second electrodes may be,
and controlling the strategy module to determine the parameter type and the parameter value interval of the key performance parameter, determining a performance improvement strategy packet corresponding to the parameter type, and determining a performance improvement strategy applicable to the parameter value interval in the performance improvement strategy packet by taking the parameter value interval as a query identifier.
In one possible example, the operating system includes a management module and a policy module; in the aspect of determining the performance improvement policy of the target application according to the scene identifier and the key performance parameter, the processing unit 602 is specifically configured to: controlling the policy module to obtain the scene identifier and the key performance parameter in the scene data packet; controlling the strategy module to determine the system resource to be adjusted corresponding to the scene identifier; and controlling the policy module to determine a performance improvement policy of the target application program according to the system resource to be adjusted and the key performance parameter.
In a possible example, in the case that the policy module determines the performance improvement policy of the target application according to the system resource to be adjusted and the key performance parameter, the processing unit 602 is specifically configured to: controlling the strategy module to determine the adjustment amount of the system resource to be adjusted according to the parameter related to the system resource to be adjusted in the key performance parameters; and controlling the strategy module to generate a performance improvement strategy of the target application program according to the adjustment quantity.
In one possible example, a preset data channel is included between the target application program and the operating system; in the aspect that the communication unit 603 is configured to receive a scene data packet sent by the running target application, the processing unit 602 is specifically configured to: the communication unit 603 receives a scene data packet transmitted by the running target application through the preset data channel.
The target application program comprises a data connection module, and the operating system comprises a data connection management module; the resource allocation device further comprises a channel establishing unit, wherein the channel establishing unit is used for controlling the data connection management module and the data connection module to establish the preset data channel.
In one possible example, the resource includes at least one of the following resources of the mobile terminal: CPU resources, GPU resources, memory bandwidth resources, disk resources, and network resources.
Wherein, the processing unit 602 can be a processor or a controller, the communication unit 603 can be an internal communication interface between the processor and a program execution space, such as a communication interface between the processor and an operating system space, or a communication interface between the processor and a user space, and the storage unit 601 can be a memory.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a smart phone 700 according to an embodiment of the present application, where the smart phone 700 includes: casing 710, touch-sensitive display screen 720, mainboard 730, battery 740 and subplate 750, be provided with leading camera 731, processor 732, memory 733, power management chip 734 on mainboard 730, be provided with oscillator 751, integrative sound chamber 752, VOOC flash charging interface 753 and fingerprint identification module 754 on the subplate.
The smart phone runs a target application program and an operating system. The method comprises the steps that an operating system receives a scene data packet sent by a running target application program, wherein the scene data packet comprises a scene identifier and key performance parameters of the target application program; the operating system determines a performance improvement strategy of the target application program according to the scene identification and the key performance parameters; and the operating system adjusts the distribution of the system resources of the target application program according to the performance improvement strategy.
The processor 732 is a control center of the smart phone, connects various parts of the entire smart phone through various interfaces and lines, and executes various functions and processes data of the smart phone by operating or executing software programs and/or modules stored in the memory 733 and calling data stored in the memory 733, thereby integrally monitoring the smart phone. Alternatively, processor 732 may include one or more processing units; preferably, the processor 732 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 732. The Processor 732 may be, for example, a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor described above may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
The memory 733 may be used to store software programs and modules, and the processor 732 may execute various functional applications and data processing of the smart phone by operating the software programs and modules stored in the memory 733. The memory 733 may mainly include a program storage area that may store an operating system, an application program required for at least one function, and the like, and a data storage area; the storage data area may store data created according to the use of the smartphone, and the like. Further, the memory 733 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The Memory 733 may be, for example, a Random Access Memory (RAM), a flash Memory, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a register, a hard disk, a removable hard disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A resource allocation method is applied to a mobile terminal, wherein an operating system and one or more application programs run on the mobile terminal, and the method comprises the following steps:
a preset data channel is arranged between the target application program and the operating system; the operating system receives a scene data packet sent by the running target application program through the preset data channel, wherein the scene data packet comprises a scene identifier and key performance parameters of the target application program; the target application program is an application program installed in a user space of the mobile terminal; the operating system runs in an operating system space of the mobile terminal; the preset data channel is an effective data transmission link established between the target application program and the operating system when the target application program is running, and the data transmission link is cleared when the target application program is not running; the target application program comprises a data connection module, and the operating system comprises a data connection management module; the preset data channel is established by the data connection management module and the data connection module; the scene data packet includes: at least one of application type identification, data format identification, starting information, resource updating information, account login information, interface type information and behavior information of a target application program; the key performance parameters comprise at least one of frame rate, frame loss and stuck of the current internal operation scene;
the operating system determines a performance improvement strategy of the target application program according to the scene identification and the key performance parameters; the performance improvement strategy is a resource configuration strategy for improving the running performance of the running target application program;
and the operating system adjusts the distribution of the system resources of the target application program according to the performance improvement strategy.
2. The method of claim 1, wherein the operating system comprises a management module and a plurality of policy modules; the operating system determines a performance improvement policy of the target application program according to the scene identifier and the key performance parameter, and the method comprises the following steps:
the management module determines the scene identification and the key performance parameter in the scene data packet;
the management module determines a policy module applicable to the scene identifier in the plurality of policy modules;
and the strategy module determines a performance improvement strategy of the target application program according to the key performance parameters.
3. The method of claim 2, wherein the scene data packet includes a data format identifier; the determining, by the management module, the scene identifier and the key performance parameter in the scene data packet includes:
and the management module analyzes the scene data packet according to the data format indicated by the data format identifier to determine the scene identifier and the key performance parameter.
4. The method according to claim 2 or 3, wherein the scene data packet comprises a data format identifier; the policy module determines a performance improvement policy of the target application according to the key performance parameter, including:
the strategy module determines the resources related to the key performance parameters as system resources to be adjusted; determining the adjustment quantity of the system resource to be adjusted according to the key performance parameter, and generating a performance improvement strategy of the target application program according to the adjustment quantity; determining that the generated performance improvement policy is a performance improvement policy of the target application program; alternatively, the first and second electrodes may be,
the strategy module determines the parameter type and the parameter value interval of the key performance parameter, determines a performance improvement strategy packet corresponding to the parameter type, and determines a performance improvement strategy applicable to the parameter value interval in the performance improvement strategy packet by taking the parameter value interval as a query identifier.
5. The method of claim 1, wherein the operating system comprises a management module and a policy module; the operating system determines a performance improvement policy of the target application program according to the scene identifier and the key performance parameter, and the method comprises the following steps:
the strategy module acquires the scene identification and the key performance parameter in the scene data packet;
the strategy module determines the system resource to be adjusted corresponding to the scene identification;
and the strategy module determines a performance improvement strategy of the target application program according to the system resource to be adjusted and the key performance parameter.
6. The method of claim 5, wherein the policy module determines a performance enhancement policy for the target application based on the system resource to be adjusted and the key performance parameter, comprising:
the strategy module determines the adjustment amount of the system resource to be adjusted according to the parameter related to the system resource to be adjusted in the key performance parameters;
and the strategy module generates a performance improvement strategy of the target application program according to the adjustment quantity.
7. A resource allocation device is applied to a mobile terminal, an operating system and one or more application programs run on the mobile terminal, the resource allocation device comprises a processing unit and a communication unit,
the processing unit is used for receiving a scene data packet sent by a running target application program through a preset data channel, wherein the scene data packet comprises a scene identifier and key performance parameters of the target application program; the preset data channel is included between the target application program and the operating system; the target application program is an application program installed in a user space of the mobile terminal; the operating system runs in an operating system space of the mobile terminal; the preset data channel is an effective data transmission link established between the target application program and the operating system when the target application program is running, and the data transmission link is cleared when the target application program is not running; the target application program comprises a data connection module, and the operating system comprises a data connection management module; the preset data channel is established by the data connection management module and the data connection module; the scene data packet includes: at least one of application type identification, data format identification, starting information, resource updating information, account login information, interface type information and behavior information of a target application program; the key performance parameters comprise at least one of frame rate, frame loss and stuck of the current internal operation scene; the performance improvement strategy of the target application program is determined according to the scene identification and the key performance parameters; the performance improvement strategy is a resource configuration strategy for improving the running performance of the running target application program; and adjusting allocation of system resources of the target application according to the performance enhancement policy.
8. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-6, the computer comprising a 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
EP18186162.6A EP3438825A1 (en) 2017-07-31 2018-07-27 Method for resource allocation and terminal device
PCT/CN2018/097514 WO2019024800A1 (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 CN107517306A (en) 2017-12-26
CN107517306B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11182210B2 (en) 2017-07-31 2021-11-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
WO2019024800A1 (en) * 2017-07-31 2019-02-07 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for resource allocation and terminal device
CN108646938B (en) * 2018-03-13 2020-04-17 Oppo广东移动通信有限公司 Configuration method and device of touch screen, terminal and storage medium
CN110955499B (en) * 2018-09-26 2022-11-18 Oppo广东移动通信有限公司 Processor core configuration method, device, terminal and storage medium
CN116055443B (en) * 2022-05-16 2023-11-14 荣耀终端有限公司 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

Also Published As

Publication number Publication date
CN107517306A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN107547746B (en) Resource allocation method and related product
CN107577533B (en) Resource allocation method and related product
CN107450988B (en) Resource allocation method and related product
CN107547745B (en) Resource allocation method and related product
US11151010B2 (en) Resource configuration method, mobile terminal and storage medium
CN107517306B (en) Resource allocation method and related product
CN107479970B (en) Resource allocation method and related product
WO2019042180A1 (en) Resource allocation method and related product
WO2019047709A1 (en) Resource configuration method and related product
CN107426432B (en) Resource allocation method and Related product
CN107861816B (en) Resource allocation method and device
WO2019042171A1 (en) Resource allocation method and product related thereto
CN107528976B (en) Resource allocation method and related product
CN107807852B (en) Application program performance control method, device and computer readable storage medium
US11016812B2 (en) Method for resource allocation and terminal device
WO2019109868A1 (en) Resource allocation method and related product
CN107832142B (en) Resource allocation method and equipment for application program
US11182210B2 (en) Method for resource allocation and terminal device
CN108536480B (en) Input method configuration method and related product
WO2019072208A1 (en) Application running control method and device
US20230072048A1 (en) Electronic device and method for electronic device processing received data packet
WO2019076213A1 (en) Network control method and device
CN107621981A (en) Resource allocation method and Related product
CN107528977B (en) Resource allocation method and related product
WO2019042172A1 (en) Resource allocation method and product related thereto

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant