# US 2012/0210058 A1 · Hard disk drive with attached solid state drive cache

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

- Number: US 2012/0210058 A1
- Document ID: US20120210058A1
- Status: Published application
- Kind: A1
- Application number: 13/455,058
- Filed: 2012-04-24
- Published: 2012-08-16
- Earliest claimed: 2009-02-19
- Assignees: Adaptec, Inc.
- Inventors: Steffen Mittendorff; Dieter Massa
- Web page: https://patentgrep.com/patent/US20120210058A1

## CPC

- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- G06F 12/0862: with prefetch
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 2212/222: Non-volatile memory
- G06F 2212/313: In storage device
- G06F 2212/462: Track or segment
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer programs for managing storage using a solid state drive (SSD) read cache memory are presented. One method includes an operation for determining whether data corresponding to a read request is available in a SSD memory when the read request causes a miss in a memory cache. The read request is served from the SSD memory when the data is available in the SSD memory, and when the data is not available in the SSD memory, SSD memory tracking logic is invoked and the read request is served from a hard disk drive. Invoking the SSD memory tracking logic includes determining whether a fetch criteria for the data has been met, and loading the data corresponding to the read request in the SSD memory when the fetch criteria has been met. The use of the SSD as a read cache improves memory performance for random data reads.

## Claims

### Claim 1

A method for managing computer storage, the method comprising:
determining whether data corresponding to a read request is available in a solid state drive (SSD) memory when the read request causes a miss in a memory cache;
serving the read request from the SSD memory when the data is available in the SSD memory; and
invoking SSD memory tracking logic and serving the read request from a hard disk drive (HDD) when the data is not available in the SSD memory, wherein the invoking the SSD memory tracking logic includes,
determining whether a fetch criteria for the data has been met, the fetch criteria determining which requests for data are associated with reading random data; and
loading the data corresponding to the read request in the SSD memory when the fetch criteria has been met.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein invoking the SSD memory tracking logic further includes:
allocating a new tracking element for the data corresponding to the read request when the data is not being tracked by the SSD memory tracking logic.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein reading random data includes requesting data in consecutive read operations to non-sequential blocks of data.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein invoking the SSD memory tracking logic further includes:
recording information about the read request and incrementing a page request counter, wherein the fetch criteria further includes determining if the page request counter has reached a threshold value.

### Claim 5 (depends on 4)

The method as recited in claim 4, wherein invoking the SSD memory tracking logic further includes:
tracking an age of the read requests; and
updating a read counter to eliminate requests performed before a predetermined amount of time.

### Claim 6 (depends on 4)

The method as recited in claim 4, wherein invoking the SSD memory tracking logic further includes:
resetting the page request counter periodically.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein invoking the SSD memory tracking logic further includes:
discarding pages from the SSD memory that have not been used recently.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein the SSD memory has a section that performs as a permanent storage drive containing data which is not in the HDD and a section that performs as a random read cache for the HDD.

### Claim 9 (depends on 1)

The method as recited in claim 1, further including:
utilizing a least recently used (LRU) list to track usage of data in the SSD memory.

### Claim 10 (depends on 1)

The method as recited in claim 1, wherein the memory cache is operable to load data from the SSD memory or from the HDD.

### Claim 11 (depends on 1)

The method as recited in claim 1, wherein operations of the method are performed by a computer program when executed by one or more processors, the computer program being embedded in a non-transitory computer-readable storage medium.

### Claim 12

A method for managing computer storage, the method comprising:
determining whether data corresponding to a read request is available in a solid state drive (SSD) memory when the read request causes a miss in a memory cache;
serving the read request from the SSD memory when the data is available in the SSD memory; and
invoking SSD memory tracking logic and serving the read request from a hard disk drive (HDD) when the data is not available in the SSD memory, wherein the invoking the SSD memory tracking logic includes,
determining whether a fetch criteria for the data has been met, the fetch criteria determining which requests for data are associated with reading random data; and
loading the data corresponding to the read request in the SSD memory when the fetch criteria has been met, wherein the SSD memory acts as a memory read cache and the SSD memory does not act as a write memory cache.

### Claim 13 (depends on 12)

The method as recited in claim 12, further including:
bypassing the SSD memory and going to the HDD when receiving a write request.

### Claim 14 (depends on 12)

The method as recited in claim 12, further including:
determining if a write request is for a page in the SSD; and
invalidating the page in the SSD when the page exists in the SSD associated with the write request.

### Claim 15 (depends on 14)

The method as recited in claim 14, further including:
re-fetching to the SSD the page associated with the write request.

### Claim 16 (depends on 12)

The method as recited in claim 12, wherein an operation to read random data is not an operation to read sequential data.

### Claim 17

A system for managing computer storage, the system comprising:
a cache manager;
HDD storage;
a RAM cache; and
an SSD cache, the RAM cache and the SSD cache storing HDD storage data;
wherein the cache manager determines whether data corresponding to a read request is available in the SSD cache when the read request causes a miss in the RAM cache;
wherein the read request is served from the SSD cache when the data is available in the SSD cache;
wherein SSD cache tracking logic is invoked and the read request is served from the HDD storage when the data is not available in the SSD cache, wherein the SSD cache tracking logic determines whether a fetch criteria for the data has been met, the fetch criteria determining which requests for data are associated with reading random data, and the SSD cache tracking logic loads the data corresponding to the read request in the SSD cache when the fetch criteria has been met;
wherein the SSD cache performs as a read cache for the HDD storage and the SSD cache does not perform as a write cache for the HDD storage.

### Claim 18 (depends on 17)

The system of claim 17, wherein SSD cache metadata is saved in the HDD storage when the system performs a clean shutdown, wherein the SSD cache metadata is restored to the cache manager from HDD storage when the systems starts after a clean shutdown.

### Claim 19 (depends on 17)

The system of claim 17, wherein the SSD cache is initialized without any data after a dirty shutdown.

### Claim 20 (depends on 17)

The system of claim 17, wherein the SSD cache includes a plurality of SSD drives.
