CN106559579B - Mobile terminal and CPU/GPU scheduling parameter updating method - Google Patents

Mobile terminal and CPU/GPU scheduling parameter updating method Download PDF

Info

Publication number
CN106559579B
CN106559579B CN201611092682.9A CN201611092682A CN106559579B CN 106559579 B CN106559579 B CN 106559579B CN 201611092682 A CN201611092682 A CN 201611092682A CN 106559579 B CN106559579 B CN 106559579B
Authority
CN
China
Prior art keywords
mobile terminal
scene
preset
cpu
gpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611092682.9A
Other languages
Chinese (zh)
Other versions
CN106559579A (en
Inventor
李鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qikekena (Nanjing) Technology Co., Ltd
Original Assignee
Qikekena Nanjing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qikekena Nanjing Technology Co Ltd filed Critical Qikekena Nanjing Technology Co Ltd
Priority to CN201611092682.9A priority Critical patent/CN106559579B/en
Publication of CN106559579A publication Critical patent/CN106559579A/en
Application granted granted Critical
Publication of CN106559579B publication Critical patent/CN106559579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile terminal and a CPU/GPU scheduling parameter updating method, wherein the mobile terminal comprises: the mobile terminal comprises a detection module, a scheduling module and a scheduling module, wherein the detection module is used for allocating memory resources according to default scheduling parameters for calling the specified scene when detecting that the mobile terminal enters the specified scene; the acquisition module is used for detecting whether the appointed scene is in an abnormal operation state or not, and if so, acquiring the preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal; the first updating module is used for updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter; and the allocation module is used for allocating memory resources according to the updated preset scheduling parameters for the specified scene to call. The invention effectively utilizes the memory resources in the mobile terminal, ensures the normal operation of different use scenes in the mobile terminal, and prevents the problems of poor operation conditions such as frame dropping, operation blocking or resource waste and the like of the display picture of the mobile terminal.

Description

Mobile terminal and CPU/GPU scheduling parameter updating method
Technical Field
The invention relates to the technical field of CPU/GPU scheduling parameter updating, in particular to a mobile terminal and a CPU/GPU scheduling parameter updating method.
Background
Nowadays, people use mobile terminals more and more frequently, and the requirements on the operation conditions of the mobile terminals are also more and more high. And the operation condition of the mobile terminal is mainly controlled and processed by a scheduling parameter set in a CPU and/or a GPU of the mobile terminal. The mobile terminal has default scheduling parameters, and can be guaranteed to keep a normal and stable operation state in a long-time operation process.
In the process of using the mobile terminal, a user often needs to enter some use scenes, while some use scenes need other scheduling parameters, and due to the fact that the default scheduling parameters are not suitable, the operating conditions of the use scenes and the mobile terminal are not coordinated. For example, when a user starts to run a large game, the game occupies a lot of resources, and needs other scheduling parameters of the CPU and/or the GPU for adaptation, and the scheduling parameters of the CPU and/or the GPU of the mobile terminal cannot be updated in real time, so that the actual scheduling parameters are not enough to support the normal running of the game, and the problems of frame dropping of a display screen, unsmooth running and other running conditions of the mobile terminal are caused.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal and a CPU/GPU scheduling parameter updating method, and aims to solve the technical problem that the mobile terminal is poor in operation condition due to the fact that the default scheduling parameters of the CPU and/or the GPU of the mobile terminal are not adaptive to different use scenes.
In order to achieve the above object, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises a detection module, a scheduling module and a scheduling module, wherein the detection module is used for allocating memory resources according to default scheduling parameters for calling the specified scene when detecting that the mobile terminal enters the specified scene;
the acquisition module is used for detecting whether the appointed scene is in an abnormal operation state or not, and if so, acquiring the preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal;
the first updating module is used for updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter;
and the allocation module is used for allocating memory resources according to the updated preset scheduling parameters for the specified scene to call.
Optionally, the obtaining module includes:
the first detection unit is used for detecting whether the specified scene is in an abnormal operation state or not;
the judging unit is used for detecting whether idle memory resources exist in the mobile terminal if the idle memory resources exist in the mobile terminal;
the mobile terminal comprises a distribution unit and a processing unit, wherein the distribution unit is used for distributing idle memory resources in the mobile terminal for calling a designated scene when the idle memory resources in the mobile terminal are detected;
the obtaining unit is used for obtaining the preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal when detecting that no idle memory resources exist in the mobile terminal.
Optionally, an idle process for calling a memory resource exists in the mobile terminal, and the obtaining unit includes:
the second detection unit is used for detecting whether idle processes occupy the memory resources or not when the mobile terminal is detected to have no idle memory resources;
the release unit is used for releasing the memory resource of the idle process if the idle process exists, and distributing the released memory resource to a specified scene for calling;
and the application unit is used for acquiring the preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal if the CPU and the GPU are not in the preset appointed scene.
Optionally, the mobile terminal further includes:
and the exit module is used for updating the preset scheduling parameters into default scheduling parameters and applying the default scheduling parameters when the mobile terminal is detected to exit the designated scene.
Optionally, the mobile terminal further includes:
and the second updating module is used for updating the preset scheduling parameters of the corresponding preset appointed scene when the updating data of the preset appointed scene is received.
In addition, in order to achieve the above object, the present invention further provides a CPU/GPU scheduling parameter updating method, which is applied to a mobile terminal, where the mobile terminal includes a CPU and a GPU, and the CPU and the GPU have respective default scheduling parameters, and the CPU/GPU scheduling parameter updating method includes:
when detecting that the mobile terminal enters an appointed scene, allocating memory resources according to default scheduling parameters for calling the appointed scene;
detecting whether the designated scene is in an abnormal operation state, if so, acquiring preset scheduling parameters of a CPU and a GPU of the corresponding preset designated scene in the mobile terminal;
updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter;
and allocating memory resources for calling the appointed scene according to the updated preset scheduling parameters.
Optionally, the step of detecting whether the designated scene is in an abnormal operating state comprises:
detecting whether the designated scene is in an abnormal operating state;
if yes, detecting whether idle memory resources exist in the mobile terminal;
when detecting that idle memory resources exist in a mobile terminal, allocating the idle memory resources in the mobile terminal for calling a specified scene;
when detecting that no idle memory resource exists in the mobile terminal, acquiring preset scheduling parameters of a CPU and a GPU of a corresponding preset appointed scene in the mobile terminal.
Optionally, an idle process for calling the memory resource exists in the mobile terminal, and the step of obtaining the preset scheduling parameters of the CPU and the GPU corresponding to the preset designated scene in the mobile terminal when detecting that there is no idle memory resource in the mobile terminal further includes:
when detecting that no idle memory resource exists in the mobile terminal, detecting whether the idle process occupies the memory resource or not;
if yes, releasing the memory resource of the idle process, and distributing the released memory resource to a specified scene for calling;
and if not, acquiring preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal.
Optionally, the step of allocating memory resources for calling a specified scene according to the updated preset scheduling parameter further includes:
and when the mobile terminal is detected to exit the designated scene, updating the preset scheduling parameters into default scheduling parameters and applying the default scheduling parameters.
Optionally, when it is detected that the mobile terminal enters the designated scene, allocating memory resources according to the default scheduling parameters for the designated scene before calling further includes:
and when receiving the updating data of the preset appointed scene, updating the preset scheduling parameters of the corresponding preset appointed scene.
In the technical scheme of the invention, firstly, when a detection module detects that a mobile terminal enters an appointed scene, memory resources are allocated according to default scheduling parameters for calling the appointed scene; then, an acquisition module detects whether the designated scene is in an abnormal operation state, and if so, preset scheduling parameters of a CPU and a GPU of the corresponding preset designated scene in the mobile terminal are acquired; then a first updating module updates the default scheduling parameter of the mobile terminal to the preset scheduling parameter; and finally, the distribution module distributes the memory resource according to the updated preset scheduling parameter for the specified scene to call. By the mode, the mobile terminal can update the scheduling parameters of the CPU and/or the GPU of the mobile terminal in different use scenes, the scheduling parameters in the actual operation process can be adapted to different use scenes, the memory resources in the mobile terminal can be effectively utilized in the specified use scenes, and a balance point between performance and power consumption is found in different use scenes, so that the normal operation of different use scenes in the mobile terminal is ensured, and the problems of poor operation conditions such as frame dropping, operation blocking or resource waste and the like of a display picture of the mobile terminal are prevented.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication device of the mobile terminal of FIG. 1;
fig. 3 is a schematic diagram illustrating an effect of normal operation of a specified scene in the first embodiment of the mobile terminal according to the present invention;
FIG. 4 is a diagram illustrating the effect of abnormal operation in a specific scenario in the first embodiment of the mobile terminal of the present invention
Fig. 5 is a schematic diagram illustrating an effect of updating a preset scheduling parameter in a fifth embodiment of the mobile terminal according to the present invention;
fig. 6 is a block diagram of a mobile terminal according to a first embodiment of the present invention;
FIG. 7 is a diagram illustrating a detailed module of an acquisition module in a second embodiment of the mobile terminal according to the present invention;
FIG. 8 is a diagram of a detailed unit of an obtaining unit in a third embodiment of the mobile terminal according to the present invention;
fig. 9 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 10 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
FIG. 11 is a flowchart illustrating a first embodiment of a CPU/GPU scheduling parameter updating method according to the present invention;
fig. 12 is a detailed flowchart of the step of detecting whether the designated scene is in an abnormal operating state in the second embodiment of the CPU/GPU scheduling parameter updating method of the present invention, and if so, acquiring the preset scheduling parameters of the CPU and the GPU corresponding to the preset designated scene in the mobile terminal;
fig. 13 is a detailed flowchart of the step of obtaining the preset scheduling parameters of the CPU and the GPU corresponding to the preset designated scene in the mobile terminal when detecting that there is no idle memory resource in the mobile terminal in the third embodiment of the CPU/GPU scheduling parameter updating method of the present invention;
FIG. 14 is a flowchart illustrating a fourth embodiment of a CPU/GPU scheduling parameter updating method according to the present invention;
FIG. 15 is a flowchart illustrating a fifth embodiment of a CPU/GPU scheduling parameter updating method according to the present invention.
The objects, features, and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, an acquisition module 10, a first application module 20, and the like. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication device or network.
The a/V input unit 120 is used to receive an audio or video signal.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or jerky movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100.
The output unit 150 may include a display unit 151 and the like. The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure value as well as a touch input position and a touch input area.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication means such as wired and wireless communication means and satellite-based communication means that transmit data via frames or packets.
A communication apparatus in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication devices may use different air interfaces and/or physical layers. For example, the air interface used by the communication device includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and universal mobile telecommunications device (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and so forth. The following description relates to a CDMA communication device, as a non-limiting example, but such teachings are equally applicable to other types of devices.
Referring to fig. 2, the CDMA wireless communication apparatus may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that an apparatus as shown in fig. 2 may include a plurality of BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a base transceiver sub-assembly (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the apparatus. In fig. 2, several global positioning device (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. As a typical operation of the wireless communication apparatus, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the hardware structure of the mobile terminal and the structure of the communication device, the mobile terminal is provided.
Referring to fig. 6, in a first embodiment of the mobile terminal, the mobile terminal includes a CPU and a GPU, and the CPU and the GPU have respective default scheduling parameters, and the mobile terminal includes:
the mobile terminal comprises a detection module 10, a scheduling module and a scheduling module, wherein the detection module is used for allocating memory resources according to default scheduling parameters for calling a specified scene when detecting that the mobile terminal enters the specified scene;
the mobile terminal can be a smart phone, an IPAD and other devices, and the mobile terminal is generally equipped with a CPU and a GPU. The CPU, i.e., the central processing unit, is an ultra-large scale integrated circuit in the electronic device including the mobile terminal, and is an important operation core and control core in the electronic device, and is mainly responsible for analyzing and processing functional instructions in the electronic device and processing received data to control normal operation of system functions of the electronic device. The GPU, i.e. a graphic processor, is a microprocessor which is specially used for image operation in electronic equipment including mobile terminals, and is mainly used for connecting a control main board and a display device in the electronic equipment, and performing responsible mathematical and geometric calculations to provide a graphic rendering function support for the display device when displaying a screen.
The CPU and the GPU have respective scheduling parameters, and the scheduling parameters refer to parameters which are set by default in the design and production process of the CPU and the GPU and can ensure normal operation of the CPU and the GPU. In this implementation, the scheduling parameters of the CPU and the GPU are the most important parameters in the mobile terminal that can affect the user experience of the function. For example, parameters such as the operating frequency and the number of cores on the line affect how fast the CPU analyzes functional instructions and processes data per unit time, and parameters such as the operating frequency and the graphics rendering mode of the GPU affect how fast the GPU processes graphics data per unit time and how accurately the graphics data is processed. The scheduling parameters of the mobile terminal and the base station comprehensively influence the overall performance of the mobile terminal in the operation process, and the final feedback to the use impression of the user is that: the instant response speed of the mobile terminal in the using process of the user, the display effect of the mobile terminal in the process of displaying various graphic data, and the like.
As long as the mobile terminal is in the running state, the respective default scheduling parameters of the CPU and the GPU take effect, so that the mobile terminal can run normally. When detecting that the mobile terminal enters the appointed scene, firstly allocating memory resources to the appointed scene for use according to the default scheduling parameters.
An obtaining module 20, configured to detect whether the designated scene is in an abnormal operating state, and if so, obtain preset scheduling parameters of a CPU and a GPU in a corresponding preset designated scene in the mobile terminal;
referring to fig. 3, when the mobile terminal operates with the memory resource allocated by the default scheduling parameter, it is detected whether the designated scene a can operate normally, for example, the operation is smooth, the response speed is normal, no jamming occurs, no frame drop occurs in the screen display, if the designated scene a can operate normally, no function is executed, otherwise, referring to fig. 4, if the designated scene B has the phenomena of jamming in operation, untimely response, delayed switching reaction, frame drop, even the mobile terminal crashes, and the like, it is proved that the default scheduling parameter is not suitable for the current designated scene, and the coordination between the default scheduling parameter and the current designated scene is inconsistent, and at this time, the preset scheduling parameters of the CPU and the GPU of the preset designated scene corresponding to the mobile terminal are obtained. The preset scheduling parameters have more parameter items, such as the running frequency of the CPU/GPU, the number of online cores or the instruction processing priority, and the like.
The designated scene is a predefined scene pattern, and can be divided into a plurality of cases, which will be described as follows:
1. a scene where a certain APP is located after the APP is started, such as loading or running of a large-scale game APP, data acquisition or data analysis of a software test type APP, and the like;
2. the mobile terminal is in a specific function mode, such as an energy saving mode or a performance mode, that is, a balance between performance and power consumption of the mobile terminal can be achieved while meeting the functional requirements of the user.
Of course, the above examples are only examples and reference descriptions, the technical solution of the present invention includes but is not limited to the above examples, and other specific scenarios different from the normal operation scenario state of the mobile terminal all belong to the scope of patent protection of the present invention.
The preset scheduling parameter refers to a scheduling parameter preset in a mobile terminal storage unit, the preset scheduling parameter is stored in the mobile terminal as data, and does not participate in data processing in the normal operation process of the mobile terminal under normal conditions, and the preset scheduling parameter can be called in the data processing process of the mobile terminal only when the preset scheduling parameter is activated.
To assist understanding of the present embodiment, a specific example is described below:
assuming that a preset appointed scene in the mobile terminal is a certain large-scale 3D game, when a user starts the large-scale 3D game on the mobile terminal through operation or autonomous processing of the mobile terminal, the mobile terminal
And detecting that a preset appointed scene corresponding to the large 3D game exists in the storage unit, and acquiring preset scheduling parameters of a CPU and a GPU corresponding to the preset appointed scene.
A first updating module 30, configured to update a default scheduling parameter of the mobile terminal to the preset scheduling parameter;
after the preset scheduling parameters are acquired, updating the default scheduling parameters, namely replacing the default scheduling parameters with the preset scheduling parameters, wherein the process occurs in the process of operating the specified scene.
And the allocating module 40 is configured to allocate memory resources for the designated scene to be called according to the updated preset scheduling parameter.
After the updating of the default scheduling parameters of the CPU and the GPU of the mobile terminal is completed, the mobile terminal executes the allocation of the scheduling parameters to the memory resources in real time according to the new scheduling data which takes the preset scheduling parameters as the reference data, at the moment, the memory resources are allocated according to the new scheduling parameters, so that the allocation amount of the memory resources in the appointed scene is changed, and the effective execution of the function maximization of the appointed scene can be guaranteed according to the allocated memory resources.
In the technical scheme of the invention, firstly, when a detection module 10 detects that a mobile terminal enters an appointed scene, memory resources are allocated according to default scheduling parameters for calling the appointed scene; then, the obtaining module 20 detects whether the designated scene is in an abnormal operation state, and if so, obtains preset scheduling parameters of a CPU and a GPU of a corresponding preset designated scene in the mobile terminal; then the first updating module 30 updates the default scheduling parameter of the mobile terminal to the preset scheduling parameter; and finally, the allocation module 40 allocates the memory resource according to the updated preset scheduling parameter for the designated scene to call. By the mode, the mobile terminal can update the scheduling parameters of the CPU and/or the GPU of the mobile terminal in different use scenes, the scheduling parameters in the actual operation process can be adapted to different use scenes, the memory resources in the mobile terminal can be effectively utilized in the specified use scenes, and a balance point between performance and power consumption is found in different use scenes, so that the normal operation of different use scenes in the mobile terminal is ensured, and the problems of poor operation conditions such as frame dropping, operation blocking or resource waste and the like of a display picture of the mobile terminal are prevented.
Further, on the basis of the first embodiment of the mobile terminal of the present invention, a second embodiment of the mobile terminal is proposed, and referring to fig. 7, the difference between the second embodiment and the first embodiment is that the obtaining module 20 includes:
a first detecting unit 21, configured to detect whether the designated scene is in an abnormal operating state;
when the mobile terminal enters the designated scene, whether the designated scene is in an abnormal operation state or not needs to be detected, if the mobile terminal can normally operate under the designated scene, the memory resources allocated by the current default scheduling parameters of the CPU and the GPU of the mobile terminal are enough to cope with the normal operation of the designated scene, and at the moment, no function execution is performed.
A determining unit 22, configured to detect whether there is an idle memory resource in the mobile terminal if yes;
if the mobile terminal is detected not to be capable of maintaining normal operation of the mobile terminal by using the memory resources allocated by the default scheduling parameters of the CPU and the GPU in the appointed scene, whether idle memory resources exist in the mobile terminal or not is detected. The idle memory resource refers to a memory resource which does not generate an execution function or does not generate an execution effect at present in the mobile terminal.
The allocation unit 23 is configured to, when it is detected that there is an idle memory resource in the mobile terminal, allocate the idle memory resource in the mobile terminal for invoking a specified scene;
when detecting that idle memory resources exist in the mobile terminal, allocating part or all of the idle memory resources to the designated scene incapable of normal operation for calling, so as to solve or relieve the technical problem that the current designated scene cannot normally operate. In this embodiment, the idle memory resources in the mobile terminal are called out and executed on the premise of the idle memory resources called by the current default scheduling parameters.
The obtaining unit 24 is configured to obtain preset scheduling parameters of the CPU and the GPU in the corresponding preset designated scene in the mobile terminal when it is detected that there is no idle memory resource in the mobile terminal.
When detecting that no idle memory resource exists in the mobile terminal, namely when the current mobile terminal is in full-load operation, acquiring preset scheduling parameters of a CPU and a GPU of a corresponding preset appointed scene in the mobile terminal. The preset scheduling parameters are stored in the storage unit of the mobile terminal in advance, so that the preset scheduling parameters are not required to be acquired through other modes such as network or calculation, and only need to be directly called in the storage unit.
Further, on the basis of the second embodiment of the mobile terminal of the present invention, a third embodiment of the mobile terminal is proposed, referring to fig. 8, where a difference between the third embodiment and the second embodiment is that an idle process for calling a memory resource exists in the mobile terminal, and the obtaining unit 24 includes:
a second detecting unit 241, configured to detect whether there is an idle process occupied by an idle process in a memory resource when it is detected that there is no idle memory resource in the mobile terminal;
a releasing unit 242, configured to release the memory resource of the idle process if the idle process exists, and allocate the released memory resource to a specified scene for calling;
and the application unit 243 is configured to, if not, acquire preset scheduling parameters of the CPU and the GPU in the corresponding preset designated scene in the mobile terminal.
In the process of acquiring the preset scheduling parameters of the CPU and the GPU in the corresponding preset designated scene in the mobile terminal, the mobile terminal is acquired on the premise that no idle memory resource is detected in the mobile terminal, and here, the mobile terminal may also perform reallocation of the memory resource, that is, when no idle memory resource is detected in the mobile terminal, it is detected whether an idle process occupies the entire memory resource of the mobile terminal. The idle process refers to a process which is running in the mobile terminal but has no function output execution or has function output execution currently, but has no influence on the current overall running function of the mobile terminal, namely, the process which is not stopped remains when the mobile terminal closes a certain function.
And if the memory resources occupied by the idle processes are detected, releasing the occupied memory resources, and allocating the released memory resources to the appointed scene for calling.
And if the mobile terminal does not detect the memory resource occupied by the idle process, acquiring preset scheduling parameters of the CPU and the GPU in a preset appointed scene corresponding to the appointed scene from a storage unit of the mobile terminal.
The mobile terminal does not necessarily have idle memory resources, and therefore, the mobile terminal can only be probed by a detection method. The embodiment can further optimize the utilization rate of the mobile terminal resources so as to ensure that the mobile terminal can maximally meet the operation requirements of the specified scene in the normal operation state.
Further, on the basis of the third embodiment of the mobile terminal of the present invention, a fourth embodiment of the mobile terminal is proposed, and referring to fig. 9, the difference between the fourth embodiment and the third embodiment is that the mobile terminal further includes:
and the exit module 50 is configured to update the preset scheduling parameter to the default scheduling parameter and apply the updated default scheduling parameter when it is detected that the mobile terminal exits the designated scene.
After entering the designated scene, the mobile terminal does not always remain in the designated scene, but changes along with the change of the use state of the mobile terminal or the operation of a user, so that when the mobile terminal is detected to exit the designated scene, the mobile terminal does not necessarily need the preset scheduling parameters of the CPU and the GPU to acquire the memory resources, and therefore the preset scheduling parameters are not necessarily adapted to the current running state of the mobile terminal, and the running state of the mobile terminal dominated by the preset scheduling parameters can be exited at this time. Therefore, the preset scheduling parameters are updated to the default scheduling parameters, and the memory resources required by the execution of various functions in the mobile terminal are redistributed according to the default scheduling parameters.
Further, on the basis of the fourth embodiment of the mobile terminal of the present invention, a fifth embodiment of the mobile terminal is proposed, and referring to fig. 10, the difference between the fifth embodiment and the fourth embodiment is that the mobile terminal further includes:
and a second updating module 60, configured to update the preset scheduling parameter of the corresponding preset designated scene when receiving the update data of the preset designated scene.
Referring to fig. 5, the setting of the preset designated scene and the preset scheduling parameter B1 in the mobile terminal is generally to optimize the scheduling parameter during the normal operation of the designated scene, and when the designated scene changes or is upgraded. For example, a scene is designated as a large 3D game, when the APP of the game is upgraded, the function scene of the APP is changed newly, and at this time, the original preset scheduling parameter B1 may not be suitable for the current 3D game scene, because the optimization scheme is not necessarily suitable for the calling of the memory resource in the current 3D game scene. However, once the preset scheduling parameter B2 of the new optimization scheme for the version 3D game scenario appears, the mobile terminal may update the preset scheduling parameter B1 of the corresponding new version 3D game scenario to B2 by receiving update data of the new version 3D game.
Or, when a new preset specific scenario is received, for example, the preset specific scenario in the mobile terminal only targets some APPs, and does not have the preset scheduling parameters for other APPs using scenarios. When a developer develops the preset scheduling parameter B3 of a new preset designated scene, the mobile terminal may update and store the new preset scheduling parameter B3 in the storage unit of the mobile terminal by receiving the update data of the preset designated scene, so as to expand the adaptation or optimization of the mobile terminal itself to more designated scenes.
The invention also provides a method for updating the scheduling parameters of the CPU/GPU, which is mainly applied to a mobile terminal, wherein in the first embodiment of the method for updating the scheduling parameters of the CPU/GPU, referring to the figure 11, the mobile terminal comprises the CPU and the GPU, and the CPU and the GPU have respective default scheduling parameters, and the method for updating the scheduling parameters of the CPU/GPU comprises the following steps:
step S10, when detecting that the mobile terminal enters the appointed scene, allocating memory resources according to the default scheduling parameters for the appointed scene;
the mobile terminal can be a smart phone, an IPAD and other devices, and the mobile terminal is generally equipped with a CPU and a GPU. The CPU, i.e., the central processing unit, is an ultra-large scale integrated circuit in the electronic device including the mobile terminal, and is an important operation core and control core in the electronic device, and is mainly responsible for analyzing and processing functional instructions in the electronic device and processing received data to control normal operation of system functions of the electronic device. The GPU, i.e. a graphic processor, is a microprocessor which is specially used for image operation in electronic equipment including mobile terminals, and is mainly used for connecting a control main board and a display device in the electronic equipment, and performing responsible mathematical and geometric calculations to provide a graphic rendering function support for the display device when displaying a screen.
The CPU and the GPU have respective scheduling parameters, and the scheduling parameters refer to parameters which are set by default in the design and production process of the CPU and the GPU and can ensure normal operation of the CPU and the GPU. In this implementation, the scheduling parameters of the CPU and the GPU are the most important parameters in the mobile terminal that can affect the user experience of the function. For example, parameters such as the operating frequency and the number of cores on the line affect how fast the CPU analyzes functional instructions and processes data per unit time, and parameters such as the operating frequency and the graphics rendering mode of the GPU affect how fast the GPU processes graphics data per unit time and how accurately the graphics data is processed. The scheduling parameters of the mobile terminal and the base station comprehensively influence the overall performance of the mobile terminal in the operation process, and the final feedback to the use impression of the user is that: the instant response speed of the mobile terminal in the using process of the user, the display effect of the mobile terminal in the process of displaying various graphic data, and the like.
As long as the mobile terminal is in the running state, the respective default scheduling parameters of the CPU and the GPU take effect, so that the mobile terminal can run normally. When detecting that the mobile terminal enters the appointed scene, firstly allocating memory resources to the appointed scene for use according to the default scheduling parameters.
Step S20, detecting whether the appointed scene is in an abnormal operation state, if so, acquiring the preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal;
referring to fig. 3, when the mobile terminal operates with the memory resource allocated by the default scheduling parameter, it is detected whether the designated scene a can operate normally, for example, the operation is smooth, the response speed is normal, no jamming occurs, no frame drop occurs in the screen display, if the designated scene a can operate normally, no function is executed, otherwise, referring to fig. 4, if the designated scene B has the phenomena of jamming in operation, untimely response, delayed switching reaction, frame drop, even the mobile terminal crashes, and the like, it is proved that the default scheduling parameter is not suitable for the current designated scene, and the coordination between the default scheduling parameter and the current designated scene is inconsistent, and at this time, the preset scheduling parameters of the CPU and the GPU of the preset designated scene corresponding to the mobile terminal are obtained. The preset scheduling parameters have more parameter items, such as the running frequency of the CPU/GPU, the number of online cores or the instruction processing priority, and the like.
The designated scene is a predefined scene pattern, and can be divided into a plurality of cases, which will be described as follows:
1. a scene where a certain APP is located after the APP is started, such as loading or running of a large-scale game APP, data acquisition or data analysis of a software test type APP, and the like;
2. the mobile terminal is in a specific function mode, such as an energy saving mode or a performance mode, that is, a balance between performance and power consumption of the mobile terminal can be achieved while meeting the functional requirements of the user.
Of course, the above examples are only examples and reference descriptions, the technical solution of the present invention includes but is not limited to the above examples, and other specific scenarios different from the normal operation scenario state of the mobile terminal all belong to the scope of patent protection of the present invention.
The preset scheduling parameter refers to a scheduling parameter preset in a mobile terminal storage unit, the preset scheduling parameter is stored in the mobile terminal as data, and does not participate in data processing in the normal operation process of the mobile terminal under normal conditions, and the preset scheduling parameter can be called in the data processing process of the mobile terminal only when the preset scheduling parameter is activated.
To assist understanding of the present embodiment, a specific example is described below:
assuming that a preset appointed scene in the mobile terminal is a certain large-scale 3D game, when a user starts the large-scale 3D game on the mobile terminal through operation or autonomous processing of the mobile terminal, the mobile terminal
And detecting that a preset appointed scene corresponding to the large 3D game exists in the storage unit, and acquiring preset scheduling parameters of a CPU and a GPU corresponding to the preset appointed scene.
Step S30, updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter;
after the preset scheduling parameters are acquired, updating the default scheduling parameters, namely replacing the default scheduling parameters with the preset scheduling parameters, wherein the process occurs in the process of operating the specified scene.
And step S40, allocating memory resources for the appointed scene to be called according to the updated preset scheduling parameters.
After the updating of the default scheduling parameters of the CPU and the GPU of the mobile terminal is completed, the mobile terminal executes the allocation of the scheduling parameters to the memory resources in real time according to the new scheduling data which takes the preset scheduling parameters as the reference data, at the moment, the memory resources are allocated according to the new scheduling parameters, so that the allocation amount of the memory resources in the appointed scene is changed, and the effective execution of the function maximization of the appointed scene can be guaranteed according to the allocated memory resources.
In the technical scheme of the invention, when the mobile terminal is detected to enter the appointed scene, the memory resource is allocated according to the default scheduling parameter for the appointed scene to be called; detecting whether the designated scene is in an abnormal operation state, if so, acquiring preset scheduling parameters of a CPU and a GPU of the corresponding preset designated scene in the mobile terminal; updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter; and allocating memory resources for calling the appointed scene according to the updated preset scheduling parameters. By the mode, the mobile terminal can update the scheduling parameters of the CPU and/or the GPU of the mobile terminal in different use scenes, the scheduling parameters in the actual operation process can be adapted to different use scenes, the memory resources in the mobile terminal can be effectively utilized in the specified use scenes, and a balance point between performance and power consumption is found in different use scenes, so that the normal operation of different use scenes in the mobile terminal is ensured, and the problems of poor operation conditions such as frame dropping, operation blocking or resource waste and the like of a display picture of the mobile terminal are prevented.
Further, on the basis of the first embodiment of the CPU/GPU scheduling parameter updating method of the present invention, a second embodiment of the CPU/GPU scheduling parameter updating method is proposed, and referring to fig. 12, the difference between the second embodiment and the first embodiment is that the step of detecting whether the designated scene is in an abnormal operating state includes:
step S21, detecting whether the designated scene is in an abnormal operating state;
when the mobile terminal enters the designated scene, whether the designated scene is in an abnormal operation state or not needs to be detected, if the mobile terminal can normally operate under the designated scene, the memory resources allocated by the current default scheduling parameters of the CPU and the GPU of the mobile terminal are enough to cope with the normal operation of the designated scene, and at the moment, no function execution is performed.
Step S22, if yes, detecting whether idle memory resources exist in the mobile terminal;
if the mobile terminal is detected not to be capable of maintaining normal operation of the mobile terminal by using the memory resources allocated by the default scheduling parameters of the CPU and the GPU in the appointed scene, whether idle memory resources exist in the mobile terminal or not is detected. The idle memory resource refers to a memory resource which does not generate an execution function or does not generate an execution effect at present in the mobile terminal.
Step S23, when detecting that there is idle memory resource in the mobile terminal, allocating the idle memory resource in the mobile terminal for calling in the appointed scene;
when detecting that idle memory resources exist in the mobile terminal, allocating part or all of the idle memory resources to the designated scene incapable of normal operation for calling, so as to solve or relieve the technical problem that the current designated scene cannot normally operate. In this embodiment, the idle memory resources in the mobile terminal are called out and executed on the premise of the idle memory resources called by the current default scheduling parameters.
Step S24, when it is detected that there is no idle memory resource in the mobile terminal, acquiring preset scheduling parameters of the CPU and the GPU in the corresponding preset designated scene in the mobile terminal.
When detecting that no idle memory resource exists in the mobile terminal, namely when the current mobile terminal is in full-load operation, acquiring preset scheduling parameters of a CPU and a GPU of a corresponding preset appointed scene in the mobile terminal. The preset scheduling parameters are stored in the storage unit of the mobile terminal in advance, so that the preset scheduling parameters are not required to be acquired through other modes such as network or calculation, and only need to be directly called in the storage unit.
Further, on the basis of the second embodiment of the CPU/GPU scheduling parameter updating method of the present invention, a third embodiment of the CPU/GPU scheduling parameter updating method is proposed, referring to fig. 13, the difference between the third embodiment and the second embodiment is that an idle process for calling a memory resource exists in the mobile terminal, and when it is detected that there is no idle memory resource in the mobile terminal, the step of obtaining the preset scheduling parameters of the CPU and the GPU of the corresponding preset designated scene in the mobile terminal includes:
step S241, when it is detected that there is no idle memory resource in the mobile terminal, detecting whether there is an idle process occupied in the memory resource;
step S242, if yes, releasing the memory resource of the idle process, and allocating the released memory resource to a designated scene for calling;
and step S243, if not, acquiring preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal.
In the process of acquiring the preset scheduling parameters of the CPU and the GPU in the corresponding preset designated scene in the mobile terminal, the mobile terminal is acquired on the premise that no idle memory resource is detected in the mobile terminal, and here, the mobile terminal may also perform reallocation of the memory resource, that is, when no idle memory resource is detected in the mobile terminal, it is detected whether an idle process occupies the entire memory resource of the mobile terminal. The idle process refers to a process which is running in the mobile terminal but has no function output execution or has function output execution currently, but has no influence on the current overall running function of the mobile terminal, namely, the process which is not stopped remains when the mobile terminal closes a certain function.
And if the memory resources occupied by the idle processes are detected, releasing the occupied memory resources, and allocating the released memory resources to the appointed scene for calling.
And if the mobile terminal does not detect the memory resource occupied by the idle process, acquiring preset scheduling parameters of the CPU and the GPU in a preset appointed scene corresponding to the appointed scene from a storage unit of the mobile terminal.
The mobile terminal does not necessarily have idle memory resources, and therefore, the mobile terminal can only be probed by a detection method. The embodiment can further optimize the utilization rate of the mobile terminal resources so as to ensure that the mobile terminal can maximally meet the operation requirements of the specified scene in the normal operation state.
Further, on the basis of the third embodiment of the CPU/GPU scheduling parameter updating method of the present invention, a fourth embodiment of the CPU/GPU scheduling parameter updating method is proposed, and referring to fig. 14, a difference between the fourth embodiment and the third embodiment is that the step of allocating memory resources for calling a designated scene according to updated preset scheduling parameters further includes:
and step S50, when the mobile terminal is detected to exit the designated scene, updating the preset scheduling parameter to the default scheduling parameter and applying the default scheduling parameter.
After entering the designated scene, the mobile terminal does not always remain in the designated scene, but changes along with the change of the use state of the mobile terminal or the operation of a user, so that when the mobile terminal is detected to exit the designated scene, the mobile terminal does not necessarily need the preset scheduling parameters of the CPU and the GPU to acquire the memory resources, and therefore the preset scheduling parameters are not necessarily adapted to the current running state of the mobile terminal, and the running state of the mobile terminal dominated by the preset scheduling parameters can be exited at this time. Therefore, the preset scheduling parameters are updated to the default scheduling parameters, and the memory resources required by the execution of various functions in the mobile terminal are redistributed according to the default scheduling parameters.
Further, on the basis of the fourth embodiment of the CPU/GPU scheduling parameter updating method of the present invention, a fifth embodiment of the CPU/GPU scheduling parameter updating method is proposed, and with reference to fig. 15, a difference between the fifth embodiment and the fourth embodiment is that, when it is detected that the mobile terminal enters a designated scene, allocating memory resources according to default scheduling parameters for the designated scene to be called before, further comprising:
in step S60, when the update data of the preset designated scene is received, the preset scheduling parameter of the corresponding preset designated scene is updated.
Referring to fig. 5, the setting of the preset designated scene and the preset scheduling parameter B1 in the mobile terminal is generally to optimize the scheduling parameter during the normal operation of the designated scene, and when the designated scene changes or is upgraded. For example, a scene is designated as a large 3D game, when the APP of the game is upgraded, the function scene of the APP is changed newly, and at this time, the original preset scheduling parameter B1 may not be suitable for the current 3D game scene, because the optimization scheme is not necessarily suitable for the calling of the memory resource in the current 3D game scene. However, once the preset scheduling parameter B2 of the new optimization scheme for the version 3D game scenario appears, the mobile terminal may update the preset scheduling parameter B1 of the corresponding new version 3D game scenario to B2 by receiving update data of the new version 3D game.
Or, when a new preset specific scenario is received, for example, the preset specific scenario in the mobile terminal only targets some APPs, and does not have the preset scheduling parameters for other APPs using scenarios. When a developer develops the preset scheduling parameter B3 of a new preset designated scene, the mobile terminal may update and store the new preset scheduling parameter B3 in the storage unit of the mobile terminal by receiving the update data of the preset designated scene, so as to expand the adaptation or optimization of the mobile terminal itself to more designated scenes.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A mobile terminal comprising a CPU and a GPU having respective default scheduling parameters, the mobile terminal comprising:
the mobile terminal comprises a detection module, a scheduling module and a processing module, wherein the detection module is used for allocating memory resources for calling the appointed scene according to default scheduling parameters when detecting that the mobile terminal enters the appointed scene, and the scheduling parameters refer to parameters which are set by default in the design and production process of the CPU and the GPU and can ensure the normal operation of the CPU and the GPU;
the first detection unit is used for detecting whether the specified scene is in an abnormal operation state or not;
the judging unit is used for detecting whether idle memory resources exist in the mobile terminal if the idle memory resources exist in the mobile terminal;
the mobile terminal comprises a distribution unit and a processing unit, wherein the distribution unit is used for distributing idle memory resources in the mobile terminal for calling a designated scene when the idle memory resources in the mobile terminal are detected;
the mobile terminal comprises an acquisition unit, a processing unit and a scheduling unit, wherein the acquisition unit is used for acquiring the preset scheduling parameters of a CPU and a GPU of a corresponding preset appointed scene in the mobile terminal when detecting that no idle memory resources exist in the mobile terminal;
the first updating module is used for updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter;
and the allocation module is used for allocating memory resources according to the updated preset scheduling parameters for the specified scene to call.
2. The mobile terminal according to claim 1, wherein there is an idle process for calling the memory resource in the mobile terminal, and the obtaining unit comprises:
the second detection unit is used for detecting whether idle processes occupy the memory resources or not when the mobile terminal is detected to have no idle memory resources;
the release unit is used for releasing the memory resource of the idle process if the idle process exists, and distributing the released memory resource to a specified scene for calling;
and the application unit is used for acquiring the preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal if the CPU and the GPU are not in the preset appointed scene.
3. The mobile terminal of claim 2, wherein the mobile terminal further comprises:
and the exit module is used for updating the preset scheduling parameters into default scheduling parameters and applying the default scheduling parameters when the mobile terminal is detected to exit the designated scene.
4. A mobile terminal according to any of claims 1 to 3, wherein the mobile terminal further comprises:
and the second updating module is used for updating the preset scheduling parameters of the corresponding preset appointed scene when the updating data of the preset appointed scene is received.
5. A CPU/GPU scheduling parameter updating method is applied to a mobile terminal and is characterized in that the mobile terminal comprises a CPU and a GPU, the CPU and the GPU have respective default scheduling parameters, and the CPU/GPU scheduling parameter updating method comprises the following steps:
when detecting that the mobile terminal enters an appointed scene, allocating memory resources for the appointed scene to call according to default scheduling parameters, wherein the scheduling parameters refer to parameters which are set by default in the design and production process of a CPU and a GPU and can guarantee normal operation of the CPU and the GPU;
detecting whether the designated scene is in an abnormal operating state;
if yes, detecting whether idle memory resources exist in the mobile terminal;
when detecting that idle memory resources exist in a mobile terminal, allocating the idle memory resources in the mobile terminal for calling a specified scene;
when detecting that no idle memory resource exists in the mobile terminal, acquiring preset scheduling parameters of a CPU and a GPU of a corresponding preset appointed scene in the mobile terminal;
updating the default scheduling parameter of the mobile terminal to the preset scheduling parameter;
and allocating memory resources for calling the appointed scene according to the updated preset scheduling parameters.
6. The CPU/GPU scheduling parameter updating method of claim 5, wherein an idle process for calling a memory resource exists in the mobile terminal, and the step of obtaining the preset scheduling parameters of the CPU and the GPU corresponding to the preset designated scene in the mobile terminal when detecting that there is no idle memory resource in the mobile terminal further comprises:
when detecting that no idle memory resource exists in the mobile terminal, detecting whether the idle process occupies the memory resource or not;
if yes, releasing the memory resource of the idle process, and distributing the released memory resource to a specified scene for calling;
and if not, acquiring preset scheduling parameters of the CPU and the GPU of the corresponding preset appointed scene in the mobile terminal.
7. The CPU/GPU scheduling parameter updating method of claim 6, wherein the step of allocating memory resources for the designated scene to be called according to the updated preset scheduling parameter further comprises:
and when the mobile terminal is detected to exit the designated scene, updating the preset scheduling parameters into default scheduling parameters and applying the default scheduling parameters.
8. The CPU/GPU scheduling parameter updating method of any of claims 5-7, wherein when it is detected that the mobile terminal enters a designated scene, before allocating memory resources for the designated scene to be called according to default scheduling parameters, further comprises:
and when receiving the updating data of the preset appointed scene, updating the preset scheduling parameters of the corresponding preset appointed scene.
CN201611092682.9A 2016-11-30 2016-11-30 Mobile terminal and CPU/GPU scheduling parameter updating method Active CN106559579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611092682.9A CN106559579B (en) 2016-11-30 2016-11-30 Mobile terminal and CPU/GPU scheduling parameter updating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611092682.9A CN106559579B (en) 2016-11-30 2016-11-30 Mobile terminal and CPU/GPU scheduling parameter updating method

Publications (2)

Publication Number Publication Date
CN106559579A CN106559579A (en) 2017-04-05
CN106559579B true CN106559579B (en) 2020-08-21

Family

ID=58445839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611092682.9A Active CN106559579B (en) 2016-11-30 2016-11-30 Mobile terminal and CPU/GPU scheduling parameter updating method

Country Status (1)

Country Link
CN (1) CN106559579B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547746B (en) * 2017-08-31 2020-09-04 Oppo广东移动通信有限公司 Resource allocation method and related product
CN107741880B (en) * 2017-10-26 2021-04-23 Oppo广东移动通信有限公司 Processor control method and related product
CN108345513A (en) * 2018-03-20 2018-07-31 北京小米移动软件有限公司 Terminal operating method and device
CN109885405B (en) * 2019-02-02 2021-11-12 珠海金山网络游戏科技有限公司 Dynamic allocation method and system, computing device and storage medium
CN110442389B (en) * 2019-08-07 2024-01-09 北京技德系统技术有限公司 Method for sharing GPU (graphics processing Unit) in multi-desktop environment
CN111190471B (en) * 2020-01-02 2022-04-22 联想(北京)有限公司 Control method, control device and electronic equipment
CN114820272A (en) * 2022-03-18 2022-07-29 维塔科技(北京)有限公司 Data interaction method and device, storage medium and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
CN106126320A (en) * 2016-06-21 2016-11-16 依偎科技(南昌)有限公司 Method, device and the terminal that a kind of terminal capabilities optimizes

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003150449A (en) * 2001-11-19 2003-05-23 Matsushita Electric Ind Co Ltd Cellular phone device
US10592306B2 (en) * 2014-10-03 2020-03-17 Tyco Safety Products Canada Ltd. Method and apparatus for resource balancing in an automation and alarm architecture
CN105512091B (en) * 2015-12-03 2019-03-12 青岛海信移动通信技术股份有限公司 A kind of memory allocation method and device
CN105893142A (en) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 Resource distribution method and device
CN106020990B (en) * 2016-06-30 2020-01-10 宇龙计算机通信科技(深圳)有限公司 Control method of central processing unit and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975301A (en) * 2016-04-29 2016-09-28 北京小米移动软件有限公司 Memory cleaning method and device, and electronic equipment
CN106020987A (en) * 2016-05-31 2016-10-12 广东欧珀移动通信有限公司 Method and device for determining kernel running configurations in processor
CN106126320A (en) * 2016-06-21 2016-11-16 依偎科技(南昌)有限公司 Method, device and the terminal that a kind of terminal capabilities optimizes

Also Published As

Publication number Publication date
CN106559579A (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN106559579B (en) Mobile terminal and CPU/GPU scheduling parameter updating method
CN106844033B (en) Application quick starting method and terminal
CN106844029B (en) Self-management Android process freezing and unfreezing device and method
CN105511928B (en) System upgrade device and method
CN106507173B (en) Mobile terminal and split-screen display control method
CN106304037B (en) Virtual SIM card management method and device
CN106097952B (en) Terminal display screen resolution adjusting method and terminal
CN106803860B (en) Storage processing method and device for terminal application
CN105740008B (en) Device and method for forbidding chained start of application program
WO2016155431A1 (en) Terminal, touch operation method therefor and device thereof, and storage medium
CN107066290B (en) Method and device for starting application according to associated policy
US9401117B2 (en) Mobile terminal and resolution compatibility method thereof
CN106528576B (en) Page search method, terminal, system and storage medium
CN107341013B (en) Boot fault processing method and device and computer readable storage medium
CN106372264B (en) Map data migration device and method
CN107018559B (en) Terminal and method for making component processor enter dormant state
CN106686672B (en) Network connection method and terminal
CN106445830A (en) Application program running environment detection method and mobile terminal
CN106371704B (en) Application shortcut layout method of screen locking interface and terminal
CN106502751B (en) Thermal deployment apparatus and method
CN105791541B (en) Screenshot method and mobile terminal
CN106161790B (en) Mobile terminal and control method thereof
CN105722246B (en) Network speed superposition device and method
CN106598844B (en) Mobile terminal and calculation method based on mobile terminal code defect rate
CN105227771B (en) Picture transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200717

Address after: 210036, 301 Hanzhoung Avenue, Gulou District, Jiangsu, Nanjing

Applicant after: Qikekena (Nanjing) Technology Co., Ltd

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant