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

A disk cache method and system

A disk cache and disk technology, which is applied in the fields of instrumentation, computing, electrical and digital data processing, etc., can solve the problems of few available storage locations and inability to store data, etc., and achieve the effect of high cache capacity.

Active Publication Date: 2022-03-22
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, network data will be placed in a data file. Since a data file can only be placed on one disk, when the configuration of the data file uses a large space, for example, the data file is a 4G file, and the disk’s There are few storage locations available. For example, when there is only 2G, the data file can only store 2G data, and cannot continue to store data on another disk with 2G free space

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
  • A disk cache method and system
  • A disk cache method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054]The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0055] The embodiment of the present invention discloses a disk caching method and system. N data blocks are obtained through the network. The data blocks are network data, and the sizes of the N data blocks are the same, and N is a positive integer. After the data blocks are verified correctly, Select a block number whose storage location is free from the block numbers previously determined by uniformly numbering the storage locations of the data blocks in mult...

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 disk caching method and system, in which N data blocks are obtained through the network, and the data blocks are verified, and the block number determined by uniformly numbering the storage positions of the block data in multiple data files , select a block number whose storage location is free, search the corresponding data file from the database based on the block number, and determine the file offset position where the block data data block is written into the found data file, and write the block The block information of the data block is saved to the database. The present invention can place network data in multiple data files, and the storage method of multiple data files can support multiple disks. By distributing different data files for storing network data into different disks, the available space of multiple disks is all When the value is small, a higher cache size can still be achieved, so the cache size can be dynamically adaptive according to the available space of the disk.

Description

technical field [0001] The present invention relates to the technical field of data storage, and more specifically, to a disk cache method and system. Background technique [0002] P2P (Peer to Peer) network, that is, a peer-to-peer network, is a distributed application architecture that distributes tasks and workloads among peers (Peer), and is a network formed by a peer-to-peer computing model at the application layer or web form. At present, after the data blocks obtained from the P2P network are downloaded locally, they will be stored in the disk cache. When providing the data upload service, the data to be uploaded is found from the disk cache, read and sent to the P2P network. [0003] In the prior art, network data will be placed in a data file. Since a data file can only be placed on one disk, when the configuration of the data file uses a large space, for example, the data file is a 4G file, and the disk’s There are few storage locations available. For example, w...

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 Patents(China)
IPC IPC(8): G06F16/172G06F16/182
CPCG06F16/172G06F16/1834
Inventor 田江明
Owner BEIJING QIYI CENTURY SCI & TECH 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