WO2019042180A1 - Procédé d'attribution de ressources et produit associé - Google Patents

Procédé d'attribution de ressources et produit associé Download PDF

Info

Publication number
WO2019042180A1
WO2019042180A1 PCT/CN2018/101352 CN2018101352W WO2019042180A1 WO 2019042180 A1 WO2019042180 A1 WO 2019042180A1 CN 2018101352 W CN2018101352 W CN 2018101352W WO 2019042180 A1 WO2019042180 A1 WO 2019042180A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame rate
target application
policy
module
resource
Prior art date
Application number
PCT/CN2018/101352
Other languages
English (en)
Chinese (zh)
Inventor
程杰
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019042180A1 publication Critical patent/WO2019042180A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Definitions

  • the present application relates to the field of mobile terminal technologies, and in particular, to a resource configuration method and related products.
  • the embodiment of the present application provides a resource configuration method and related products, which can improve performance and stability of a target application of a mobile terminal during operation.
  • the embodiment of the present application provides a resource configuration method, which is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more application programs, where the operating system includes a management module and multiple policy modules. Each policy module is used to determine a performance improvement policy for an application; the method includes:
  • the management module receives a scenario data packet sent by a running target application, where the scenario data packet includes an application identifier and frame rate information of the target application;
  • the management module determines a policy module corresponding to the application identifier in the multiple policy modules
  • the operating system adjusts allocation of system resources of the target application according to the performance improvement policy.
  • the embodiment of the present application provides a resource configuration apparatus, which is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more application programs, where the resource configuration device includes a processing unit and a communication unit.
  • the processing unit is configured to control a scenario data packet sent by the management module by a target application that is running by the communication unit, where the scenario data packet includes an application identifier and frame rate information of a target application; and is used for controlling
  • the management module determines a policy module corresponding to the application identifier in the multiple policy modules, and a performance improvement policy for controlling the policy module to determine the target application according to the frame rate information; Controlling the operating system to adjust allocation of system resources of the target application according to the performance improvement policy.
  • 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 are configured by The processor executes, the program comprising instructions for performing the steps in any of the methods of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute as implemented in the present application.
  • the computer comprises a mobile terminal.
  • an embodiment of the present application provides a computer program product, where the computer program product includes a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Apply some or all of the steps described in any of the methods of the first aspect of the embodiments.
  • the computer program product can be a software installation package, the computer comprising a mobile terminal.
  • 1A is a schematic diagram of a program running space of a smart phone
  • 1B is a system architecture diagram of an Android system
  • FIG. 2 is a schematic flowchart of a resource configuration method according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a resource configuration method according to an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a resource configuration method according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a block diagram of a functional unit of a mobile terminal disclosed in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a smart phone disclosed in an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the mobile terminal involved in the embodiments of the present application may include various handheld devices having wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to the wireless modem, and various forms of user devices (User Equipment, UE), mobile station (MS), terminal device, and the like.
  • user devices User Equipment, UE
  • MS mobile station
  • terminal device terminal device, and the like.
  • the operating system involved in the embodiments of the present invention is a software system that uniformly manages hardware resources and provides a service interface to users.
  • a mobile terminal such as a smart phone is generally provided with a program running space, and the program running space includes a user space and an operating system space, wherein the user space runs one or more applications, and the one or more applications
  • the program is a third-party application installed on the mobile terminal, and the operating system space runs an operating system with the mobile terminal.
  • the mobile terminal can specifically run the Android Android system, the mobile operating system iOS developed by Apple, etc., and is not limited herein.
  • the mobile terminal runs an Android system as an example, and the corresponding user space includes an application layer in the Android system, and the operating system space may include an application framework layer in the Android system.
  • the application layer includes various types of applications that directly interact with the user, or a service program written in the Java language and running in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) text messages, phone dialing, picture browsers, calendars, games, maps, World Wide Web (Web) browsers, etc. Programs, as well as other applications developed by developers.
  • SMS Short Messaging Service
  • the application framework layer provides a set of libraries needed to develop Android applications, which can be used to reuse components, or to extend personalization through inheritance.
  • the system runtime layer is the support of the application framework, providing services for the various components in the Android system.
  • the system runtime layer consists of the system class library and the Android runtime.
  • the Android runtime consists of a core library and a Dalvik virtual machine.
  • the Linux kernel layer is used to implement core functions such as hardware device driver, process and memory management, network protocol stack, power management, and wireless communication.
  • the process created by the third-party application is initially run in the user space.
  • it wants to perform operations such as sending data and reading disk resources on the network, it must call standard interface functions provided by the operating system, such as write and send.
  • the CPU calls the code of the operating system space to complete the user's request operation.
  • third-party applications want to call the functions provided by the operating system and can only call the standard interface functions they provide.
  • the operating system does not know which functions are actually executed by the third-party application, and the target application cannot command the operating system to perform special operations.
  • the two are independent of each other, which makes the operating system unable to distinguish the internal running scenario of the target application. It can only be adapted using a standard set of parameters, and it is not possible to perform targeted performance optimization for the internal running scenario of the target application.
  • the embodiment of the present application provides a resource configuration method for a target application of a mobile terminal, where the management module receives a scenario data packet sent by a running target application, and the scenario data package includes a target application.
  • the allocation of system resources Optimizing the performance of the internal running scenario of the target application during the running process by the operating system is beneficial to improving the real-time and accuracy of the performance optimization of the mobile terminal controlling the target application.
  • FIG. 2 is a schematic flowchart of a resource configuration method, which is applied to a mobile terminal, where the mobile terminal runs an operating system and one or more applications, where the operating system includes A management module and a plurality of policy modules, each of which is used to determine a performance improvement policy of an application.
  • the resource configuration method includes:
  • the management module receives a scenario data packet sent by a running target application, where the scenario data packet includes an application identifier and frame rate information of the target application.
  • the target application refers to a third-party application installed in the user space of the mobile terminal, and the third-party application may be a game-like application, and the third-party game application may be installed by the user or by the developer.
  • the mobile terminal is pre-installed at the factory, and is not limited here.
  • the scene data packet includes frame rate information of an internal running scenario when the target application is running.
  • the frame rate information includes a frame rate of a display interface of the game application.
  • the maximum frame rate of the display interface of the game application is generally limited to 60 frames, but the operating system cannot obtain the frame rate information of the display interface, and the game application can package the frame rate information in the data packet after acquiring the current frame rate information.
  • the management module sent to the operating system.
  • the scenario data packet may include the game application identifier and the frame rate information of the running target application, and may further include at least one of the following: a key performance parameter, a data format identifier, a startup information, a resource update information, an account login information, and an interface.
  • Type information, behavior information of the target application (such as data transmission behavior information, data reception behavior information, etc.), etc., are not limited herein.
  • the format of the scene data packet may be, for example, a Java Object Object Notation (JSON), a protocol buffer (ProtocolBuffer, Protobuf), a custom format, and the like, and is not limited herein.
  • the internal running scenario may be divided according to different preset conditions. For example, according to whether there is user interaction, the internal running scenario may be divided into an interactive scenario and a non-interactive scenario, or may be divided into a single user scenario and multiple users according to the complexity of the task.
  • the scenario is divided into a startup scenario, a resource update scenario, an account login scenario, a mall scenario, and a main interface scenario according to different behaviors.
  • the target application includes a data connection module
  • the operating system includes a data connection management module
  • the data connection management module establishes a preset data channel with the data connection module
  • the management module receives
  • the scenario data packet sent by the running target application includes: the management module receiving, by using the preset data channel, a scenario data packet sent by the target application.
  • the preset data channel is an effective data transmission link established between the target application and the operating system when the target application is running, and the data transmission link is cleared after the target application is not running.
  • the target application may further include a data collection module, a data collation module, a priority management module, and a data receiving module, wherein the data collection module is configured to collect key information of the target application at runtime;
  • the module is used to sort the collected key information, such as merging duplicate information, deleting redundant information, etc.;
  • the priority management module is used to classify the collected key information according to the importance of the key information, and prioritize the high priority. Key information, filtering key information with lower priority, or reducing the use of lower priority key information during packet generation;
  • data receiving module is used to receive and parse the data sent by the operating system and deliver it to the target Inside the application.
  • the management module determines a policy module corresponding to the application identifier in the multiple policy modules.
  • Each of the multiple policy modules may be applicable to one application, and the multiple policy modules correspond to multiple different applications.
  • the first policy module is applicable to the first game application
  • the second policy module is applicable to the second game application or the like.
  • the management module determines a policy module corresponding to the application identifier in the multiple policy modules, and the management module uses the application identifier as a query identifier to query a mapping between a preset policy module and an application identifier. Relationship, determining a policy module corresponding to the application identifier in the scenario data packet.
  • the policy module determines, according to the frame rate information, a performance improvement policy of the target application.
  • the performance improvement policy refers to a resource configuration policy, such as a CPU resource adjustment policy, a GPU resource adjustment policy, a memory bandwidth resource adjustment policy, a disk resource adjustment policy, and a network resource, for improving the running performance of the running target application. Adjustment strategies, etc., are not limited here.
  • the operating system adjusts allocation of system resources of the target application according to the performance improvement policy.
  • the resource includes at least one of the following resources of the mobile terminal: a CPU resource, a GPU resource, a memory bandwidth resource, a disk resource, and a network resource.
  • the network resources include network resources of the data network of the mobile terminal, network resources of the wireless fidelity Wi-Fi network, and control parameter resources of the Bluetooth module.
  • the operating system can communicate with the kernel layer of the operating system space through direct connection communication, and adjust the configuration of the system resource.
  • Direct communication means direct communication through an abstract Application Programming Interface (API).
  • API Application Programming Interface
  • the operating system can communicate with the kernel layer of the operating system space through indirect communication to adjust the configuration of the system resource, and the indirect communication mode refers to indirect communication by calling a proxy service, such as a network.
  • a proxy service such as a network.
  • the Wi-Fi subsystem or the data network subsystem in the resource does not run in the same system as the operating system. It needs to access these system resources indirectly through some proxy methods.
  • the Wi-Fi proxy service is provided in the operating system. The interface of the proxy service is invoked to communicate indirectly with the Wi-Fi subsystem.
  • the management module in the operating system of the mobile terminal first receives the scenario data packet sent by the running target application, and the scenario data packet includes the application identifier and the frame rate information of the target application. Second, the management module determines a policy module corresponding to the application identifier in the multiple policy modules, and then the policy module determines a performance improvement policy of the target application according to the frame rate information, and finally, the operating system follows the The performance improvement policy adjusts the allocation of system resources of the target application.
  • the operating system can accurately determine the applicable policy module according to the application identifier, and then invoke the policy module according to the scenario identifier. Fine-tuning the performance improvement strategy of the current internal running scenario of the target application, and the operating system adjusts the configuration of the system resource of the target application in real time according to the performance improvement policy, and implements the target application in the running process by the operating system. Real-time performance optimization is beneficial to improve the real-time and accuracy of performance optimization of mobile terminal control target applications.
  • the policy module determines a performance promotion policy of the target application according to the frame rate information, including: the policy module determines a system resource to be adjusted corresponding to the frame rate information; The policy module determines a performance improvement policy of the target application according to the system resource to be adjusted and the frame rate information.
  • the policy module may query the corresponding relationship between the preset frame rate information and the resource to obtain the system resource to be adjusted, and the corresponding relationship may include, for example, a correspondence between the frame rate and the GPU resource, or a frame rate and a resource.
  • the correspondence between combinations for example, CPU resources and GPU resources is not limited here.
  • the resource associated with the frame rate information is a system resource to be adjusted, and the performance improvement strategy of the target application can be further determined according to the system resource to be adjusted, which is beneficial to improving the accuracy of the mobile terminal controlling the target application for optimization.
  • the policy module determines a performance promotion policy of the target application according to the system resource to be adjusted and the frame rate information, including: the policy module determines, according to the frame rate information, a frame rate value of the current interface of the target application; the policy module determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is lower than a preset frame rate value And the policy module determines, according to the difference, an adjustment amount of the system resource to be adjusted, where the policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the frame rate information includes a current frame rate value of the target application, that is, the number of frames displayed per second.
  • the frame rate of the game application is generally limited to 60 frames, and the preset frame rate value may be a value less than 60, for example, 50.
  • a frame when detecting a frame rate value of the current display interface of the game application is less than 50 frames, calculating a difference between the frame rate value and the preset frame rate value, and the policy module determines, according to the difference, an adjustment amount of the resource to be adjusted, where
  • the adjustment amount can be calculated by a preset formula. Specifically, the larger the difference is, the larger the adjustment amount is, or the difference is the query identifier, and the mapping relationship between the preset difference and the adjustment amount is determined.
  • the adjustment amount corresponding to the difference is an adjustment amount of the system resource to be adjusted.
  • the policy module determines the to-be-adjusted resource corresponding to the frame rate information when the frame rate value is lower than the preset frame rate value.
  • the resource to be adjusted may be a CPU resource, such as a CPU quantity and frequency, or a memory resource, or a disk. Resources to increase the game frame rate and improve the user experience.
  • the amount of adjustment can further determine the performance improvement strategy of the target application, which is beneficial to improve the accuracy of the mobile terminal to control the target application for optimization.
  • the policy module determines a performance promotion policy of the target application according to the system resource to be adjusted and the frame rate information, including: the policy module determines, according to the frame rate information, a frame rate value of a current interface of the target application; the policy module determines a reference frame rate interval to which the frame rate value belongs; and the policy module searches between a preset frame rate interval and an adjustment amount of a system resource to be adjusted The mapping relationship determines an adjustment amount of the system resource to be adjusted corresponding to the reference frame rate interval. The policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • each reference frame rate interval corresponds to an adjustment amount of system resources to be adjusted, and a mapping relationship between adjustment amounts of system resources whose frame rate interval is very hot to be adjusted is formed.
  • the policy module may determine the reference frame rate interval to which the frame rate value belongs, by searching for a preset frame rate interval and system resources to be adjusted.
  • the mapping relationship between the adjustment amounts determines the adjustment amount of the system resource to be adjusted corresponding to the reference interval.
  • the frame rate information includes a current frame rate value of the target application, and the reference frame rate interval corresponding to the frame rate value is determined, and the adjustment amount of the system resource to be adjusted corresponding to the frame rate value is further determined. It is beneficial to improve the accuracy of the mobile terminal control target application for running optimization.
  • the policy module determines a performance promotion policy of the target application according to the system resource to be adjusted and the frame rate information, including: the policy module determining, according to the frame rate information, a frame rate value of the current interface of the target application; the policy module determines, between the frame rate value and the preset frame rate value, when detecting that the frame rate value is higher than a preset frame rate value And the policy module determines, according to the difference, an adjustment amount of the system resource to be adjusted, where the policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the operating system may downgrade the system resources of the target application, such as reducing the allocation of the corresponding system resources to reduce the frame rate,
  • the target application's frame rate can be stabilized within a preset frame rate range, optimizing the power consumption of the target application, which is beneficial to enhance the user experience.
  • determining the system resource to be adjusted by determining the difference between the frame rate value and the preset frame rate value can further determine the performance improvement strategy of the target application, which is beneficial to improve the accuracy of the mobile terminal to control the target application for optimization.
  • the method before the management module receives the scenario data packet sent by the target application that is running, the method further includes: the management module sending the first data format to the target application, where The first data format is used by the target application to convert the second data format of the scene data packet to the first data format.
  • the data format identifier may be, for example, the JSON, Protobuf, etc., which is not limited herein.
  • the management module parses the scene data packet according to the data format indicated by the first data format identifier, determines the game application type identifier of the target application, and the game loading scene identifier, and The policy module sends the game application type identifier and the game loading scene identifier; it can be seen that the management module uniformly processes the scene data packet, and the policy module only needs to directly receive the processing result of the management module, so that the setting is beneficial to the lightweighting and The function of the refined policy module facilitates maintenance, addition, and other operations on the policy module to improve system stability.
  • the application identifier and the scene identifier cannot be correctly determined due to the format difference, which is beneficial to improving the success rate of the mobile terminal for performing accurate resource configuration for the running target application.
  • the target application and the operating system agree on a specific data format to transmit the scenario data packet, so that after receiving the scenario data packet, the operating system can analyze the application identifier and the scenario identifier in the scenario data packet in real time, and reduce Processing delays is beneficial to improve data processing efficiency and improve real-time resource adjustment for target applications in operation.
  • FIG. 3 is a schematic flowchart of a resource configuration method according to an embodiment of the present disclosure, which is applied to a mobile terminal, where an operating system runs on the mobile terminal. And one or more applications, the operating system includes a management module and a plurality of policy modules, each of which is used to determine a performance improvement policy of an application.
  • the resource configuration method includes:
  • the management module receives a scenario data packet sent by a running target application, where the scenario data packet includes an application identifier and frame rate information of the target application.
  • the management module determines a policy module corresponding to the application identifier in the multiple policy modules.
  • the policy module determines, according to the frame rate information, a frame rate value of a current interface of the target application.
  • the policy module determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is lower than a preset frame rate value.
  • the policy module determines, according to the difference, an adjustment amount of the system resource to be adjusted.
  • the policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the operating system adjusts allocation of system resources of the target application according to the performance improvement policy.
  • the management module in the operating system of the mobile terminal first receives the scenario data packet sent by the running target application, and the scenario data packet includes the application identifier and the frame rate information of the target application. Second, the management module determines a policy module corresponding to the application identifier in the multiple policy modules, and then the policy module determines a performance improvement policy of the target application according to the frame rate information, and finally, the operating system follows the The performance improvement policy adjusts the allocation of system resources of the target application.
  • the operating system can accurately determine the applicable policy module according to the application identifier, and then invoke the policy module according to the scenario identifier. Fine-tuning the performance improvement strategy of the current internal running scenario of the target application, and the operating system adjusts the configuration of the system resource of the target application in real time according to the performance improvement policy, and implements the target application in the running process by the operating system. Real-time performance optimization is beneficial to improve the real-time and accuracy of performance optimization of mobile terminal control target applications.
  • the mobile terminal does not need to load all the policy modules at the same time, and only needs to load the policy module corresponding to the target application running in the foreground of the mobile terminal, which is beneficial to reducing the mobile terminal.
  • Resource utilization improve resource utilization and control efficiency.
  • FIG. 4 is a schematic flowchart of a resource configuration method according to an embodiment of the present disclosure, which is applied to a mobile terminal, where the mobile terminal runs.
  • An operating system and one or more target applications the operating system including a management module, a plurality of policy modules, and a data connection management module, each policy module for determining a performance improvement policy of an application, the target application
  • the data connection module is included, and the scene data package includes a game application type identifier and a game loading scene identifier of the target application, and the scene data package includes a data format identifier.
  • the resource configuration method includes:
  • the data connection management module establishes a data channel with the data connection module.
  • the data connection management module receives, by using the data channel, a scenario data packet sent by the target application, where the scenario data packet includes an application identifier and frame rate information of the target application.
  • the management module determines a policy module corresponding to the application identifier in the multiple policy modules.
  • the policy module determines, according to the frame rate information, a frame rate value of a current interface of the target application.
  • the policy module determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is lower than a preset frame rate value.
  • the policy module determines, according to the difference, an adjustment amount of the system resource to be adjusted.
  • the policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the operating system adjusts allocation of system resources of the target application according to the performance improvement policy.
  • the management module in the operating system of the mobile terminal first receives the scenario data packet sent by the running target application, and the scenario data packet includes the application identifier and the frame rate information of the target application. Second, the management module determines a policy module corresponding to the application identifier in the multiple policy modules, and then the policy module determines a performance improvement policy of the target application according to the frame rate information, and finally, the operating system follows the The performance improvement policy adjusts the allocation of system resources of the target application.
  • the operating system can accurately determine the applicable policy module according to the application identifier, and then invoke the policy module according to the scenario identifier. Fine-tuning the performance improvement strategy of the current internal running scenario of the target application, and the operating system adjusts the configuration of the system resource of the target application in real time according to the performance improvement policy, and implements the target application in the running process by the operating system. Real-time performance optimization is beneficial to improve the real-time and accuracy of performance optimization of mobile terminal control target applications.
  • the mobile terminal does not need to load all the policy modules at the same time, and only needs to load the policy module corresponding to the target application running in the foreground of the mobile terminal, which is beneficial to reducing the mobile terminal.
  • Resource utilization improve resource utilization and control efficiency.
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
  • the mobile terminal runs one or more An application and an operating system, as shown, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are different from the one or more applications, and The one or more programs are stored in the memory and are configured to be executed by the processor, the program including instructions for performing the following steps:
  • the allocation of system resources of the target application is adjusted according to the performance improvement policy.
  • the management module in the operating system of the mobile terminal first receives the scenario data packet sent by the running target application, and the scenario data packet includes the application identifier and the frame rate information of the target application. Second, the management module determines a policy module corresponding to the application identifier in the multiple policy modules, and then the policy module determines a performance improvement policy of the target application according to the frame rate information, and finally, the operating system follows the The performance improvement policy adjusts the allocation of system resources of the target application.
  • the operating system can accurately determine the applicable policy module according to the application identifier, and then invoke the policy module according to the scenario identifier. Fine-tuning the performance improvement strategy of the current internal running scenario of the target application, and the operating system adjusts the configuration of the system resource of the target application in real time according to the performance improvement policy, and implements the target application in the running process by the operating system. Real-time performance optimization is beneficial to improve the real-time and accuracy of performance optimization of mobile terminal control target applications.
  • the instructions in the program are specifically configured to: control the policy module to determine a system resource to be adjusted corresponding to the frame rate information; and controlling the policy module to determine a performance improvement policy of the target application according to the system resource to be adjusted and the frame rate information.
  • the policy module determines a performance promotion policy of the target application according to the system resource to be adjusted and the frame rate information, including: the policy module determines, according to the frame rate information, a frame rate value of the current interface of the target application; the policy module determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is lower than a preset frame rate value And the policy module determines, according to the difference, an adjustment amount of the system resource to be adjusted, where the policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the policy module determines a performance promotion policy of the target application according to the system resource to be adjusted and the frame rate information, including: the policy module determines, according to the frame rate information, a frame rate value of a current interface of the target application; the policy module determines a reference frame rate interval to which the frame rate value belongs; and the policy module searches between a preset frame rate interval and an adjustment amount of a system resource to be adjusted The mapping relationship determines an adjustment amount of the system resource to be adjusted corresponding to the reference frame rate interval. The policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the policy module determines a performance promotion policy of the target application according to the system resource to be adjusted and the frame rate information, including: the policy module determines, according to the frame rate information, a frame rate value of the current interface of the target application; the policy module determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is higher than a preset frame rate value And the policy module determines, according to the difference, an adjustment amount of the system resource to be adjusted, where the policy module generates a performance improvement policy of the target application according to the adjustment amount.
  • the target application includes a data connection module
  • the operating system includes a data connection management module
  • the data connection management module establishes a preset data channel with the data connection module
  • the management module receives
  • the scenario data packet sent by the running target application includes: the management module receiving, by using the preset data channel, a scenario data packet sent by the target application.
  • the method before the management module receives the scenario data packet sent by the target application that is running, the method further includes: the management module sending the first data format to the target application, where The first data format is used by the target application to convert the second data format of the scene data packet to the first data format.
  • the target application may further include a data collection module, a data collation module, a priority management module, and a data receiving module, where the data collection module is configured to collect key information of the target application at runtime.
  • the data collation module is configured to sort the collected key information
  • the priority management module is configured to classify the collected key information according to the importance degree of the key information, and preferentially process the key information with high priority, and the filtering priority is compared.
  • Low key information, or the use of lower priority key information during the packet generation process which is used to receive and parse the data sent by the operating system and pass it to the target application.
  • the resource includes at least one of the following resources of the mobile terminal: a CPU resource, a GPU resource, a memory bandwidth resource, a disk resource, and a network resource.
  • the mobile terminal includes corresponding hardware structures and/or software modules for performing the respective functions in order to implement the functions.
  • the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for each particular application to implement the described functionality, but such implementation should not be considered to be beyond the scope of the application.
  • the embodiment of the present application may divide a functional unit into a mobile terminal according to the method example.
  • each functional unit may be divided according to each function, or two or more functions may be integrated into one processing unit.
  • the integrated unit can be implemented in the form of hardware or in the 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 logical function division. In actual implementation, there may be another division manner.
  • FIG. 6 shows a block diagram of one possible functional unit composition of the resource configuration apparatus involved in the embodiment.
  • the resource configuration device 600 is applied to a mobile terminal on which an operating system and one or more applications are run.
  • the resource configuration device 600 includes a processing unit 602 and a communication unit 603.
  • the processing unit 602 is configured to perform control management on the action of the resource configuration apparatus.
  • the processing unit 602 is configured to support the resource configuration apparatus to perform steps S201-S203 in FIG. 2, steps S301-S307 in FIG. 3, and steps in FIG. S401-S408 and/or other processes for the techniques described herein.
  • the resource configuration device may further include a storage unit 601 for storing program codes and data.
  • the processing unit 602 is configured to control, by the management module, the scenario data packet sent by the running target application by the communication unit 603, where the scenario data packet includes an application identifier and frame rate information of the target application; And the control module is configured to determine a policy module corresponding to the application identifier in the multiple policy modules; and a performance improvement policy for controlling the policy module to determine the target application according to the frame rate information; And for controlling the operating system to adjust the allocation of system resources of the target application according to the performance improvement policy.
  • the processing unit 602 is specifically configured to: control the policy module to determine the frame rate information, where the policy module determines a performance improvement policy of the target application according to the frame rate information. Corresponding system resources to be adjusted; and controlling the policy module to determine a performance improvement policy of the target application according to the system resource to be adjusted and the frame rate information.
  • the processing unit 602 is specifically configured to: control the performance improvement policy of the target application according to the system resource to be adjusted and the frame rate information. Determining, by the policy module, a frame rate value of the current interface of the target application according to the frame rate information; and controlling the policy module to determine the frame rate value when detecting that the frame rate value is lower than a preset frame rate value And a difference between the predetermined frame rate value; and controlling the policy module to determine, according to the difference, an adjustment amount of the system resource to be adjusted to be adjusted; and controlling the policy module to generate according to the adjustment amount The performance improvement strategy of the target application.
  • the processing unit 602 is specifically configured to: control the performance improvement policy of the target application according to the system resource to be adjusted and the frame rate information.
  • the policy module determines a frame rate value of the current interface of the target application according to the frame rate information; and controls the policy module to determine a reference frame rate interval to which the frame rate value belongs; and controls the policy module to search for a preset And a mapping relationship between the frame rate interval and the adjustment amount of the system resource to be adjusted, and determining an adjustment amount of the system resource to be adjusted corresponding to the reference frame rate interval. And controlling the policy module to generate a performance improvement policy of the target application according to the adjustment amount.
  • the processing unit 602 is specifically configured to: control the performance improvement policy of the target application according to the system resource to be adjusted and the frame rate information. Determining, by the policy module, a frame rate value of the current interface of the target application according to the frame rate information; and controlling the policy module to determine the frame rate value and when detecting that the frame rate value is higher than a preset frame rate value a difference between the preset frame rate values; and controlling, by the policy module, to determine, according to the difference, an adjustment amount of the system resource to be adjusted to be adjusted; and controlling the policy module to generate, according to the adjustment amount A performance improvement strategy for the target application.
  • the target application includes a data connection module
  • the operating system includes a data connection management module
  • the data connection management module establishes a preset data channel with the data connection module
  • the processing unit 602 is specifically configured to: control, by the management module, the scenario data packet sent by the target application by using the preset data channel, in the aspect of receiving the scenario data packet sent by the running target application.
  • the target application may further include a data collection module, a data collation module, a priority management module, and a data receiving module, where the data collection module is configured to collect key information of the target application at runtime.
  • the data collation module is configured to sort the collected key information
  • the priority management module is configured to classify the collected key information according to the importance degree of the key information, and preferentially process the key information with high priority, and the filtering priority is compared.
  • Low key information, or the use of lower priority key information during the packet generation process which is used to receive and parse the data sent by the operating system and pass it to the target application.
  • the processing unit 602 is further configured to control the management module to the target
  • the application sends a first data format, the first data format being used by the target application to convert the second data format of the scene data packet to the first data format.
  • the target application includes a data connection module, and the operating system includes a data connection management module.
  • the resource configuration device further includes a channel establishment unit, and the channel establishment unit is configured to control the data connection management module and the data.
  • the connection module establishes the preset data channel.
  • the resource includes at least one of the following resources of the mobile terminal: a CPU resource, a GPU resource, a memory bandwidth resource, a disk resource, and a network resource.
  • the processing unit 602 may be a processor or a controller
  • the communication unit 603 may be an internal communication interface between the processor and the program running space, such as a communication interface between the processor and the operating system space, or a communication between the processor and the user space.
  • the interface or the like, the storage unit 601 may be a memory.
  • FIG. 7 is a schematic structural diagram of a smart phone 700.
  • the smart phone 700 includes a housing 710, a touch display screen 720, a main board 730, a battery 740, and a sub-board 750.
  • the main board 730 is provided with a front camera 731, a processor 732, a memory 733, a power management chip 734, and the like.
  • the sub board is provided with a vibrator 751, an integrated sound chamber 752, a VOOC flash charging interface 753, and a fingerprint recognition module 754.
  • the smart phone includes a target application and an operating system, the target application runs in a user space, and the operating system runs in an operating system space.
  • the operating system includes a management module and a plurality of policy modules, and each policy module is used to determine an application. Performance improvement strategy.
  • the management module receives the scenario data packet sent by the running target application, the scenario data packet includes the application identifier and the frame rate information of the target application, and the management module determines a policy module corresponding to the application identifier among the multiple policy modules; the policy module is configured according to the frame
  • the rate information determines a performance improvement policy of the target application; the operating system adjusts the allocation of system resources of the target application according to the performance improvement policy.
  • the processor 732 is a control center of the smartphone, and connects various parts of the entire smartphone by using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 733, and calling the storage in the memory 733.
  • the processor 732 may include one or more processing units; preferably, the processor 732 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the modem processor may also not be integrated into the processor 732.
  • the processor 732 can be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), and field programmable. Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the memory 733 can be used to store software programs and modules, and the processor 732 executes various functional applications and data processing of the smartphone by running software programs and modules stored in the memory 733.
  • the memory 733 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the smartphone, and the like.
  • the memory 733 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the memory 733 can be, for example, a random access memory (RAM), a flash memory, a read only memory (ROM), an erasable programmable read only memory (EPROM), and an electrically erasable memory.
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read only memory
  • EEPROM Electrically erasable memory.
  • registers hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, the computer program causing the computer to execute part or all of any of the methods described in the method embodiment.
  • the computer includes a mobile terminal.
  • the embodiment of the present application further provides a computer program product, comprising: a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute as described in the method embodiment Part or all of the steps of either method.
  • the computer program product can be a software installation package, the computer comprising a mobile terminal.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory.
  • a computer readable memory A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

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

Abstract

Selon des modes de réalisation, l'invention concerne un procédé d'attribution de ressources et un produit associé. Le procédé comprend les étapes suivantes : un module de gestion dans un système d'exploitation d'un terminal mobile reçoit un paquet de données de scène envoyé par un programme d'application cible en cours d'exécution, le paquet de données de scène comprenant un identifiant d'application et les informations de débit de trame du programme d'application cible ; le module de gestion détermine un module de stratégie correspondant à l'identifiant d'application à partir de multiples modules de stratégie ; le module de stratégie détermine une stratégie d'amélioration de performances pour le programme d'application cible en fonction des informations de débit de trame ; et le système d'exploitation ajuste l'attribution des ressources système pour le programme d'application cible en fonction de la stratégie d'amélioration des performances. Les modes de réalisation de l'invention sont utiles pour améliorer les performances en temps réel et la précision de l'optimisation des performances effectuée par un programme d'application cible sous la commande d'un terminal mobile.
PCT/CN2018/101352 2017-08-31 2018-08-20 Procédé d'attribution de ressources et produit associé WO2019042180A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710775918.7 2017-08-31
CN201710775918.7A CN107589998A (zh) 2017-08-31 2017-08-31 资源配置方法及相关产品

Publications (1)

Publication Number Publication Date
WO2019042180A1 true WO2019042180A1 (fr) 2019-03-07

Family

ID=61051868

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101352 WO2019042180A1 (fr) 2017-08-31 2018-08-20 Procédé d'attribution de ressources et produit associé

Country Status (2)

Country Link
CN (1) CN107589998A (fr)
WO (1) WO2019042180A1 (fr)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107589998A (zh) * 2017-08-31 2018-01-16 广东欧珀移动通信有限公司 资源配置方法及相关产品
CN108733427B (zh) * 2018-03-13 2020-04-21 Oppo广东移动通信有限公司 输入组件的配置方法、装置、终端及存储介质
CN109062715B (zh) * 2018-07-05 2022-02-08 Oppo(重庆)智能科技有限公司 内存时钟频率的确定方法、装置及终端
CN110798738B (zh) * 2018-08-01 2022-01-28 Oppo广东移动通信有限公司 帧率控制方法、装置、终端及存储介质
CN109284186A (zh) * 2018-08-21 2019-01-29 奇酷互联网络科技(深圳)有限公司 移动终端及其检测帧率调节移动终端性能的方法和装置
CN109376053B (zh) * 2018-09-20 2022-11-08 Oppo广东移动通信有限公司 数据处理方法、装置以及移动终端
CN109240833A (zh) * 2018-09-26 2019-01-18 Oppo广东移动通信有限公司 资源配置方法、装置、终端及存储介质
CN109413480B (zh) * 2018-09-30 2021-10-08 Oppo广东移动通信有限公司 画面处理方法、装置、终端及存储介质
CN109474751A (zh) * 2018-12-26 2019-03-15 深圳先进技术研究院 移动终端的能耗管理方法、系统及移动终端
CN111861539B (zh) * 2020-06-05 2024-04-05 百度在线网络技术(北京)有限公司 资源处理方法、装置、电子设备和存储介质
CN113285976A (zh) * 2021-04-07 2021-08-20 上海商米科技集团股份有限公司 一种云端控制进程管理系统
CN115097994B (zh) * 2021-10-30 2023-05-09 荣耀终端有限公司 数据处理方法和相关装置
CN114157824B (zh) * 2021-11-29 2023-08-18 联想(北京)有限公司 控制方法及电子设备
CN114222084B (zh) * 2021-12-01 2023-05-23 联想(北京)有限公司 一种控制方法、装置及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799488A (zh) * 2012-07-06 2012-11-28 中山大学深圳研究院 一种应用于数字电视的应用资源管理系统
CN103430151A (zh) * 2012-07-06 2013-12-04 华为终端有限公司 一种资源配置方法及装置
CN104216783A (zh) * 2014-08-20 2014-12-17 上海交通大学 云游戏中虚拟gpu资源自主管理与控制方法
CN104267800A (zh) * 2014-09-19 2015-01-07 上海联彤网络通讯技术有限公司 操作系统中实现应用程序显示解析度自动调整的方法
CN107589998A (zh) * 2017-08-31 2018-01-16 广东欧珀移动通信有限公司 资源配置方法及相关产品

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8875148B2 (en) * 2011-06-14 2014-10-28 International Business Machines Corporation Product-specific system resource allocation within a single operating system instance
CN102932383B (zh) * 2011-08-08 2015-07-29 联想(北京)有限公司 一种数据传输方法、终端及终端系统
CN106020990B (zh) * 2016-06-30 2020-01-10 宇龙计算机通信科技(深圳)有限公司 一种中央处理器的控制方法及终端设备
CN106201551A (zh) * 2016-07-22 2016-12-07 宇龙计算机通信科技(深圳)有限公司 一种应用程序退出方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102799488A (zh) * 2012-07-06 2012-11-28 中山大学深圳研究院 一种应用于数字电视的应用资源管理系统
CN103430151A (zh) * 2012-07-06 2013-12-04 华为终端有限公司 一种资源配置方法及装置
CN104216783A (zh) * 2014-08-20 2014-12-17 上海交通大学 云游戏中虚拟gpu资源自主管理与控制方法
CN104267800A (zh) * 2014-09-19 2015-01-07 上海联彤网络通讯技术有限公司 操作系统中实现应用程序显示解析度自动调整的方法
CN107589998A (zh) * 2017-08-31 2018-01-16 广东欧珀移动通信有限公司 资源配置方法及相关产品

Also Published As

Publication number Publication date
CN107589998A (zh) 2018-01-16

Similar Documents

Publication Publication Date Title
WO2019042180A1 (fr) Procédé d'attribution de ressources et produit associé
WO2019042294A1 (fr) Procédé d'attribution de ressources et dispositif associé
WO2019047709A1 (fr) Procédé de configuration de ressource et produit associé
WO2019042169A1 (fr) Procédé d'attribution de ressources et produits associés
US11151010B2 (en) Resource configuration method, mobile terminal and storage medium
WO2019042171A1 (fr) Procédé d'attribution de ressources et produit associé
CN107479970B (zh) 资源配置方法及相关产品
CN107450988B (zh) 资源配置方法及相关产品
CN107426432B (zh) 资源配置方法及相关产品
US11099901B2 (en) Method for resource allocation and terminal device
US11698815B2 (en) Method for resource allocation and related products
US10936371B2 (en) Method for resource allocation and related products
CN107547745B (zh) 资源配置方法及相关产品
US11301300B2 (en) Method for resource allocation and terminal device
US11016812B2 (en) Method for resource allocation and terminal device
CN107517306B (zh) 资源配置方法及相关产品
CN107807852B (zh) 应用程序性能控制方法、设备及计算机可读存储介质
WO2019085840A1 (fr) Procédé et appareil de réglage de ressources
WO2019047708A1 (fr) Procédé de configuration de ressource et produit associé
WO2019072208A1 (fr) Procédé et dispositif de commande d'exécution d'application
US11182210B2 (en) Method for resource allocation and terminal device
CN107832142B (zh) 应用程序的资源配置方法及设备
CN107528977B (zh) 资源配置方法及相关产品
WO2019042172A1 (fr) Procédé d'attribution de ressources et produit associé
WO2019076254A1 (fr) Procédé de commande d'application de jeu et dispositif

Legal Events

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

Ref document number: 18849588

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18849588

Country of ref document: EP

Kind code of ref document: A1