Caching processing method and device

A cache processing and caching technology, applied in the field of network storage, can solve the problem of wasting cache space and so on

Active Publication Date: 2014-06-04
SANECHIPS TECH CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In addition, using this method also wastes shared cache space. For example, some data is only slightly larger than an integer number of "slices", which requires a separate "slice" for storage

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
  • Caching processing method and device
  • Caching processing method and device
  • Caching processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] Such as figure 1 As shown, a cache processing method includes the following steps:

[0047] Step 1, when the first data of the first user needs to be cached, read the current storage start address;

[0048] Step 2, storing the first data into a cache space starting from the current storage start address, wherein the cache space occupied by the first data is the first cache space;

[0049] Step 3, corresponding to the first data in the first user, save a storage location information including the start address and space length of the first cache space, so that when the first data needs to be read, the Locating the first cache space according to the start address and the space length, and reading the first data from the first cache space;

[0050]Step 4, updating the current storage start address to the next address of the first cache space, so that the next data that needs to be cached can be cached from the storage start address, so that each cached data All can cont...

Embodiment 2

[0080] A cache processing device, comprising:

[0081] The module for reading the storage start address is used to read the current storage start address when the first data of the first user needs to be cached; the cache module is used to store the first data from the current storage start address to a cache space, wherein the cache space occupied by the first data is the first cache space;

[0082] The stored data management module is configured to store storage location information including the start address and space length of the first cache space corresponding to the first data in the first user, so that when the first cache space needs to be read data, the first cache space can be located according to the start address and space length, and the first data can be read from the first cache space; in addition, the storage data management module can also record the first The idle state of the data, and according to the idle state, it is judged whether the first data is re...

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 caching processing method and device. The caching processing method comprises the steps that when first data of a first user need to be cached, the current storage starting address is read; the first data are stored into a caching space from the current storage starting address, and the caching space occupied by the first data is the first caching space; corresponding to the first data of the first user, storage position information comprising the starting address of the first caching space and the space length is stored, as a result, when the first data need to be read, the first caching space can be positioned and the first data can be read from the first caching space according to the starting address and the space length; the current storage starting address becomes the next address of the first caching space through updating so that next data needing to be cached can be cached from the storage starting address, and therefore all cached data can continuously occupy the caching space. By the adoption of the caching processing method and device, the caching space can be better utilized, and address information stored for reading is reduced.

Description

technical field [0001] The invention relates to the field of network storage, in particular to a cache processing method and device. Background technique [0002] SoC (System on Chip, system-level chip) technology integrates various subsystems such as CPU / MPU (Micro Process Unit microprocessor), DSP (Digital Signal Processor, digital information number processing), hardware accelerator, storage, peripheral interface, etc., through The bus interconnection is integrated on a single chip. In addition to the local dedicated storage / cache required for internal data processing, these subsystems often need to share centralized storage / cache for various reasons, such as the need for data interaction buffering between subsystems; such as processing Shared storage for multi-user services. [0003] These centralized caches shared by multiple sources / multi-users can be physically one or several storage units, such as a piece of SRAM (Static Random-Access Memory, static memory) or a pi...

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/08
CPCG06F2212/1044G06F12/08G06F12/0886G06F12/023G06F2212/1016G06F9/468G06F9/50G06F13/1673G11C8/06
Inventor张林生
OwnerSANECHIPS TECH CO LTD