Unlock instant, AI-driven research and patent intelligence for your innovation.

Memory space clearing method and device

A memory space and cleaning method technology, applied in the field of memory space cleaning methods and devices, can solve problems such as large memory usage, achieve smooth operation, improve system performance, and avoid excessive memory usage

Inactive Publication Date: 2016-08-24
LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a memory space cleaning method and device to solve the problem of excessive memory usage in the current Android operating system

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 space clearing method and device
  • Memory space clearing method and device
  • Memory space clearing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] refer to figure 1 As shown, in the embodiment of the present invention, when the terminal starts for the first time, the process of cleaning up the memory space includes:

[0024] Step 100: From all the running processes in the operating system, obtain the size of the memory space occupied by the process that occupies the largest memory.

[0025] In the embodiment of the present invention, the terminal runs a specified command symbol to obtain all the running processes in the operating system and the size of the memory space occupied by each running process; and select the largest value. Wherein, the specified command symbol is ActivityManager.getProcessMemoryInfo.

[0026] Optionally, the terminal can receive a memory space clearing command sent by other devices or users, and when receiving the memory space clearing command, run a specified command symbol to obtain the process that occupies the largest memory from all the processes running in the operating system. T...

Embodiment 2

[0050] refer to figure 2 As shown, in the embodiment of the present invention, when the terminal is not started for the first time, the process of cleaning up the memory space includes:

[0051] Step 200: When the terminal is started, obtain the memory space occupied by the historical process that occupies the largest storage space among the historical processes stored in the terminal.

[0052] In the embodiment of the present invention, since the terminal needs to record the process that occupies the largest memory space during each startup process of the terminal, when the terminal starts this time, it directly reads from the local , the historical process occupying the largest memory space (hereinafter referred to as the largest historical process) is enough, and the storage space occupied by the largest historical process is acquired.

[0053] Further, after obtaining the size of the memory space occupied by the historical process that occupies the largest storage space ...

Embodiment 3

[0086] Based on the above technical solutions, see image 3 As shown, in the embodiment of the present invention, a memory space cleaning device is provided, which is applied in the Android system, and includes a process occupied memory space size acquisition unit 30, an available memory space size acquisition unit 31, and a process closing unit 32, wherein:

[0087] The size of the memory space occupied by the process is acquired by a unit 30, which is used to obtain the size of the memory space occupied by the process that occupies the largest memory from all the processes running in the operating system;

[0088] The available memory space size obtaining unit 31 is used to obtain the available memory space size at the current moment;

[0089] The process closing unit 32 is configured to close part or all of the currently running processes according to preset rules if the size of the memory space occupied by the process is larger than the size of the available memory space. ...

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

Embodiments of the invention provide a memory space clearing method and device. The method comprises the following steps: obtaining a progress which occupies the maximum memory in all the running progresses in an operation system and recording a memory space size occupied by the progress; comparing recorded the memory space size occupied by the progress with an available memory space size, and when the comparison result is that the memory space size occupied by the progress is greater than the available memory space size, stopping part of or all the progresses according to a preset rule. According to the method and device provided by the invention, a triggering condition for memory clearing is set and memory clearing is carried out when the triggering condition is satisfied, so that the problem of excessive memory occupation caused by not clearing the memory space for a long time is avoided, the running of application programs in terminal is more smooth and the system performance is improved; moreover, a memory space clearing threshold value is dynamically set, so that the currently running progresses are not jammed and then the user experience is effectively improved.

Description

technical field [0001] Embodiments of the present invention relate to the application field of communication equipment, and in particular, to a memory space cleaning method and device. Background technique [0002] In the terminal, when the application program is running, the memory dynamic space application statement in the application program will apply to the operating system for space for storing data. At this time, the operating system opens up a dynamic space from the memory and allocates it to the application program; After the application program finishes running, the operating system releases the dynamic space allocated for the application program so that other programs can continue to use the dynamic space in the memory while running. [0003] And in Android (Android) operating system, memory management strategy is when application program returns, and does not release the dynamic space that this application program applies for; At this moment, memory space will be...

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): G06F12/02
Inventor 曲仕辉
Owner LE SHI ZHI ZIN ELECTRONIC TECHNOLOGY (TIANJIN) LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More