Memory allocation method and device, electronic device and readable storage medium

An electronic device and a memory allocation technology, which is applied in the directions of memory architecture access/allocation, memory address/allocation/relocation, memory system, etc., can solve the problems of extra power consumption and affect the normal operation of users, and reduce the chance of fragmentation Effect

Inactive Publication Date: 2017-09-26
ONEPLUS TECH SHENZHEN
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the above method has obtained a large-capacity memory block, it will affect the

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0034] It should be noted that like numerals and let...

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 provides a memory allocation method and device, an electronic device and a readable storage medium. A memory of the electronic device comprises a first memory area and a second memory area. The method comprises the steps of receiving a memory allocation request which comprises memory capacity needing to be allocated; comparing the memory capacity needing to be allocated with a capacity range of a preset memory block, and obtaining a comparison result; and allocating memory blocks of a corresponding capacity from a first memory area to a second memory area according to the comparison result. According to the method, by allocating the memory blocks in different memory areas, the memory blocks with different sizes are separated to be managed, memory fragmentization caused by mixed use of the memory blocks with different sizes is avoided, and thus the fragmentization occurrence probability is reduced.

Description

technical field [0001] The present invention relates to the technical field of computer storage, in particular to a memory allocation method, device, electronic equipment and a readable storage medium. Background technique [0002] At present, when receiving a memory allocation request, the electronic device directly selects a suitable area from the available memory blocks of the entire memory, without distinguishing the size of the required memory capacity. As a result, memory blocks of small capacity are continuously distributed throughout memory. After the system has been running for a period of time, the allocation and release of memory blocks continues in the system. The free physical memory of the system is divided by the used memory blocks. The large continuous physical memory blocks are 0, and the free memory blocks can only satisfy small-capacity memory blocks. distribute. That is to say, the system may still have many free memory blocks, but it cannot meet the la...

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): G06F12/02
CPCG06F12/023Y02D10/00G06F2212/1044
Inventor 林庚佑张文彦
Owner ONEPLUS TECH SHENZHEN
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
Try Eureka
PatSnap group products