CPU resource allotting method and terminal

A CPU resource and allocation method technology, applied in the CPU resource allocation method and the terminal field, to achieve the balance between performance and power consumption, improve overall performance, and ensure the effect of performance and power consumption

Inactive Publication Date: 2017-09-15
NUBIA TECHNOLOGY CO LTD
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of the present invention is to propose a CPU resource allocation method and a terminal, aiming to solve the problem in the prior art that can not only ensure the smoothness of user experience, but also reasonably allocate CPU resources, and reduce the power consumption of the terminal without affecting the performance of the terminal. problem with the program

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • CPU resource allotting method and terminal
  • CPU resource allotting method and terminal
  • CPU resource allotting method and terminal

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] A terminal process generally has four states, running, waiting, sleeping, and terminating, and the processing object of this embodiment is a process in a non-terminating state of the terminal. see figure 2 , a terminal is shown in this embodiment, the terminal can refer to a CGROUPS mechanism in the LINUX kernel, and divide the processes in the terminal in the non-terminating state into at least two different levels of CPU setting nodes according to the importance of the process (CPUSET node), and then dynamically obtain the CPU information of the terminal internal line, and allocate online CPU resources for each node according to the importance of the CPUSET node. So that the terminal can automatically limit the resources that can be used by a single or multiple processes, so that important processes may be allocated more CPU resources, ensure the smoothness of the terminal through the allocation of CPU resources, and avoid new processes without affecting performance....

Embodiment 2

[0129] see Figure 5 , this embodiment shows a terminal, including a controller 51 and a memory 52 . The controller 51 is used to determine the process in the non-terminating state in the terminal, and according to the importance of each process in the non-terminating state to the interactive experience between the user and the terminal, the process is divided into different levels of preset CPU setting nodes; monitoring The state of each CPU core in the terminal obtains the information of the currently online CPU core; according to the level of each CPU setting node, allocates online CPU core resources for running processes to each CPU setting node. Wherein, information about different levels of CPU setting nodes and information about online CPU core resources allocated to running processes for each CPU setting node may be stored in the memory 52 .

[0130] Wherein, the terminal in this embodiment is generally a multi-core terminal, and the number of CPU cores of the termina...

Embodiment 3

[0157] see Figure 6 , this embodiment shows a method for allocating CPU resources, including:

[0158] S601. Determine the processes in the non-terminating state in the terminal, and divide the processes into preset CPU setting nodes of different levels according to the importance of each process in the non-terminating state to the interactive experience between the user and the terminal;

[0159] S602. Monitor the status of each CPU core in the terminal, and obtain information about the currently online CPU core;

[0160] S603. According to the level of each CPU setting node, allocate online CPU core resources for running processes to each CPU setting node.

[0161] Wherein, the terminal in this embodiment is generally a multi-core terminal, and the number of CPU cores of the terminal is not limited, and may be eight cores or other numbers of cores. The terminal may be a mobile terminal such as a mobile phone, a tablet, or a notebook computer, or may be a fixed terminal su...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a CPU resource allotting method and a terminal, which can determine a process in non-stop state. The method comprises the following steps: according to importanceof the interaction experience of processes among a user and a terminal, the process can be divided into pre-set CPU setting nodes at different levels; states of all CPU cores in the terminal can be monitored and information of the one-line CPU cores can be acquired; and on-line CPU core resources operating the process are distributed to all the CPU setting nodes according to the rank of priorities of all the CPU setting nodes. The CPU resource allotting method and the terminal have the following beneficial effects: according to on-line conditions of all the CPU cores and importance of the process in the non-stop state, CPU core resources operating the process are dynamically distributed so that operation of the important process is ensured, thereby improving overall performance of ANDROID and ensuring smooth experience of a user; furthermore, power consumption of the terminal is reduced to strike a balance between performance and power consumption; when the terminal is used, secondary fine adjustments are made to process classification and a distribution strategy of CPU core resources, which further ensures balance between performance and power consumption of the terminal.

Description

technical field [0001] The present invention relates to the technical field of terminals, in particular to a method for allocating CPU resources and a terminal. Background technique [0002] At present, with the development of the Internet and the development of terminal technology, people rely more and more on terminals, especially mobile terminals, to complete various things such as basic necessities of life, food, housing and transportation. Various functions and various types of applications have emerged to provide services for users. Subsequently, more and more applications are loaded on the user terminal, so the number of programs and processes that need to be run simultaneously on the mobile terminal is also increasing. [0003] In order for the terminal to run smoothly and bring users a good experience, the CPU cores on the terminal have changed from two cores to four cores to eight cores in just a few years. Although today's terminal manufacturers try their best t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5027G06F9/505Y02D10/00
Inventor 吕伟
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products