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

Memory optimization method and device

An optimization method and technology of an optimization device, applied in the computer field, can solve the problems of prolonging the swap-out operation, affecting the running speed of the terminal, etc., and achieving the effect of reducing the operation delay

Active Publication Date: 2017-11-21
XIAOMI INC
View PDF4 Cites 0 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
  • Memory optimization method and device
  • Memory optimization method and device
  • Memory optimization method and device

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 present invention relates to a method and a device for optimizing memory. The method includes: when a newly created process needs to be added into a control group, detecting whether a total resource value occupied by all processes in the control group at the current moment reaches a resource critical value (101); if detecting that the total resource value occupied by all processes in the control group at the current moment reaches the resource critical value, adding the newly created process into a control group that is not restricted by a resource threshold (102); and performing a swap-out operation on resources occupied by an idle process in the control group, so that the total resource value occupied by all processes in the control group is less than the resource threshold (103). The present invention reduces the time delay of the operation while compressing the memory.

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 (ControlGroup, Cgroup), and limit the total resource value that the processes in the control group can occupy by setting the resource threshold; when the terminal needs When a newly created process is added 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 corresponding to the idle p...

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 Patents(China)
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