# US 2021/0081320 A1 · Log-structured storage systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0081320 A1
- Document ID: US20210081320A1
- Status: Published application
- Kind: A1
- Application number: 16/712,469
- Filed: 2019-12-12
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: Advanced New Technologies Co., Ltd.
- Applicants: Advanced New Technologies Co., Ltd.
- Inventors: Shikun Tian
- Web page: https://patentgrep.com/patent/US20210081320A1

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06F 16/185: Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof (details of archiving G06F16/11)
- G06F 3/061: {Improving I/O performance}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0685: {Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 16/1865: {Transactional file systems}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 2212/1021: Hit rate improvement
- G06F 2212/1024: Latency reduction
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed herein are methods, systems, and apparatus, including computer programs encoded on computer storage devices, for data processing and storage. One of the method includes: maintaining a plurality of tiers of storage devices and one or more tiers of caches by a storage system for storing blockchain data, the plurality of tiers of storage devices including at least a higher-tier storage device and a lower-tier storage device; determining that a blockchain data object in a data log file stored in a lower-tier storage device is an active data object, wherein the blockchain data object is block data, transaction data, or state data; and writing the blockchain data object into a cache of the one or more tiers of caches.

## Claims

### Claim 1

A computer-implemented method comprising:
maintaining a plurality of tiers of storage devices and one or more tiers of caches by a storage system for storing blockchain data, the plurality of tiers of storage devices comprising at least a higher-tier storage device and a lower-tier storage device, wherein an access speed of the higher-tier storage device is higher than an access speed of the lower-tier storage device;
writing a data log file containing a blockchain data object into the higher-tier storage device after the data log file is generated, wherein the blockchain data object comprises block data, transaction data, or state data;
in response to determining that the data log file has not been accessed for a predetermined period of time, writing the data log file into the lower-tier storage device;
determining that the blockchain data object in the data log file stored in the lower-tier storage device is an active data object;
writing the blockchain data object into a cache of the one or more tiers of caches, wherein an access speed of the cache of the one or more tiers of caches is higher than the access speed of the higher-tier storage device;
generating an index indicating a storage location of the blockchain data object in the cache; and
storing the index into an index map in a memory of the storage system.

### Claim 2 (depends on 1)

The method of claim 1, wherein the higher-tier storage device has a performance characteristic that is superior to the performance characteristic of the lower-tier storage device, wherein the performance characteristic comprises one or more of an access speed, an access bandwidth, or an access latency.

### Claim 3 (depends on 1)

The method of claim 1, wherein the one or more tiers of caches comprise a memory cache and a disk cache.

### Claim 4 (depends on 1)

The method of claim 1, wherein the index map comprises a delta index map that is read-write capable and a base index map that changes from read-write capable to read-only after a predetermined condition is met.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining that the blockchain data object in the data log file stored in the lower-tier storage device is an active data object comprises:
determining a number of times that the blockchain data object has been accessed within a predetermined time window;
determining whether the number of times reaches or exceeds a predetermined threshold; and
in response to determining that the number of times reaches or exceeds the predetermined threshold, determining that the blockchain data object is an active data object.

### Claim 6

(canceled)

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
receiving a read request of the blockchain data object;
searching for the index corresponding to the blockchain data object in the delta index map in the memory;
in response to the index corresponding to the blockchain data object not being identified in the delta index map, searching for the index corresponding to the blockchain data object in the base index map;
identifying the index corresponding to the blockchain data object in the base index map;
determining the storage location of the blockchain data object in the cache according to the index corresponding to the blockchain data object; and
retrieving the blockchain data object from the cache based on the storage location of the blockchain data object.

### Claim 8 (depends on 1)

The method of claim 1, wherein the data log file is an append-only file.

### Claim 9

A non-transitory, computer-readable storage medium storing one or more instructions executable by a computer system to perform operations for data processing and storage, the operations comprising:
maintaining a plurality of tiers of storage devices and one or more tiers of caches by a storage system for storing blockchain data, the plurality of tiers of storage devices comprising at least a higher-tier storage device and a lower-tier storage device, wherein an access speed of the higher-tier storage device is higher than an access speed of the lower-tier storage device;
writing a data log file containing a blockchain data object into the higher-tier storage device after the data log file is generated, wherein the blockchain data object comprises block data, transaction data, or state data;
in response to determining that the data log file has not been accessed for a predetermined period of time, writing the data log file into the lower-tier storage device;
determining that the blockchain data object in the data log file stored in the lower-tier storage device is an active data object;
writing the blockchain data object into a cache of the one or more tiers of caches, wherein an access speed of the cache of the one or more tiers of caches is higher than the access speed of the higher-tier storage device;
generating an index indicating a storage location of the blockchain data object in the cache; and
storing the index into an index map in a memory of the storage system.

### Claim 10 (depends on 9)

The non-transitory, computer-readable storage medium of claim 9, wherein the higher-tier storage device has a performance characteristic that is superior to the performance characteristic of the lower-tier storage device, wherein the performance characteristic comprises one or more of an access speed, an access bandwidth, or an access latency.

### Claim 11 (depends on 9)

The non-transitory, computer-readable storage medium of claim 9, wherein the one or more tiers of caches comprise a memory cache and a disk cache.

### Claim 12 (depends on 9)

The non-transitory, computer-readable storage medium of claim 9, wherein the index map comprises a delta index map that is read-write capable and a base index map that changes from read-write capable to read-only after a predetermined condition is met.

### Claim 13 (depends on 9)

The non-transitory, computer-readable storage medium of claim 9, wherein determining that the blockchain data object in the data log file stored in the lower-tier storage device is an active data object comprises:
determining a number of times that the blockchain data object has been accessed within a predetermined time window;
determining whether the number of times reaches or exceeds a predetermined threshold; and
in response to determining that the number of times reaches or exceeds the predetermined threshold, determining that the blockchain data object is an active data object.

### Claim 14

(canceled)

### Claim 15 (depends on 12)

The non-transitory, computer-readable storage medium of claim 12, the operations further comprising:
receiving a read request of the blockchain data object;
identifying the index corresponding to the blockchain data object in the delta index map in the memory;
determining the storage location of the blockchain data object in the cache according to the index; and
retrieving the blockchain data object from the cache based on the storage location of the blockchain data object and
in response to the index corresponding to the blockchain data object not being identified in the delta index map, identifying the index corresponding to the blockchain data object in the base index map.

### Claim 16 (depends on 9)

The non-transitory, computer-readable storage medium of claim 9, wherein the data log file is an append-only file.

### Claim 17

A storage system for data processing and storage, comprising:
one or more processors; and
one or more computer-readable memories coupled to the one or more processors and having instructions stored thereon that are executable by the one or more processors to perform operations comprising:
maintaining a plurality of tiers of storage devices and one or more tiers of caches by the storage system for storing blockchain data, the plurality of tiers of storage devices comprising at least a higher-tier storage device and a lower-tier storage device, wherein an access speed of the higher-tier storage device is higher than an access speed of the lower-tier storage device;
writing a data log file containing a blockchain data object into the higher-tier storage device after the data log file is generated, wherein the blockchain data object comprises block data, transaction data, or state data;
in response to determining that the data log file has not been accessed for a predetermined period of time, writing the data log file into the lower-tier storage device;
determining that the blockchain data object in the data log file stored in the lower-tier storage device is an active data object;
writing the blockchain data object into a cache of the one or more tiers of caches, wherein an access speed of the cache of the one or more tiers of caches is higher than the access speed of the higher-tier storage device;
generating an index indicating a storage location of the blockchain data object in the cache; and
storing the index into an index map in a memory of the storage system.

### Claim 18 (depends on 17)

The storage system of claim 17, wherein the higher-tier storage device has a performance characteristic that is superior to the performance characteristic of the lower-tier storage device, wherein the performance characteristic comprises one or more of an access speed, an access bandwidth, or an access latency.

### Claim 19 (depends on 17)

The storage system of claim 17, wherein the one or more tiers of caches comprise a memory cache and a disk cache.

### Claim 20 (depends on 17)

The storage system of claim 17, wherein the index map comprises a delta index map that is read-write capable and a base index map that changes from read-write capable to read-only after a predetermined condition is met.

### Claim 21 (depends on 17)

The storage system of claim 17, wherein determining that the blockchain data object in the data log file stored in the lower-tier storage device is an active data object comprises:
determining a number of times that the blockchain data object has been accessed within a predetermined time window;
determining whether the number of times reaches or exceeds a predetermined threshold; and
in response to determining that the number of times reaches or exceeds the predetermined threshold, determining that the blockchain data object is an active data object.

### Claim 22

(canceled)

### Claim 23 (depends on 20)

The storage system of claim 20, the operations further comprising:
receiving a read request of the blockchain data object;
identifying the index corresponding to the blockchain data object in the delta index map in the memory;
determining the storage location of the blockchain data object in the cache according to the index; and
retrieving the blockchain data object from the cache based on the storage location of the blockchain data object; and
in response to the index corresponding to the blockchain data object not being identified in the delta index map, identifying the index corresponding to the blockchain data object in the base index map.

### Claim 24 (depends on 17)

The storage system of claim 17, wherein the data log file is an append-only file.
