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

Object caching method based on disk

A disk cache and object technology, applied in the memory system, memory address/allocation/relocation, data processing input/output process, etc., can solve the problem of reducing disk read and write efficiency, inappropriate memory cache, and memory cache storage space limited issues

Active Publication Date: 2014-03-26
XIAMEN YAXON NETWORKS CO LTD
View PDF5 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the storage space of the memory cache is limited. Even a distributed memory cache can provide limited memory storage space. When a large number of large objects (such as pictures, audio, video, and other large objects, etc.) It is not suitable, and the disk-based cache can well meet the storage needs of large objects
In a disk-based cache implementation, if each object to be cached is directly stored on the disk as a separate file, if there are a large number of cached objects, a large number of problems will occur on the disk, which will greatly reduce the read and write of the disk. efficiency
Cache objects usually have a certain life cycle and will fail according to different strategies. At this time, disk files will be frequently added and deleted, resulting in a large number of disk fragments, thereby further reducing disk read and write efficiency.

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
  • Object caching method based on disk
  • Object caching method based on disk
  • Object caching method based on disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] The present invention will be further described in conjunction with the accompanying drawings and specific embodiments.

[0061] As a specific embodiment, the present invention adopts a file storage structure based on a secondary index, such as Figure 1 to Figure 3 As shown, a disk-based object caching method, including:

[0062] Divide the file storage space and construct the file storage structure of the secondary index. The file storage structure consists of a primary index file 1.idx, a secondary index file 2.idx, and one or more file blocks Ni.dat (i=1 ,2,3,...n,n are positive integers), each file block Ni.dat is divided into one or more data slots Si (i=1,2,3,...n,n are positive integers), The size of each data slot Si is 2 n KB, where n is a positive integer, and the size of the data slot Si ≤ the size of the file block Ni.dat, the first-level index file 1.idx is used to store the first-level index items, and a second-level index file 2.idx is used to...

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 relates to the technical field of disk caching, in particularly to an object caching method based on a disk. The object caching method includes the steps that file storage space is divided to construct a file storage structure of secondary indexes, and the processes of adding objects to a disk cache and acquiring and deleting cached objects from the disk cache, a cache failure mechanism and the cache optimization arrangement process are achieved according to the file storage structure of the secondary indexes. Data of the objects are stored through chunks with the fixed sizes, the multiple small objects are merged and stored in one chunk, large objects are divided into a plurality of object blocks, the object blocks are stored in the multiple chunks respectively, the objects of any size and any type can be cached, and caching efficiency is higher.

Description

technical field [0001] The invention relates to the technical field of disk cache, in particular to a disk-based object cache method. Background technique [0002] In the process of modern software development, the use of cache plays a key role in improving system performance. Under normal circumstances, memory cache is used the most, that is, cached objects are stored in memory for fast reading. However, the storage space of the memory cache is limited. Even a distributed memory cache can provide limited memory storage space. When a large number of large objects (such as pictures, audio, video, and other large objects, etc.) It seems inappropriate, and the disk-based cache can well meet the storage needs of large objects. In a disk-based cache implementation, if each object to be cached is directly stored on the disk as a separate file, if there are a large number of cached objects, a large number of problems will occur on the disk, which will greatly reduce the read and ...

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): G06F17/30G06F12/08G06F12/0877
CPCG06F3/0643G06F12/0802G06F16/172
Inventor 程行荣刘志芳吴超民孙震黄文淮
Owner XIAMEN YAXON NETWORKS CO LTD
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