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

Method and device for caching data in disk

A data cache and disk technology, which is used in electrical digital data processing, memory systems, instruments, etc., can solve the problems of waste of disk space, less effective file data, and space that cannot be recycled again.

Inactive Publication Date: 2017-05-31
NETPOSA TECH
View PDF10 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But this method has a serious defect that it cannot support random erasing. For example, once a space is occupied by a file, the space cannot be recycled after the file is deleted, resulting in a large waste of disk space and limited resident The effective file data cached in the space is less
[0004] The inventor found in the research that none of the methods for disk caching files in the prior art is ideal. Aiming at the defects of the above two disk caching files, a better solution has not yet been proposed

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
  • Method and device for caching data in disk
  • Method and device for caching data in disk
  • Method and device for caching data in disk

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0069] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. 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...

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 method and device for caching data in a disk, and relates to the technical field of data storage. The method includes the steps that a memory mapping file used for mapping a storage file of the disk is created, and the memory mapping file corresponds to a free memory area of a virtual address space; the memory mapping file is segmented into multiple free storage blocks in advance; according to the size of a pre-stored cache file, the first number of the free storage blocks, used for storing the cache file, in the memory mapping file is calculated; the first number of free storage blocks are extracted from the memory mapping file and set as to-be-used storage blocks; the cache file is stored through the to-be-used storage blocks to obtain a storage file. By means of the method and device, a cache space with multiple free storage blocks can be repeatedly written and recycled, the utilization rate of the cache space is increased, cache space utilization maximization is achieved, the hit rate of cache file access is increased, and meanwhile the writing and reading speed of the cache file is increased.

Description

technical field [0001] The present invention relates to the technical field of data storage, in particular to a method and device for caching data inside a disk. Background technique [0002] Generally, the file server or image server will have a proxy service reading function, that is, the function of reading files from other servers through the proxy function, such as reading from servers such as ftp and http. Considering the slow speed of reading from these servers, common situations such as network instability and heavy server load pressure may lead to low reading performance. In order to improve this problem, the server usually adopts the practice of disk caching files. The conventional approach is to directly create a copy of the file on the disk and create an index file to record the total amount of files and the access relationship. The file copy created in this way is 1:1. When the total amount of the cache is large (such as: 8G) and the file is relatively small (...

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/0873
CPCG06F12/0873
Inventor 张向阳师少飞
Owner NETPOSA 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