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

Log mode based memory space management method and device

A technology of storage space and management method, which is applied in the field of storage space management based on the log method, which can solve the problems of the system being overwhelmed and achieve the effect of low memory capacity requirements

Active Publication Date: 2015-01-14
ZHEJIANG UNIVIEW TECH
View PDF6 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, there will still be the following problems: the bitmap needs to be updated no matter whether it is applying for or releasing block resources
What's more, if the update of the bitmap involves many small bitmaps, that is, the update of the bitmap has great randomness, the system will be overwhelmed

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
  • Log mode based memory space management method and device
  • Log mode based memory space management method and device
  • Log mode based memory space management method and device

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0039] Example 1: There is already a node representing free space in the red-black tree: the offset value is 32, and the size value is 16K; assuming that every 4K, the offset value increases by 1. Currently, it is necessary to merge release logs with an offset value of 36 and a size of 4K. According to the above offset and size values, it is judged that the current log can be merged with this node, and the offset value corresponding to the merged new node is 32, and the size value is 20. Therefore, insert the new node into the red-black tree according to its index value of 32, and delete the node with the original offset value of 32 and the size value of 16K from the red-black tree. And generate a merge log in SMR, the content of the merge log is: release operation, offset value is 32, size value is 20.

[0040] Example 2. There is already a node representing free space in the red-black tree: the offset value is 32, and the size value is 16K; assuming that every 4K, the offse...

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 log mode based memory space management method and device. The method applied to memory equipment includes: when applying for memory space or releasing the memory space, recording the corresponding application or release log in a second map region (SMR) of preset size, wherein the application or release log is used for recording an initial position and size information of the applied or released memory space; according to certain strategy, sequentially executing memory space combination on the application or release log and a previous combined log, and recording the combined log generated at the time in the SMR, wherein the combined log records the initial position and size of spare memory space. By the method and device, the problem that equipment performance is reduced due to release of plenty of random memory space during existing memory space management is solved, and the requirement on memory capacity of the memory equipment is low.

Description

technical field [0001] The present invention relates to the technical field of storage, and in particular to a storage space management method and device based on a log mode. Background technique [0002] Whether it is an application based on a file system or other block devices, there are two basic requirements: 1. On which blocks of the block device the record data is stored; 2. Which blocks of the block device are idle. [0003] In principle, it is not necessary to record which blocks of the block device are free, but only record which blocks the data is stored on. Because there are only two states of a block: the use state or the idle state. Therefore, which blocks are free can be deduced from the used blocks. However, this again means that all used blocks need to be traversed. In order to make the application for free blocks more efficient, most block devices will record which blocks are free. [0004] At present, there are two main ways to record whether the block ...

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): G06F11/34G06F12/02
Inventor 蔡和
Owner ZHEJIANG UNIVIEW TECH
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