Memory recovery method and device

A memory recovery and device technology, applied in the storage field, can solve problems such as poor utilization of memory and balanced allocation of memory

Active Publication Date: 2019-07-02
HUAWEI TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the next memory allocation, the NAS device will not allocate these discrete memory spaces to a certain metadata as a cache,

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings in the embodiments of the present invention.

[0036] A NAS device is a data storage device connected to a network medium. refer to figure 1 , Since NAS devices are all assigned IP addresses, NAS clients can access the NAS devices through the data gateway server. Even in some cases, NAS clients can directly access NAS devices without any intermediate media server.

[0037]In order to improve performance, NAS devices often use memory space to build a large number of caches, and allocate cache space for metadata to store data to improve the speed of reading data. refer to figure 2 , generate an allocator (slab) for each kind of metadata, and the allocator allocates cache space for the corresponding metadata. Specifically, the partner system allocates a part of the memory space to multiple allocators, and each allocator allo...

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 embodiment of the invention provides a memory recovery method and device, relates to the field of storage, and can ensure that recovered memories are continuous, so that the memories are continuously and uniformly distributed among different metadata, and the utilization rate of the memories is improved. The method comprises the steps that when memory space is distributed to first type of metadata, the memory space is insufficient, and the size of the memory space needed by the first type of metadata is determined; according to the size of the memory space required by the first type of metadata, one or more structures in the memory are recovered, each structure is a minimum recovery unit, each structure in the one or more structures has the same identification, and before recovery, theone or more structures are all memory spaces allocated to the second type of metadata.

Description

technical field [0001] Embodiments of the present invention relate to the field of storage, and in particular, to a memory recycling method and device. Background technique [0002] With the development of hardware, the storage space required by the storage system is getting larger and larger. In order to obtain the ultimate performance, the memory is often converted into a cache, so that the data can be quickly read from the cache. For a network attached storage (NAS) system, due to the diversity of semantics, there will be many metadata such as inode (inode), dentry (directory entry), leaf block, indirect block, bitmap, etc. that need to be cached. In addition, since different types of metadata have different cache requirements, memory needs to be shared among different metadata caches. For example, in the scenario of a small number of large files, indirect blocks and leaf blocks occupy a lot of cache, and the inode metadata needs less cache; however, in the scenario of m...

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/0246G06F12/0253G06F12/0866
Inventor 叶茂休普瑞汀得卡
Owner HUAWEI TECH 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