WO2019047708A1 - Procédé de configuration de ressource et produit associé - Google Patents

Procédé de configuration de ressource et produit associé Download PDF

Info

Publication number
WO2019047708A1
WO2019047708A1 PCT/CN2018/101351 CN2018101351W WO2019047708A1 WO 2019047708 A1 WO2019047708 A1 WO 2019047708A1 CN 2018101351 W CN2018101351 W CN 2018101351W WO 2019047708 A1 WO2019047708 A1 WO 2019047708A1
Authority
WO
WIPO (PCT)
Prior art keywords
scenario
resource
operating system
adjusted
running
Prior art date
Application number
PCT/CN2018/101351
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 WO2019047708A1 publication Critical patent/WO2019047708A1/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 shopping 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 applications, and the method includes:
  • the operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • 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, by the operating system, the scenario data packet sent by the running shopping application by the communication unit, where the scenario data packet includes scenario information of a current running scenario of the shopping application And determining, by the operating system, the system resource to be adjusted and the adjustment duration corresponding to the running scenario according to the scenario information; and controlling the operating system to determine the to-be-adjusted corresponding to the operating scenario.
  • the adjustment amount of the system resource is adjusted; and the system resource to be adjusted is adjusted according to the adjustment amount of the system resource to be adjusted, in the adjustment period corresponding to the adjustment time length.
  • 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.
  • the operating system space of the mobile terminal firstly runs the scenario data packet sent by the shopping application, and the scenario data packet includes the scenario information of the current running scenario of the shopping application. And the operating system determines, according to the scenario information, the system resource to be adjusted and the adjustment duration corresponding to the running scenario, and then the operating system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario, and finally, The operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • 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 third-party 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 operation of the third-party application.
  • the scenario can only be adapted using a standard set of parameters, and it is not possible to perform targeted performance optimization for the running scenarios of third-party applications.
  • the embodiment of the present application provides a resource configuration method for a shopping application in a third-party application of a mobile terminal, where the operating system receives a scene data packet sent by a running shopping application, and the scenario
  • the data packet includes scenario information of a current running scenario of the shopping application; the operating system determines, according to the scenario information, a system resource to be adjusted corresponding to the running scenario, and an adjustment duration; the operating system determines the corresponding scenario corresponding to the running scenario.
  • the adjustment amount of the system resource to be adjusted the operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in the adjustment period corresponding to the adjustment duration.
  • Optimizing the performance of the running scenario of the shopping application during the running process by the operating system is beneficial to improve the real-time and accuracy of the performance optimization of the mobile terminal controlling the shopping 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, as shown in the figure.
  • This resource configuration method includes:
  • the operating system receives a scenario data packet sent by a running shopping application, where the scenario data packet includes scenario information of a current running scenario of the shopping application.
  • the shopping application is a third-party application installed in the user space of the mobile terminal, such as a Taobao application, a Tmall application, a Jingdong application, etc., can be installed by the user, or can be installed by the developer before the mobile terminal leaves the factory. Pre-installed, there is no single limit here.
  • the scenario data packet may include scenario information of the running shopping 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, an interface type information, and a shopping application.
  • the behavior information of the program (such as data transmission behavior information, data reception behavior information, etc.), etc., is not limited here.
  • 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 method before the operating system receives the scenario data packet sent by the running shopping application, the method further includes: the operating system receiving the configuration information sent by the shopping application by using a preset private connection.
  • the configuration information includes the scenario information of the running scenario of the shopping application, the system resource to be adjusted corresponding to the running scenario, and the adjustment duration, where the preset private connection is an inter-process communication connection based on the verification and authorization mechanism.
  • the interprocess communication connection includes at least one of the following: a socket socket, a pipeline pipe, a named pipe FIFO, a shared memory share memory, and a shared file.
  • the operating system receives the configuration information sent by the shopping application through the preset private connection, which can improve the message receiving efficiency and the security of the message transmission.
  • the preset private connection is an inter-process communication connection based on the authentication and authorization mechanism. After the operating system verifies and authorizes the shopping application, a preset private connection can be established with the shopping application.
  • the method before the operating system receives the configuration information sent by the shopping application by using a preset private connection, the method further includes: the operating system receiving a private connection establishment request from the shopping application The private connection establishment request includes an application identifier of the shopping application; and the operating system establishes the preset private connection when detecting that the preset application identifier set includes the application identifier.
  • the private connection establishment request from the application is received through a conventional system interface or a standard interface, where the request includes an application identifier of the shopping application.
  • the shopping application is verified by the application identifier, and when the operating system detects that the application identifier is included in the preset application identifier set, the operating system allocates a data transmission interface for the shopping application, so that a pre-establishment can be established between the operating system and the shopping application.
  • Set up a private connection is a private connection.
  • the preset private connection is a valid preset private connection established between the shopping application and the operating system when the shopping application is running, and the preset private connection is automatically disconnected after the shopping application is not running.
  • the shopping application may include a data collection module, a data sorting module, a priority management module, and a data receiving module, wherein the data receiving module is configured to collect key information of the shopping application at runtime; the data sorting module It is used to organize 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 key information, and prioritize the key with high priority. 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 data sent by the operating system and pass it to the shopping application Inside the program.
  • the data receiving module is configured to collect key information of the shopping application at runtime
  • the data sorting module It is used to organize 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 key information, and prioritize the key with high priority. Information, filtering key information with lower priority, or
  • the operating system determines, according to the scenario information, a system resource to be adjusted and an adjustment duration corresponding to the running scenario.
  • the system 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 operating system determines an adjustment amount of the system resource to be adjusted corresponding to the running scenario.
  • S204 The operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system space of the mobile terminal firstly runs the scenario data packet sent by the shopping application, and the scenario data packet includes the scenario information of the current running scenario of the shopping application. And the operating system determines, according to the scenario information, the system resource to be adjusted and the adjustment duration corresponding to the running scenario, and then the operating system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario, and finally, The operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system can accurately refine the system resources to be adjusted that determine the current running scene of the shopping application according to the scene information.
  • the amount of adjustment is adjusted, and the operating system adjusts the system resources to be adjusted according to the adjustment amount of the system resources to be adjusted within the adjustment time period, thereby realizing the real-time performance optimization of the shopping application in the running process by the operating system, which is beneficial to improve the movement.
  • the terminal controls the shopping application for real-time performance and accuracy of performance optimization.
  • the running scenario includes any one of the following scenarios of the shopping application: a login scenario, a chat scenario with a customer service, viewing a merchandise detail scenario, a merchandise list sliding scenario, viewing a high-definition photo scene, and a background Database operation scenario.
  • the running scenario may include a login scenario, a chat scene with the customer service, a view of the product details, a sliding scene of the product list, a scene of viewing a high-definition picture, and an operation scene of the background database, which are not limited herein.
  • the running scenarios of the shopping application are classified and identified, and the system resources to be adjusted can be determined according to different running scenarios, and the real-time performance of resource adjustment for the running shopping application is improved.
  • the operating system determines, according to the scenario information, the system resource to be adjusted and the adjustment duration corresponding to the running scenario, including: the operating system uses the scenario information as a query identifier, and queries the pre-stored
  • the mapping between the scenario information and the system resource to be adjusted and the adjustment duration determines the system resource to be adjusted and the adjustment duration corresponding to the scenario information of the current running scenario.
  • the operating system may determine the to-be-adjusted resource corresponding to the scenario information according to the scenario information of the current running scenario.
  • the system resource to be adjusted is at least one of a CPU resource, a GPU resource, a memory bandwidth resource, a disk resource, a network resource, and an IO resource.
  • the shopping application may pre-define the running scenario, and the divided running scenario may serve as a basis for determining the type of system resources that need to be optimally adjusted.
  • the operating system may determine, according to the scenario information in the scenario data packet, an adjustment amount of each type of system resource in the system resource to be adjusted, and then generate a current running scenario of the shopping application according to the adjustment amount of the system resource to be adjusted. Performance improvement strategy.
  • the mobile terminal may determine the system resources to be adjusted and the adjustment duration according to the scenario information.
  • the system resources to be adjusted and the adjustment duration may be different for different scenarios, and may be different for the login scenario and viewing the high-definition image of the product.
  • the system resources to be adjusted and the adjustment duration can be determined by querying the preset mapping relationship, respectively, determining the login system and the system resources to be adjusted and the adjustment duration of the product high-level picture scene.
  • the system resources to be adjusted may be one or more, and may be a combination of resources.
  • the system resource to be adjusted corresponding to the scenario information is determined by querying a mapping relationship between the preset scenario information of the shopping application and the system resource to be adjusted and the adjustment duration.
  • adjusting the duration, the system resource to be adjusted and the adjustment duration can be determined by a simple search algorithm, the delay is low, and the accuracy is high, which is beneficial to improving the real-time and accurate operation optimization of the mobile terminal controlling the shopping application. degree.
  • the operating system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario, including: the operating system uses the scenario identifier of the running scenario as a query identifier, and queries a preset. And a mapping relationship between the scenario identifier of the shopping application 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 scenario identifier of the running scenario.
  • a scenario identifier may be assigned to each running scenario, and the corresponding running scenario may be determined according to the scenario identifier, where the scenario information may include a scenario identifier.
  • the scenario information includes network speed information of the current running scenario of the shopping application, and the operating system may determine the number of network resources that have been allocated to the shopping application for the currently running scenario. To make the shopping application run more smoothly, the operating system may need to be allocated. The additional network resources, the operating system determines the adjustment amount of the network resource according to the number of network resources and the network speed information of the running scenario, and the performance improvement strategy can be generated according to the adjustment amount.
  • the operating system determines the adjustment amount of the network resource according to the network resource quantity and the network speed information, and may determine, according to the current network speed in the network speed information, how many network speeds need to be upgraded, and then according to the network resource quantity corresponding to the current network speed. Determine the amount of network resources corresponding to the network speed that needs to be upgraded, and thus determine the adjustment amount of the network resources.
  • mapping between the scenario identifier of the shopping application and the adjustment amount of the system resource to be adjusted is pre-stored by the mobile terminal, and the mapping relationship may be obtained by the mobile terminal learning the historical usage record of different running scenarios of the shopping application. .
  • the adjustment amount of the system resource to be adjusted corresponding to the scenario identifier of the running scenario is determined, and it is urgent to adopt a simple
  • the search algorithm is beneficial to improve the real-time and accuracy of the mobile terminal controlling the shopping application for running optimization.
  • the scenario information includes scenario association information of the running scenario, and the operating system determines an adjustment amount of the system resource to be adjusted corresponding to the running scenario, where the operating system acquires The scenario association information of the running scenario, the scenario association information includes a frame rate value of the running scenario; and the operating system determines that the frame rate value is greater than or lower than a preset frame rate value when the operating system detects that the frame rate value is greater than or lower than a preset frame rate value a difference between the frame rate value and the preset frame rate value; the operating system determines an adjustment amount of the system resource to be adjusted according to the difference.
  • the scenario information includes scenario association information of the current running scenario of the shopping application, and the scenario association information includes a frame rate value of the running scenario.
  • the scenario association information includes a frame rate value of the running scenario.
  • a higher frame rate is required, and
  • the difference between the frame rate value and the preset frame rate value may be calculated, and the adjustment amount of the system resource to be adjusted is determined according to the difference.
  • the adjustment amount of the system resource to be adjusted is determined, so that the system resource of the shopping application is adjusted according to the adjustment amount, which is beneficial to improving the running scenario of the shopping application.
  • the frame rate is beneficial to improve the real-time and accuracy of the mobile terminal to control the shopping application for running optimization.
  • the method further includes: the operating system receiving a resource adjustment cancellation request from the shopping application; the operating system responding to the resource adjustment cancellation request, canceling the system according to the to-be-adjusted The adjustment amount of the resource adjusts the system resource to be adjusted.
  • the shopping application may send a resource adjustment cancellation request to the operating system after detecting that the current running scenario has ended or is about to end, and the operating system cancels after receiving the resource adjustment cancellation request. Adjusting the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted.
  • the operating system cancels the system resources allocated to the shopping application in time after receiving the resource adjustment cancellation request sent by the shopping application, thereby avoiding that the system resources are always in a high use state, which is beneficial to reducing the mobile terminal system. Resource usage and power consumption, improving resource utilization and power management efficiency.
  • 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.
  • this resource configuration method includes:
  • the operating system receives a scenario data packet sent by a running shopping application, where the scenario data packet includes scenario information of a current running scenario of the shopping application.
  • the operating system determines, according to the scenario information, a system resource to be adjusted and an adjustment duration corresponding to the running scenario.
  • the operating system acquires scene association information of the running scenario, where the scenario association information includes a frame rate value of the running scenario.
  • the operating system determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is greater than or lower than a preset frame rate value.
  • the operating system determines, according to the difference, an adjustment amount of the system resource to be adjusted.
  • the operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system space of the mobile terminal firstly runs the scenario data packet sent by the shopping application, and the scenario data packet includes the scenario information of the current running scenario of the shopping application. And the operating system determines, according to the scenario information, the system resource to be adjusted and the adjustment duration corresponding to the running scenario, and then the operating system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario, and finally, The operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system can accurately refine the system resources to be adjusted that determine the current running scene of the shopping application according to the scene information.
  • the amount of adjustment is adjusted, and the operating system adjusts the system resources to be adjusted according to the adjustment amount of the system resources to be adjusted within the adjustment time period, thereby realizing the real-time performance optimization of the shopping application in the running process by the operating system, which is beneficial to improve the movement.
  • the terminal controls the shopping application for real-time performance and accuracy of performance optimization.
  • the system resource to be adjusted corresponding to the scenario information of the running scenario is determined by querying a mapping relationship between the scenario information of the shopping application and the system resource to be adjusted and the adjustment duration. Adjusting the duration, only through a simple search algorithm, low latency, high accuracy, is conducive to improve the real-time and accuracy of resource adjustment for the running shopping application.
  • the operating system cancels the system resources allocated to the shopping application in time, thereby avoiding that the system resources are always in a high use state, which is beneficial to reducing the resource occupation of the mobile terminal and the mobile terminal. Power consumption, 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 shopping applications the operating system including a management module, a plurality of policy modules, and a data connection management module, each policy module for determining an application of the at least one application of the same application type A performance improvement strategy, the shopping application includes a data connection module, the scene data package includes a game application type identifier and a game loading scene identifier of the shopping application, and the scene data package includes a data format identifier.
  • the resource configuration method includes:
  • the operating system receives a private connection establishment request from the shopping application, and the private connection establishment request includes an application identifier of the shopping application.
  • the operating system establishes the preset private connection when detecting that the preset application identifier set includes the application identifier.
  • the operating system receives, by using the preset private connection, a scenario data packet sent by a running shopping application, where the scenario data packet includes scenario information of a current running scenario of the shopping application.
  • the operating system determines, according to the scenario information, a system resource to be adjusted and an adjustment duration corresponding to the running scenario.
  • S405 The operating system acquires scene association information of the running scenario, where the scenario association information includes a frame rate value of the running scenario.
  • the operating system determines a difference between the frame rate value and the preset frame rate value when detecting that the frame rate value is greater than or lower than a preset frame rate value.
  • the operating system determines, according to the difference, an adjustment amount of the system resource to be adjusted.
  • the operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system space of the mobile terminal firstly runs the scenario data packet sent by the shopping application, and the scenario data packet includes the scenario information of the current running scenario of the shopping application. And the operating system determines, according to the scenario information, the system resource to be adjusted and the adjustment duration corresponding to the running scenario, and then the operating system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario, and finally, The operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system can accurately refine the system resources to be adjusted that determine the current running scene of the shopping application according to the scene information.
  • the amount of adjustment is adjusted, and the operating system adjusts the system resources to be adjusted according to the adjustment amount of the system resources to be adjusted within the adjustment time period, thereby realizing the real-time performance optimization of the shopping application in the running process by the operating system, which is beneficial to improve the movement.
  • the terminal controls the shopping application for real-time performance and accuracy of performance optimization.
  • the system resource to be adjusted corresponding to the scenario information of the running scenario is determined by querying a mapping relationship between the scenario information of the shopping application and the system resource to be adjusted and the adjustment duration. Adjusting the duration, only through a simple search algorithm, low latency, high accuracy, is conducive to improve the real-time and accuracy of resource adjustment for the running shopping application.
  • the operating system cancels the system resources allocated to the shopping application in time, thereby avoiding that the system resources are always in a high use state, which is beneficial to reducing the resource occupation of the mobile terminal and the mobile terminal. Power consumption, 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 operating system space of the mobile terminal firstly runs the scenario data packet sent by the shopping application, and the scenario data packet includes the scenario information of the current running scenario of the shopping application. And the operating system determines, according to the scenario information, the system resource to be adjusted and the adjustment duration corresponding to the running scenario, and then the operating system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario, and finally, The operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted, in an adjustment period corresponding to the adjustment duration.
  • the operating system can accurately refine the system resources to be adjusted that determine the current running scene of the shopping application according to the scene information.
  • the amount of adjustment is adjusted, and the operating system adjusts the system resources to be adjusted according to the adjustment amount of the system resources to be adjusted within the adjustment time period, thereby realizing the real-time performance optimization of the shopping application in the running process by the operating system, which is beneficial to improve the movement.
  • the terminal controls the shopping application for real-time performance and accuracy of performance optimization.
  • the running scenario includes any one of the following scenarios of the shopping application: a login scenario, a chat scenario with a customer service, viewing a merchandise detail scenario, a merchandise list sliding scenario, viewing a high-definition photo scene, and a background Database operation scenario.
  • the instructions in the program are specifically configured to: perform the following operations:
  • the operating system uses the scenario information as a query identifier to query the mapping relationship between the pre-stored scenario information and the system resource to be adjusted and the adjustment duration, and determines the system resources and adjustments to be adjusted corresponding to the scenario information of the current running scenario. duration.
  • the instructions in the program are further used to perform control of the operating system to receive the preset by using a preset private connection.
  • the configuration information sent by the shopping application includes scenario information of an operation scenario of the shopping application, and a system resource to be adjusted and an adjustment duration corresponding to the operation scenario, where the preset private connection is based on verification and
  • An inter-process communication connection of the authorization mechanism includes at least one of the following: a socket socket, a pipeline pipe, a named pipe FIFO, a shared memory share memory, and a shared file.
  • the instructions in the program are further used to perform control of the operating system to receive the shopping application.
  • a private connection establishment request of the program the private connection establishment request including an application identifier of the shopping application; and controlling the operating system to establish the pre-determination when detecting that the application identifier is included in a preset application identifier set Set up a private connection.
  • the scenario information includes a scenario identifier of the running scenario
  • the operating system determines, in the program, an adjustment amount of the system resource to be adjusted corresponding to the running scenario.
  • the command is specifically configured to: control the operating system to use the scenario identifier of the running scenario as a query identifier, and query a preset scenario identifier of the shopping application and an adjustment amount of the system resource to be adjusted.
  • the mapping relationship determines the adjustment amount of the system resource to be adjusted corresponding to the scenario identifier of the running scenario.
  • the scenario information includes scenario association information of the running scenario, where the scenario information includes the operating system determining an adjustment amount of the system resource to be adjusted corresponding to the running scenario
  • the instructions in the program are specifically configured to: control the operating system to acquire scene association information of the running scenario, the scenario association information includes a frame rate value of the running scenario; and control the operating system to And determining, when the frame rate value is greater than or lower than the preset frame rate value, determining a difference between the frame rate value and the preset frame rate value; and controlling the operating system to determine according to the difference The amount of adjustment of the system resource to be adjusted.
  • the instructions in the program are further configured to: control the operating system to receive a resource adjustment cancellation request from the shopping application; and control the operating system to respond to the resource adjustment cancellation And requesting, canceling, adjusting the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted.
  • 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-S306 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 the operating system to receive, by using the communication unit 603, a scenario data packet sent by a running shopping application, where the scenario data packet includes scenario information of a current running scenario of the shopping application. And determining, by the operating system, the system resource to be adjusted and the adjustment duration corresponding to the running scenario according to the scenario information; and controlling the operating system to determine the to-be-adjusted corresponding to the operating scenario.
  • the adjustment amount of the system resource is adjusted; and the system resource to be adjusted is adjusted according to the adjustment amount of the system resource to be adjusted, in the adjustment period corresponding to the adjustment time length.
  • the running scenario includes any one of the following scenarios of the shopping application: a login scenario, a chat scenario with a customer service, viewing a merchandise detail scenario, a merchandise list sliding scenario, viewing a high-definition photo scene, and a background Database operation scenario.
  • the processing unit 602 is specifically configured to: control the operating system to use the operating system to determine the system resource to be adjusted and the adjustment duration according to the scenario information.
  • the scenario information is a query identifier, and the mapping relationship between the pre-stored scenario information and the system resource to be adjusted and the adjustment duration is queried, and the system resources to be adjusted and the adjustment duration corresponding to the scenario information of the current running scenario are determined.
  • the processing unit 602 before the operating system receives the scene data packet sent by the running shopping application, the processing unit 602 is further configured to control the operating system to receive the shopping application sending by using a preset private connection.
  • the configuration information includes the scenario information of the running scenario of the shopping application and the system resource and the adjustment duration to be adjusted corresponding to the running scenario, where the preset private connection is a process based on the verification and authorization mechanism
  • the inter-process communication connection includes at least one of the following: a socket socket, a pipeline pipe, a named pipe FIFO, a shared memory share memory, and a shared file.
  • the processing unit 602 before the operating system receives the configuration information sent by the shopping application by using a preset private connection, is further configured to control the operating system to receive the private from the shopping application. a connection establishment request, where the private connection establishment request includes an application identifier of the shopping application; and controlling the operating system to establish the preset private connection when detecting that the preset application identifier set includes the application identifier .
  • the scenario information includes a scenario identifier of the running scenario
  • the processing unit 602 is specific to the operating system determining an adjustment amount of the system resource to be adjusted corresponding to the running scenario.
  • the method is configured to: control, by the operating system, the scenario identifier of the running scenario as a query identifier, and query a mapping relationship between a preset scenario identifier of the shopping application and an adjustment amount of the system resource to be adjusted, and determine The scenario identifier of the running scenario corresponds to the adjustment amount of the system resource to be adjusted.
  • the scenario information includes scenario association information of the running scenario, where the scenario information includes the operating system determining an adjustment amount of the system resource to be adjusted corresponding to the running scenario
  • the processing unit 602 is specifically configured to: control the operating system to acquire scene association information of the running scenario, where the scenario association information includes a frame rate value of the running scenario; and control the operating system to detect the Determining a difference between the frame rate value and the preset frame rate value when a frame rate value is greater than or lower than a preset frame rate value; and controlling the operating system to determine the to-be adjusted according to the difference The amount of adjustment of system resources.
  • the processing unit 602 is further configured to control the operating system to receive a resource adjustment cancellation request from the shopping application; and control the operating system to respond to the resource adjustment cancellation request, cancel the The adjustment amount of the system resource that is to be adjusted adjusts the system resource to be adjusted.
  • 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 shopping application and an operating system, the shopping application runs in a user space, the operating system runs in an operating system space, and the operating system includes an operating system.
  • the operating system receives the scenario data packet sent by the running shopping application, and the scenario data packet includes the scenario information of the current running scenario of the shopping application; the operating system determines the system resource to be adjusted corresponding to the running scenario and the adjustment duration according to the scenario information; The system determines the adjustment amount of the system resource to be adjusted corresponding to the running scenario; the operating system adjusts the system resource to be adjusted according to the adjustment amount of the system resource to be adjusted in the adjustment period corresponding to the adjustment duration.
  • 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)
  • Stored Programmes (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

La présente invention concerne, selon un mode de réalisation, un procédé de configuration de ressource et un produit associé. Le procédé comprend les étapes suivantes : un système d'exploitation d'un terminal mobile reçoit un paquet de données de scénario qui est envoyé par un programme d'application d'achat en cours d'exécution, le paquet de données de scénario comprenant des informations de scénario d'un scénario en cours d'exécution du programme d'application d'achat et une ressource de système à réguler ; le système d'exploitation génère une politique d'amélioration des performances du scénario en cours d'exécution en fonction des informations de scénario et de la ressource de système à réguler ; le système d'exploitation régule l'attribution de ressources de système du programme d'application d'achat en fonction de la politique d'amélioration des performances. Le mode de réalisation de la présente invention se révèle avantageux pour améliorer les performances et la précision en temps réel dans un terminal mobile commandant un programme d'application d'achat en vue d'une optimisation des performances.
PCT/CN2018/101351 2017-09-06 2018-08-20 Procédé de configuration de ressource et produit associé WO2019047708A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710795540.7 2017-09-06
CN201710795540.7A CN107621981A (zh) 2017-09-06 2017-09-06 资源配置方法及相关产品

Publications (1)

Publication Number Publication Date
WO2019047708A1 true WO2019047708A1 (fr) 2019-03-14

Family

ID=61089283

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101351 WO2019047708A1 (fr) 2017-09-06 2018-08-20 Procédé de configuration de ressource et produit associé

Country Status (2)

Country Link
CN (1) CN107621981A (fr)
WO (1) WO2019047708A1 (fr)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107621981A (zh) * 2017-09-06 2018-01-23 广东欧珀移动通信有限公司 资源配置方法及相关产品
CN108646938B (zh) * 2018-03-13 2020-04-17 Oppo广东移动通信有限公司 触摸屏的配置方法、装置、终端及存储介质
CN109558165B (zh) * 2018-11-29 2022-07-08 广州市百果园信息技术有限公司 一种配置优化方法、装置、设备和存储介质
CN109739635B (zh) * 2019-01-28 2021-06-22 Oppo广东移动通信有限公司 系统性能的优化方法、装置、终端及存储介质
CN110266725B (zh) * 2019-07-08 2021-10-22 何荣宝 密码安全隔离模块及移动办公安全系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012068150A1 (fr) * 2010-11-15 2012-05-24 Qualcomm Incorporated Arbitrage d'acquisition de ressource pour des applications d'un dispositif de communication mobile équipé de plusieurs processeurs
CN103430151A (zh) * 2012-07-06 2013-12-04 华为终端有限公司 一种资源配置方法及装置
CN103984538A (zh) * 2014-03-27 2014-08-13 华为技术有限公司 应用场景的识别方法、功耗管理方法、装置及终端设备
CN106095592A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种前景应用程序场景同步方法及装置、系统
CN107479970A (zh) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 资源配置方法及相关产品
CN107621981A (zh) * 2017-09-06 2018-01-23 广东欧珀移动通信有限公司 资源配置方法及相关产品

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932383B (zh) * 2011-08-08 2015-07-29 联想(北京)有限公司 一种数据传输方法、终端及终端系统
CN105045367A (zh) * 2015-01-16 2015-11-11 中国矿业大学 基于游戏负载预测的android系统设备功耗优化方法
CN105677477B (zh) * 2015-12-30 2019-10-15 北京金山安全软件有限公司 一种优化应用程序资源的方法、装置及电子设备
CN105893142A (zh) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 一种资源分配方法及装置
CN106997309A (zh) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 一种cpu核心的管理方法、装置及终端
CN106020990B (zh) * 2016-06-30 2020-01-10 宇龙计算机通信科技(深圳)有限公司 一种中央处理器的控制方法及终端设备
CN106354564A (zh) * 2016-08-31 2017-01-25 深圳天珑无线科技有限公司 系统资源分配方法和系统资源分配系统
CN106776004A (zh) * 2016-11-18 2017-05-31 努比亚技术有限公司 Cpu资源分配装置及方法
CN106844047B (zh) * 2017-01-11 2021-06-04 上海传英信息技术有限公司 一种智能终端的应用程序优化方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012068150A1 (fr) * 2010-11-15 2012-05-24 Qualcomm Incorporated Arbitrage d'acquisition de ressource pour des applications d'un dispositif de communication mobile équipé de plusieurs processeurs
CN103430151A (zh) * 2012-07-06 2013-12-04 华为终端有限公司 一种资源配置方法及装置
CN103984538A (zh) * 2014-03-27 2014-08-13 华为技术有限公司 应用场景的识别方法、功耗管理方法、装置及终端设备
CN106095592A (zh) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 一种前景应用程序场景同步方法及装置、系统
CN107479970A (zh) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 资源配置方法及相关产品
CN107621981A (zh) * 2017-09-06 2018-01-23 广东欧珀移动通信有限公司 资源配置方法及相关产品

Also Published As

Publication number Publication date
CN107621981A (zh) 2018-01-23

Similar Documents

Publication Publication Date Title
CN107577533B (zh) 资源配置方法及相关产品
CN107547746B (zh) 资源配置方法及相关产品
US11151010B2 (en) Resource configuration method, mobile terminal and storage medium
WO2019042171A1 (fr) Procédé d'attribution de ressources et produit associé
WO2019042180A1 (fr) Procédé d'attribution de ressources et produit associé
WO2019047709A1 (fr) Procédé de configuration de ressource et produit associé
US11698815B2 (en) Method for resource allocation and related products
CN107450988B (zh) 资源配置方法及相关产品
US11301300B2 (en) Method for resource allocation and terminal device
CN107479970B (zh) 资源配置方法及相关产品
WO2019047708A1 (fr) Procédé de configuration de ressource et produit associé
US10936371B2 (en) Method for resource allocation and related products
CN107547745B (zh) 资源配置方法及相关产品
WO2019228344A1 (fr) Procédé et appareil de reconfiguration de ressources, terminal et support de stockage
CN107797868B (zh) 资源调整方法及装置
CN107635078B (zh) 游戏控制方法及设备
US11016812B2 (en) Method for resource allocation and terminal device
CN107517306B (zh) 资源配置方法及相关产品
WO2019072208A1 (fr) Procédé et dispositif de commande d'exécution d'application
US11182210B2 (en) Method for resource allocation and terminal device
WO2019072180A1 (fr) Procédé et appareil d'attribution de ressources à une application
WO2019076213A1 (fr) Procédé et dispositif de commande de réseau
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: 18854140

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: 18854140

Country of ref document: EP

Kind code of ref document: A1