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

A memory management method and system

A memory management and memory technology, applied in the Internet field, can solve problems such as insufficient memory

Active Publication Date: 2021-09-14
深圳市雅阅科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In order to solve the above problems, the present invention provides a memory management method and system to solve the problem of insufficient memory when the memory allocator requests memory from the 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
  • A memory management method and system
  • A memory management method and system
  • A memory management method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] According to an embodiment of the present invention, an embodiment of a memory management method is provided. It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although A logical order is shown in the flowcharts, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0068] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Take running on a computer terminal as an example, figure 2 It is a block diagram of the hardware structure of the computer terminal according to the memory management method of the embodiment of the present invention. Such as figure 2 As shown, the computer terminal 100 may include one or more (only one is shown in the figure) processors ...

Embodiment 2

[0098] Such as Figure 5 As shown, the present invention provides another memory management method, including:

[0099] Step S501 , applying to the operating system for memory of a specified size as reserved memory.

[0100] Step S502, setting a target coverage function.

[0101] Step S503, intercepting requests from memory allocators to the operating system to apply for memory through the target overlay function, and sending the intercepted requests to the operating system.

[0102] Step S504, monitor the response result of the operating system to the request through the target coverage function.

[0103] Step S505, judging whether the memory application to the operating system is successful according to the response result. If applying for memory from the operating system fails, execute step S506, and if successful, execute step S508.

[0104] Step S506, returning the reserved memory to the operating system.

[0105]Step S507, resending the request for memory applicatio...

Embodiment 3

[0153] Such as Figure 6 As shown, the present invention also provides a memory management system, comprising:

[0154] The reserved memory application module 601 is used to apply to the operating system for memory of a specified size as reserved memory;

[0155] A target coverage function setting module 602, configured to set a target coverage function;

[0156] The request interception module 603 is used to intercept each memory allocator's request for memory from the operating system through the target coverage function, and sends the intercepted request to the operating system; the response monitoring module is used to monitor the operating system's response to the operating system through the target coverage function. The response result of the request;

[0157] A judging module 604, configured to judge whether the memory application to the operating system is successful according to the response result;

[0158] A reserved memory returning module 605, configured to 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 invention discloses a memory management method and system, belonging to the technical field of the Internet. The method includes: applying to the operating system for a memory of a specified size as reserved memory; setting a target overlay function; intercepting each memory allocator's request for memory from the operating system through the target overlay function, and sending the intercepted request to the operating system; The overlay function monitors the response result of the operating system to the request; judges whether the application for memory to the operating system is successful according to the response result; if not, returns the reserved memory to the operating system; resends the request for memory application to the operating system through the target overlay function. The invention covers the process of each memory allocator applying for memory from the system, and introduces reserved memory to solve the problem that the memory allocator fails to apply for memory to the operating system and reports an OOM error, thereby reducing the error of insufficient memory to a large extent occurrence frequency.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a memory management method and system. Background technique [0002] Complex applications represented by browser applications are generally composed of multiple modules. These modules may adopt different memory management methods and use different memory allocators. coordinated. This can easily lead to fragmentation of the process virtual memory space and insufficient memory errors in the memory space, or OOM (OutOf Memory) errors. [0003] The process of processing memory application in the prior art is as follows: figure 1 Shown: [0004] Step 1: Each memory allocator receives the request of the program to apply for memory respectively; [0005] Step 2: Each memory allocator processes memory requests separately, and if the response fails, it sends a request to the operating system to apply for memory; [0006] In the third step, after the operating system receives 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/5016
Inventor 刘海鹏
Owner 深圳市雅阅科技有限公司
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