Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for optimizing internal memory

An optimization method and an optimization device technology, which are applied in the computer field, can solve the problems of prolonging the switching operation time and affecting the operating speed of the terminal, and achieving the effect of reducing the operation delay

Active Publication Date: 2015-03-11
XIAOMI INC
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that when a terminal adds a newly created process to the control group while performing a swap out operation, the time delay of the swap out operation is long and affects the running speed of the terminal, the present disclosure provides a memory optimization method and device

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
  • Method and device for optimizing internal memory
  • Method and device for optimizing internal memory
  • Method and device for optimizing internal memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0067] figure 1 It is a flowchart of a memory optimization method according to an exemplary embodiment, and the memory optimization method is applied to a terminal, such as figure 1 As shown, the memory optimization method includes the following steps.

[0068] In step 101, when it is necessary to add a newly created process in the control group, it is detected whether the total reso...

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 relates to a method and a device for optimizing an internal memory and belongs to the technical field of computers. The method comprises the following steps of when a newly-built process needs to be added into a control group, detecting whether a total value of resources occupied by all processes in the control group at current moment reaches a resource critical value; if the total value of the resources occupied by all the processes in the control group at the current moment reaches the resource critical value, adding the newly-built process into the control group which is not limited by a resource threshold value; swapping out the resources occupied by idle processes in the control group, so that the total value of the resources occupied by all the processes in the control group is smaller than the resource threshold value. According to the method and the device, the problem of influence on the running speed of a terminal caused by longer delay of the executed swapping-out operation when the terminal adds the newly-built process to the control group while executing the swapping-out operation is solved, and the effect of reducing the operation delay during the compression of the internal memory is achieved.

Description

technical field [0001] The present disclosure relates to the technical field of computers, in particular to a memory optimization method and device. Background technique [0002] As the number of applications running on the terminal increases, the available memory of the terminal decreases, which affects the smoothness of the running applications. Therefore, it is necessary to optimize the memory of the terminal. [0003] When performing memory optimization, the terminal can divide the created multiple processes into a control group (Control Group, Cgroup), and limit the total resource value that the processes in the control group can occupy by setting the resource threshold; when the terminal When it is necessary to add a newly created process to the control group and it is detected that the total resource value of the control group exceeds the resource threshold after joining, a swap operation is performed, that is, the terminal replaces the idle process that has not been ...

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
IPC IPC(8): G06F9/50G06F9/46
CPCG06F9/5016
Inventor 邱峰张建春黄其武
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products