Memory allocation method and device, and memory recovery method

A memory allocation and memory technology, applied in the direction of memory address/allocation/relocation, etc., can solve problems such as high memory fragmentation, low memory performance, and low system work efficiency, so as to improve work efficiency, improve utilization rate, and reduce memory Fragmentation effect

Inactive Publication Date: 2013-07-03
SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
View PDF7 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The problem solved by the present invention is that there are many memory fragments in the prior art, the system work efficiency is low, and the memory performance is not high

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, and memory recovery method
  • Memory allocation method and device, and memory recovery method
  • Memory allocation method and device, and memory recovery method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0036] In the following description, specific details are set forth in order to fully understand the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar popularizations without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.

[0037] figure 1 It is a flow chart of a memory allocation method provided by an embodiment of the present invention. The following combination figure 1 Detailed description.

[0038] Step S1, comparing the system allocation parameters with the required capacity in the obtained...

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 allocation method, a memory allocation device and a memory recovery method. The memory allocation method comprises the following steps: comparing a system allocation parameter with required capacity in an obtained memory allocation request; if the required capacity is less than or equal to the system allocation parameter, allocating a first type of memory, and setting a using state for the first type of memory which is allocated, wherein the capacity of the first type of memory is preset, and is matched with the required capacity in the memory allocation request; and if the required capacity is greater than the system allocation parameter, allocating a second type of memory with the required capacity, and setting a using state for the second type of memory which is allocated. According to the technical scheme, memory fragments are reduced, and the working efficiency of a system and the performance of the memory are improved.

Description

Technical field [0001] The invention relates to the technical field of memory allocation, in particular to a memory allocation method and device, and a memory recovery method. Background technique [0002] The memory is a channel connecting the CPU and other devices, playing the role of buffering and data exchange. When the CPU is working (for example, the CPU runs a program), it needs to read data from external storage such as hard disks, but because the hard disk "warehouse" is too large and it is also far from the CPU, the speed of transporting "raw material" data It is relatively slow, resulting in greatly reduced CPU production efficiency. In order to solve this problem, a "small warehouse"-memory was built between the CPU and external storage. [0003] The current memory allocation and recovery mechanism is usually: each time a program running by the CPU needs to use memory, it requests memory from the system (can be called a memory allocation request), and the system runs ...

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): G06F12/02
Inventor 王军
Owner SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING 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
Try Eureka
PatSnap group products