# US 8,578,089 B2 · Storage device cache

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

- Number: US 8,578,089 B2
- Document ID: US8578089B2
- Status: Granted
- Kind: B2
- Application number: 12/916,109
- Filed: 2010-10-29
- Published: 2012-05-03
- Granted: 2013-11-05
- Earliest claimed: 2010-10-29
- Assignees: Seagate Technology LLC
- Applicants: Ron Watts; Jack Lakey
- Inventors: Ron Watts; Jack Lakey
- Web page: https://patentgrep.com/patent/US8578089B2

## CPC

- G06F 12/0888: using selective caching, e.g. bypass
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Implementations described and claimed herein provide a method and system for comparing a storage location related to a new write command on a storage device with storage locations of a predetermined number of write commands stored in a first table to determine frequency of write commands to the storage location. If the frequency is determined to be higher than a first threshold, the data related to the write command is stored in a write cache.

## Claims

### Claim 1

A non-transitory computer-readable storage medium encoding a computer program for executing a computer process on a computer system, the computer process comprising:
if a received data packet contains cacheable data:
separating the cacheable data from remainder of the received data packet, wherein the received data packet is determined to contain cacheable data if the received data packet contains data written to a storage location that is written at above a threshold frequency;
storing cacheable data to a second storage device; and
storing at least a portion of the data from remainder of the received data packet to a first storage device.

### Claim 2 (depends on 1)

The computer-readable storage medium of claim 1, wherein the cacheable data is logging data.

### Claim 3 (depends on 1)

The computer readable storage medium of claim 1, wherein the received data packet is determined to contain cacheable data if a block-size of the data written to the storage location is below a threshold block-size.

### Claim 4 (depends on 1)

The computer readable medium of claim 1, wherein the first storage device is a hard drive disk (HDD) and the first storage location is a logical block address (LBA) on the HDD.

### Claim 5 (depends on 1)

The computer readable medium of claim 1, wherein the second storage device is a volatile memory located on an HDD assembly.

### Claim 6 (depends on 1)

The computer readable medium of claim 1, wherein the computer process further comprises transferring the cacheable data from the second storage device to the first storage device in case of a power interrupt.

### Claim 7 (depends on 1)

The computer readable medium of claim 1, wherein the computer process further comprises transferring the cacheable data from the second storage device to the first storage device at a predetermined time interval.

### Claim 8 (depends on 1)

The computer readable medium of claim 1, wherein the values of the threshold frequency and the threshold block-size are interdependent.

### Claim 9

A method comprising:
comparing a storage location related to a new write command on a storage device with storage locations of a predetermined number of write commands stored in a first table to determine frequency of write commands to the storage location; and
if the frequency is determined to be higher than a first threshold and if a block-size of the data related to the write command is above a threshold block-size, storing the data related to the write command in a write cache.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
if the frequency is determined to be lower than the first threshold, storing the data related to the write command at the storage location.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
if the frequency is determined to be higher than the first threshold, storing the data related to the write command in a cache memory.

### Claim 12 (depends on 9)

The method of claim 9, wherein the threshold frequency is based on a first percentile of frequency of writing data to a given location on the storage device.

### Claim 13 (depends on 9)

The method of claim 9, further comprising transferring the data from the write cache to the storage device in case of a power interrupt.

### Claim 14

A storage device communicatively connected to a computer, the storage device comprising:
a write-cache;
a storage media; and
an interface controller configured to determine whether data attached to a write command is logging data by comparing the frequency of write commands to a location where the data attached to a write command is to be written with a threshold frequency and by comparing a block size of the data attached to a write command with a threshold block size.

### Claim 15 (depends on 14)

The storage device of claim 14, wherein the interface controller is further configured to separate the logging data from remainder of data attached to the write command.

### Claim 16 (depends on 14)

The storage device of claim 14, wherein the interface controller is further configured to write the data attached to a write command to the write-cache if the interface controller determines that the data attached to a write command is logging data.

### Claim 17 (depends on 14)

The storage device of claim 14, wherein the interface controller is further configured to write the data attached to the write command to the storage media if the interface controller determines that the data attached to a write command is not logging data.

### Claim 18 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein the storing of the portion of the data to the first storage device further comprises:
storing the portion of the data to the first storage device if the frequency is determined to be lower than the threshold frequency.

### Claim 19 (depends on 1)

The non-transitory computer-readable storage medium of claim 1, wherein the storing of the portion of the data to the first storage device further comprises:
storing the portion of the data to the first storage device if a block-size of the data written to the storage location is determined to be greater than the threshold block-size.
