Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Memory recovery method and device, electronic equipment and storage medium

A memory recovery and storage medium technology, applied in the computer field, can solve problems such as stuck

Pending Publication Date: 2020-11-24
OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the related memory recovery method, after the memory page is recovered, the memory page needs to be reallocated, which may cause the process to be stuck due to the reallocation of the memory page

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 recovery method and device, electronic equipment and storage medium
  • Memory recovery method and device, electronic equipment and storage medium
  • Memory recovery method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0019] For the operating system, because the size of the memory itself is limited, memory recycling is a more common mechanism. There are two main reasons for memory reclamation: the system needs to provide enough memory for any sudden memory request at any time, so that the use of cache and other related memory will not cause the remaining memory of the system to remain in a very long period of time. less state. Also, when an application larger than free memory arrives, memory recycling w...

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 embodiment of the invention discloses a memory recovery method and device, electronic equipment and a storage medium. The method comprises the following steps: in response to a memory recovery instruction, obtaining an identifier of a to-be-recovered memory page, and the identifier is used for representing the type of the memory page; if it is detected that the to-be-recycled memory page is aforeground page based on the identifier, protecting the to-be-recycled memory page; and if it is detected that the to-be-recycled memory page is not the foreground page based on the identifier, recycling the to-be-recycled memory page. Through the method, when the memory page is recycled, whether the to-be-recycled memory page is the foreground page or not is judged firstly, and if the to-be-recycled memory page is the foreground page, the to-be-recycled memory page is protected, so that the number of times of recycling the memory page is reduced, and then jamming of a process due to reallocation of the memory page can be reduced.

Description

technical field [0001] The present application relates to the field of computer technology, and more specifically, to a memory recovery method, device, electronic equipment, and storage medium. Background technique [0002] Memory, also known as main memory, is a storage space that the CPU can directly address and is made of semiconductor devices. The memory space in the electronic device is limited. In order to ensure that the system has enough memory to use, the system of the electronic device usually performs memory recovery under certain circumstances. However, in the related memory recovery method, after the memory page is recovered, the memory page needs to be reallocated, which may cause the process to be stuck due to the reallocation of the memory page. Contents of the invention [0003] In view of the above problems, the present application proposes a memory reclamation method, device, electronic equipment and storage medium to improve the above problems. [000...

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/50G06F12/02
CPCG06F9/5016G06F12/0253
Inventor 李培锋
Owner OPPO CHONGQING INTELLIGENT TECH 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
Eureka Blog
Learn More
PatSnap group products