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

Electronic device and memory recovery method and medium thereof

A technology of memory recycling and electronic equipment, applied in the field of computer systems, can solve problems such as high overhead and redundant memory recycling

Active Publication Date: 2022-07-19
HONOR DEVICE CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, every time the operating system performs memory recovery, the operating system will execute all the memory recovery units in the entire control list, causing the operating system to perform memory recovery to generate redundant memory recovery and make the CPU overhead of the electronic device too high; in addition , if the operating system of the electronic device is running many applications, the excessively reclaimed memory will be immediately allocated to the application by the operating system, resulting in unnecessary memory recovery

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
  • Electronic device and memory recovery method and medium thereof
  • Electronic device and memory recovery method and medium thereof
  • Electronic device and memory recovery method and medium thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] Embodiments of the present application include, but are not limited to, an electronic device and a memory recovery method, medium, and medium thereof. In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0039] The key terms involved in this application are first described below.

[0040] (1) Memory recovery

[0041] Taking the Linux system as an example, the kernel of the operating system needs to provide enough memory for memory requests that come at any time. figure 1 , figure 1 Shown is a schematic flow chart of memory reclamation performed by a Linux system. It can be seen that the overall process of memory recycling includes: file page recycling, anonymous page recycling and slab recycling. Among them, the file page can be a memory page used to cache data in the process of file re...

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 application relates to the field of computer systems, and in particular to an electronic device and a memory recycling method and medium thereof. The memory recycling method includes: receiving a first-type memory recycling instruction; determining a first memory to be recycled instructed by the first-type memory recycling instruction ; According to the first memory, from the M memory reclaiming subroutines with the preset execution order, select the memory reclaiming subroutines whose execution order is the 1st to the Nth, and N is less than M, and M and N are positive integers; According to the preset execution order, the 1st to Nth memory recovery subroutines are executed in the execution order, and the second memory is recovered, wherein the second memory is greater than or equal to the first memory. The method of the embodiment of the present application can adjust the number of memory reclamation subprograms to be executed according to the memory size that needs to be reclaimed for the direct memory operation to be executed, and reduce the number of executed memory reclamation subprograms while satisfying the memory size to be reclaimed. , reducing the overhead of memory recycling on electronic devices.

Description

technical field [0001] This application relates to the field of computer systems. In particular, it relates to an electronic device and a memory recovery method and medium thereof. Background technique [0002] The operating system of the existing electronic device (such as the Linux system) can manage the memory of the electronic device through the slab (memory management unit), and save the memory recovery unit corresponding to the memory management unit in the control list (such as: the memory management unit in the Linux system). shrinker). When the operating system needs to perform a memory reclamation operation, the operating system will execute the memory reclamation units sequentially from the starting position of the control linked list according to the arrangement order of the memory reclamation units in the control linked list to reclaim the corresponding memory management units. [0003] However, every time the operating system performs memory reclamation, the ...

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/50
CPCG06F9/5022
Inventor 杨需哲伊鹏翔李志卫王红照
Owner HONOR DEVICE CO LTD