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

Method and device for managing out-of-heap memory

A memory and memory page technology, applied in the computer field, can solve problems such as low allocation and use efficiency, lack of memory management unit, memory fragmentation, etc., to achieve the effect of optimizing memory use efficiency, improving transmission efficiency, and reducing applications

Pending Publication Date:
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Although the use of off-heap memory of the virtual machine (jvm) can effectively avoid the performance loss caused by garbage collection, it lacks a convenient and effective memory management unit to manage and track the use of memory, which can easily lead to low allocation and usage efficiency, memory fragmentation, etc. question

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
  • Method and device for managing out-of-heap memory
  • Method and device for managing out-of-heap memory
  • Method and device for managing out-of-heap memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0043] figure 1 is a schematic diagram of the off-heap memory allocation relationship in the embodiment of the present invention, as shown in figure 1 As shown, in one embodiment of the present invention, the memory relationship diagram mainly includes the relationship and meaning between the memory manager MemAllocator, the memory pool MemArena, the memory block MemChunk...

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 method and device for managing an out-of-heap memory, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: acquiring a memory size requested to be allocated from a memory allocation request; judging whether available memory pages exist in the allocated memory pages or not according to the size of the memory; if yes, obtaining an available memory page; otherwise, obtaining an available memory block, and obtaining an available memory page from the memory block; and allocating a memory segment for the memory allocation request from the memory page. According to the embodiment, a memory management structure is used for managing and controlling a memory segment which is applied by a user and is not managed by a virtual machine (jvm), the memory is managed in a pooling mode, memory fragmentation is effectively avoided, meanwhile, application and release operations of the memory are reduced, the allocation and recovery efficiency of the memory is greatly improved, the use efficiency of the memory is greatly optimized in a network transmission scene, and the transmission efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for managing out-of-heap memory. Background technique [0002] When creating objects or allocating memory on the virtual machine (jvm) platform, by default, operations are performed on the memory segment managed by the virtual machine (jvm). The reference situation automatically determines when it should be recycled. When the virtual machine platform performs garbage collection, it will copy the memory that is still in use to the new memory space managed by the virtual machine (jvm). Since garbage collection is a very frequent operation , Active memory will be continuously copied back and forth during the garbage collection (GC) process, resulting in performance loss. At the same time, the performance loss caused by continuous memory application and recovery cannot be ignored. Therefore, the virtual machine (jvm) platform It also provides an interface to al...

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): G06F9/50
CPCG06F9/5016G06F9/5022G06F2209/5011
Inventor 王泽举
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